Cloud Codespace vs Local Laptop vs SSH VPS for Coding Agents
November 14, 2026 · Oyren AI Team (AI-written)
TL;DR: Autonomous CLI coding agents fit a local laptop for short interactive edits at a desk, a self-managed SSH VPS for always-on Linux workloads under operator-maintained proxies and firewalls, and a managed Oyren Cloud Codespace when multi-hour runs need out-of-the-box HTTPS previews, browser and phone control, and snapshot teardown. On oyren.ai, the workspace for notes, mind maps, Kanban boards, PDFs, and MCP project memory is free ($0, no card), while Cloud Codespaces bill dedicated Linux compute separately while a machine runs.
Choose or create a workspace, then select the agents and repositories for the workflow.
The mind map above separates where the agent process executes, how an operator reaches it from a desk or phone, and what exposes a web preview over HTTPS, while keeping free Oyren Docs project memory separate from paid cloud VMs and the request-only device beta.
Three hosting and control environments compared
| Dimension | Oyren Cloud Codespace | Local laptop | Self-managed SSH VPS |
|---|---|---|---|
| DimensionProcess persistence | Oyren Cloud CodespaceData-center Linux VM keeps tmux sessions running across disconnects | Local laptopLocal shell; default battery rules suspend on lid close unless AC power and caffeinate or systemd-inhibit stay active | Self-managed SSH VPSRented Linux VM keeps tmux or systemd processes alive 24/7 |
| DimensionCompute, storage, and workspace cost | Oyren Cloud CodespaceFree Oyren Docs ($0, 1 GB storage, 100 MB searchable on Free); Small VM (4 vCPU, 8 GB RAM, 240 GB SSD) is $0.174/hr on Free, $0.1653/hr on Pro, $0.1566/hr on Max; one-hour minimum, then billed by the minute; stored snapshots billed monthly | Local laptop$0 extra VM fee on owned hardware and local SSD; free Oyren Docs attaches over MCP | Self-managed SSH VPSFixed monthly VPS and volume bill whether idle or busy; free Oyren Docs attaches over HTTPS MCP |
| DimensionModel sign-in and limits | Oyren Cloud CodespaceCLI subscription sign-in (Claude Code, Codex, Cursor CLI), saved API keys, Oyren credits in opencode; Antigravity sign-in documentation differs (see below); provider account limits stay separate from VM billing | Local laptopLocal CLI subscription sign-in or API keys governed by each provider's account limits | Self-managed SSH VPSHeadless SSH sign-in, port-forwarded OAuth callback, or API keys under each provider's account limits |
| DimensionPhone and browser review | Oyren Cloud CodespaceBrowser terminal, VS Code, and live URLs on desktop, tablet, and phone | Local laptopRemote relays or tunnels work only while the laptop stays awake and online | Self-managed SSH VPSMobile SSH client (such as Blink or Termius) attaches to tmux; web diffs on GitHub |
| DimensionPublic HTTPS previews | Oyren Cloud CodespaceBuilt-in HTTPS routes and private port links via oyren route and oyren share | Local laptopBound to localhost unless Cloudflare Tunnel, Tailscale Funnel, or ngrok is configured | Self-managed SSH VPSConfigured with Caddy, Nginx with Let's Encrypt, Tailscale Funnel, or Cloudflare Tunnel |
| DimensionUpkeep, file reach, and teardown | Oyren Cloud CodespacePrebuilt Linux image with zero personal laptop files; stopping deletes the VM and halts compute charges | Local laptopOwner patches local OS and packages; shares OS user account with ~/.ssh, .env, cookies, and personal files; manual directory cleanup | Self-managed SSH VPSOperator patches Ubuntu or Debian packages, SSH keys, and ufw rules; isolated from laptop files; manual wipe or instance deletion |
Process persistence, model sign-in, and local file reach
Closing a laptop lid does not stop every job under every configuration, though default power profiles on macOS, Windows, and Linux suspend the kernel on battery and pause open sockets and agent loops. Developers who run long tasks locally either dock the laptop on AC power in clamshell mode or wrap the command in an explicit sleep inhibitor such as caffeinate -i on macOS or systemd-inhibit on Linux, trading zero cloud cost for sustained fan load, battery heat, and home Wi-Fi dependence. Moving the loop into tmux on an SSH VPS or an Oyren Cloud Codespace hands process uptime to data-center power and networking.
Model authentication and usage caps depend on the CLI and payment path rather than a single cross-host rule (Codespace sign-in guides). External CLI subscriptions for Claude Code (claude auth login), Codex (codex login), and Cursor CLI (cursor-agent login), along with saved provider API keys (such as OpenAI, Anthropic, OpenRouter, or DeepSeek), remain governed by each provider's own account limits across a Cloud Codespace, a laptop, or an SSH VPS, billed separately from Oyren machine runtime. Inside an Oyren Cloud Codespace, opencode can also run on Oyren credits (10,000 credits = $1) with catalog models at launch or connect an external provider via opencode auth login.
Antigravity sign-in documentation differs. The Codespace sign-in guide describes Antigravity as pre-authenticated with environment credentials, while the Antigravity use-case guide describes experimental terminal Google sign-in per Codespace. These documented paths differ; the active sign-in flow needs confirmation in the running Codespace.
File boundaries differ by host account. An autonomous CLI agent executes shell commands, package install scripts, and file reads with the permissions of the OS user running it (agent sandbox permissions). On a daily laptop, that account typically holds ~/.ssh keys, cloud CLI credentials, active browser cookies, and personal documents. Running the agent on a fresh Cloud Codespace or a dedicated SSH VPS limits filesystem reach to the repositories and secrets placed on that Linux machine, although any token or repository copied onto the remote host remains readable to the agent and can still leave over network or model API calls.
Public HTTPS previews, billing rules, and device beta scope
Opening a running web app from a phone browser requires a routable HTTPS endpoint because localhost stays bound to the host machine's loopback interface. Inside an Oyren Cloud Codespace, one CLI command maps a local dev server port to the Codespace's managed HTTPS origin:
oyren route add /preview 3000 "App preview"
That command exposes port 3000 at /preview behind TLS without DNS records or firewall edits. An independently configured SSH VPS reaches a comparable HTTPS preview once the operator points a DNS record or tunnel at the server, opens ports 80 and 443 in ufw, and runs a reverse proxy such as Caddy:
preview.example.com {
reverse_proxy 127.0.0.1:3000
}
Caddy provisions Let's Encrypt TLS automatically for preview.example.com and forwards HTTPS traffic to the local port, while Tailscale Funnel or Cloudflare Tunnel can expose a port without opening inbound firewall rules.
Billing also follows distinct boundaries (plans and rates). On oyren.ai, the machine size selector displays a per-minute or per-hour unit toggle for reading rates, while Cloud Codespaces are charged for a one-hour minimum, then billed by the minute, start-up included ($0.174/hr on Free, $0.1653/hr on Pro with a 5% discount, and $0.1566/hr on Max with a 10% discount for the 4 vCPU, 8 GB RAM, 240 GB SSD Small tier, scaling up to 8 vCPU, 32 GB RAM, and 640 GB SSD on X-Large). Extensions are billed by the minute. Taking a snapshot and stopping a Cloud Codespace deletes the running VM and stops compute charges, leaving monthly credit billing only for stored snapshots.
Connecting personal hardware to Oyren instead of using paid cloud compute is in a request-only device beta: users request access, an administrator approves eligible accounts, and public enrollment is not open yet. Approved beta setups support Macs (with OrbStack or Docker Desktop) and 64-bit Raspberry Pis (with Docker CE) using the private GitHub kit; one-command npx enrollment is off in production, general Linux-server and Windows enrollment are not offered in production, and devices in the beta do not receive a managed public HTTPS preview URL.
Workloads suited to each environment
A local laptop remains the most direct fit for short interactive coding sessions at a desk, offline travel work, and hardware-bound native builds such as Xcode iOS simulators where zero extra server cost matters more than unattended uptime.
A self-managed SSH VPS fits engineers who already maintain Linux servers, want flat monthly pricing for 24/7 background daemons or custom Docker and WireGuard topologies, and prefer configuring their own Caddy or Cloudflare Tunnel routes and ufw rules.
An Oyren Cloud Codespace fits burst or multi-hour autonomous pull-request work, parallel git worktrees, and phone-reviewed web previews where launching a clean Linux VM, opening browser VS Code and HTTPS routes immediately, and snapshotting or deleting the host afterward removes ongoing server maintenance.
Choose or create a workspace, then select the agents and repositories for the workflow.
Open Codespace setup