In this article
Scaling Claude Code to 10–20 concurrent sessions on a consumer laptop hits a hard wall fast — not because of GPU limits, but because of CPU saturation, RAM exhaustion, and I/O bottlenecks that compound with every additional agent process. Each session doesn't just run the CLI; it may simultaneously execute local unit tests, spin up localhost servers, or drive a browser, all of which multiply the resource draw. The practical fix isn't a hardware upgrade — it's offloading that compute entirely to rented CPU servers and accessing them over SSH.
Why Local Hardware Fails at Scale
The bottleneck is structural. Running Claude Code or Codex locally consumes meaningful CPU and RAM even for a single session. At 10–20 parallel agents, those costs stack. A developer running that workload on a MacBook will hit thermal constraints even with performance optimisations baked into the Claude Code CLI — one practitioner described keeping a closed Mac in a backpack while agents ran, only to abort the experiment when the machine began overheating because airflow was blocked. The problem compounds because the agent processes themselves aren't the only load: any unit test runner, local dev server, or browser automation the agent invokes adds to the bill. This is the same class of systems-constraint problem discussed in four stack layer gains where systems engineering rivals scaling — architectural decisions about where computation runs matter as much as raw capacity.
The Remote Server Architecture
The core pattern: provision a CPU-only cloud instance with the RAM footprint you need, push your agent sessions there, and connect via SSH. CPU-only instances are substantially cheaper than GPU nodes because the workload — running a CLI agent, executing shell commands, running tests — is CPU-bound. A 64 GB RAM instance can be rented for under $100 per month from mid-tier providers, versus a purchase cost of at least $2,000–$3,000 for equivalent hardware. Scaling to 128 GB RAM or beyond is a configuration dial, not a capital expenditure.
For providers, hyperscalers — Google Cloud Platform, Microsoft Azure, and AWS — are reliable but 2× to 4× more expensive than alternatives. Hetzner (a German cloud provider) and Scaleway are leaner options. The practical recommendation is to query Claude Code or Codex directly about regionally optimal CPU instance pricing given your RAM and budget constraints.
A secondary advantage of the remote model is persistence: agents running on a cloud server continue executing when the developer closes their laptop, enabling genuine 24/7 autonomous operation that local sleep states interrupt.
SSH Client Tooling: Where the Complexity Lives
Raw SSH terminal access is technically sufficient but operationally painful. An agent running on a remote server cannot directly read an image pasted into a local terminal, cannot access files that exist only on the local machine, and cannot expose a localhost server it starts back to the developer's browser. These arise in normal agentic coding workflows constantly.
Two tools are identified as purpose-built for SSH-connected Claude Code sessions: Orca and Superset.
| Tool | Cost | Automatic bidirectional SSH tunnel | File access across boundary | Multi-user invite support |
|---|---|---|---|---|
| Orca | Free | No | Manual | Limited |
| Superset Pro | $20/month | Yes | Seamless via auto-configured tunnel | Yes |
Superset's Pro tier automatically establishes a connection that lets the remote SSH server communicate back to the local machine, resolving the image, file, and localhost-forwarding problems without manual configuration. Orca's free tier handles basic connectivity but leaves those cross-boundary friction points to the user. For teams where $20/month is acceptable, Superset is the recommended path; for solo developers or cost-constrained setups, Orca is workable.
Security on Rented Infrastructure
Running agentic coding workloads on third-party infrastructure introduces a credential management requirement that deserves deliberate handling. Agents need API keys — GitHub, Linear, and other service integrations — to function autonomously. The recommended practice is to generate dedicated API keys scoped specifically to the remote server rather than reusing keys from local development environments. A compromise of the server provider's infrastructure can then be contained by revoking only those keys, without touching credentials used elsewhere. This isolation-of-credential-surfaces principle is a first-order control, not an afterthought, and aligns with the access-control framing in infrastructure governance for safe agent deployment.
The economics here have quietly inverted. Buying hardware to run 10–20 parallel agent sessions is a capital-intensive bet on a static configuration; renting CPU compute at under $100/month for 64 GB RAM converts that into an elastic operating expense. As the number of concurrent agents developers want to run increases — and the trajectory suggests it will — local hardware increasingly becomes the constraint rather than the capability.
Related Reading
HydraFusion Cuts Costs 67% While Beating Opus 5 on TerminalBench
GitHub's Project HydraFusion builds a per-request execution plan in Copilot CLI, routing across models from multiple providers to cut costs up to 67%.
DoorDash Flux Handles 130,000 Tasks/Month via Cloud Agent Platform
DoorDash's Flux platform processed 130,000 engineering tasks in one month, with 25,000 automated code reviews weekly and sub-5-second sandbox setup.
Risk-Scored Routing Cuts Human Review to High-Signal Queries Only
A text-to-SQL team replaced blanket approval gates with a four-signal risk router, sending only genuinely ambiguous actions to human reviewers.