Running Coding Agents in the Cloud vs on a Laptop
October 16, 2026 · Oyren AI Team (AI-written)

TL;DR: A coding agent on a personal laptop stops when the lid closes and can read every local file and credential. Well-scoped GitHub tasks fit a vendor's cloud agent, while long or multi-agent runs fit Oyren Codespaces: managed Oyren Cloud Linux servers with out-of-the-box public HTTPS URLs, controlled from desktop or a phone browser. Running them on an own remote server or personal device is in a beta: users request access, an admin approves; public enrollment isn't open yet.
Choose or create a workspace, then select the agents and repositories for the workflow.
What changed in 2026
Agent runs now last long enough that a laptop is the weak point, so major vendors added cloud runners alongside local CLIs. Anthropic's Claude Code on the web and OpenAI's Codex cloud keep tasks running after a laptop sleeps and let developers steer sessions from mobile apps. Cursor Cloud Agents run in isolated VMs from web, iOS, Slack, GitHub, or Linear, GitHub Copilot cloud agent opens pull requests from ephemeral environments, and OpenAI agreed to acquire Ona (formerly Gitpod) in June 2026 (The Next Web).
From a terminal, Claude Code starts a cloud session with one flag:
claude --cloud
--cloud runs the session in Anthropic's cloud, off the local machine, so it continues after the terminal closes.
Three places an agent can run and their cost models
Where the agent executes determines its blast radius, uptime, and bill. On a local laptop, the agent reaches the developer's real files, shell history, SSH agent, and .env secrets at no extra machine cost, but execution stops when the computer sleeps; remote-control relays in Cursor (Cursor changelog) and Claude Code still require the local machine to stay awake and online. A vendor cloud agent spins up an isolated VM for a single repository task and returns a pull request, whereas a dedicated Linux server (cloud-hosted or paired via SSH/WSS) runs any CLI agent, language runtime, editor, and browser side by side. The Oyren vs Cursor comparison covers the product-level differences; the device pairing page distinguishes today's terminal prototype from planned local Codespaces.
| Option | What the bill covers | Uptime and reach |
|---|---|---|
| OptionOyren Cloud Codespace | What the bill coversPer-minute runtime in credits after a one-hour minimum (unused time after the first hour refunded); own model plan or API key | Uptime and reach1 hour to 30 days in tmux; isolated Linux VM with out-of-the-box public HTTPS URL |
| OptionOyren paired server or device (beta) | What the bill coversDevice beta: users request access, an admin approves; own server or hardware and model plan | Uptime and reachOn a hired VPS or spare hardware (no managed HTTPS URL); web and mobile phone hub |
| OptionClaude Code cloud sessions | What the bill coversCounts toward Pro, Max, Team, or Enterprise plan limits (docs) | Uptime and reachIsolated Anthropic VM per session; expires on inactivity |
| OptionCursor Cloud Agents | What the bill coversCharged at model API pricing on a paid plan (docs) | Uptime and reachIsolated Cursor VM per agent run |
| OptionPersonal laptop | What the bill coversModel plan or API usage only | Uptime and reachStops when the lid closes; reaches all personal files and keys |
Parallel runs multiply rate-limit consumption. Anthropic notes that cloud sessions share account limits and "running multiple tasks in parallel consumes more rate limits proportionately".
Security boundaries and vendor limits
An autonomous agent can be steered by untrusted text in a README, issue, or web page. On a primary personal computer, the blast radius includes personal documents and credentials; inside a cloud VM or separate server, it is restricted to that machine.
Vendor cloud sandboxes add scoped git proxies and outbound network rules, though Anthropic warns that an agent can still exfiltrate data placed inside the VM over the model API (designing agent tool permissions). Vendor VMs also enforce hard operational limits: Claude Code cloud sessions drop background shell processes when inactive, require GitHub to push pull requests, and block Zero Data Retention or HIPAA accounts, while GitHub Copilot caps every session at 59 minutes.
Where Oyren Codespaces and the device beta fit
Oyren Codespaces gives teams two ways to run CLI agents from one central hub that works on desktop, tablet, mobile browser, and the Oyren mobile app (running Claude Code from a phone).
First, Oyren Cloud servers provide an isolated Linux machine in the cloud with passwordless sudo, browser VS Code, a terminal, a browser, and an out-of-the-box public HTTPS URL and preview routing for running apps. Claude Code, Codex CLI, Gemini CLI, opencode, Cursor CLI, Qwen Code, and Antigravity CLI are pre-installed and run in persistent tmux sessions. Machine runtime has a one-hour minimum, then is billed by the minute in credits. Extensions are billed by the minute.
Second, pairing an own hired remote server or personal device with Oyren, to run agents there without managed public HTTPS URLs, is in a beta: users request access, an admin approves; public enrollment isn't open yet. Running unattended agents around the clock on a primary personal machine is risky because shell commands execute near personal files and credentials, so an Oyren Cloud server, a separate remote server, or a spare laptop keeps personal data isolated. The sandboxed agent guide and VS Code in the browser post walk through the workflow, starting from the workspaces page.
Frequently asked questions
Prompt injection and cloud VMs
A cloud VM does not make an agent safe from prompt injection. It limits what an injected instruction can reach to that VM. Data sent to the model API can still leave, and any secret placed on the machine is readable by the agent, so secrets belong on the machine only when the task needs them.
Charges for the Claude Code cloud VM
The VM behind a Claude Code cloud session is not charged separately. Anthropic states there is no separate charge for the cloud VM. The session's usage counts toward the plan's limits like any other Claude Code use.
Several agents on one self-managed machine
Several agents can share one self-managed machine. Each agent runs in its own terminal or tmux window. Two agents editing the same repository need separate checkouts, which git worktrees provide from a single repository.
Choose or create a workspace, then select the agents and repositories for the workflow.
Open Codespace setup