Run coding agents in cloud sandboxes
A cloud sandbox gives each coding agent task its own remote environment, so a runaway agent cannot reach files on your laptop. I ran 10 agents at once with Codex as the orchestrator.
The main idea
A cloud sandbox gives each task its own remote environment. I choose the coding agent, install the tools the task needs, and decide how the changes come back for review. Each agent installs packages and runs build scripts inside its own sandbox. Even if an agent goes off the rails, it cannot get to files on my computer. It sees only what I put in the box.
For the demo I used Upstash Box, which sponsored the video. I gave agents GitHub issues from open source projects and tasks from one of my own repositories. A controller and dashboard on my laptop launched the work and tracked it. Codex ran locally as the orchestrator and read logs from the boxes. The agents used DeepSeek models through OpenRouter. The boxes reached GitHub through attached headers and API keys.
Ten boxes ran at once. The setup requires human review, so nothing is committed blindly. One agent finished and I reviewed its branch. A few tasks were marked failed because they did not finish in the time I set. I traced part of that to how I worded my prompt. For my own repo, the agents opened pull requests, and I squash merged one. Then the controller cleaned up and no boxes were left.
The controller still runs on my laptop. Moving it to the cloud would let the whole workflow run with the laptop off.
Key points
- Each task gets its own cloud sandbox, so files and processes stay separate from the laptop and from other agents.
- I launched 10 agents at once from a Codex session, with a local controller and dashboard tracking them.
- The sandbox agents ran DeepSeek models through OpenRouter, and they got GitHub access through attached headers and API keys.
- The setup requires human review before anything is merged.
- Several tasks were marked failed when they did not finish in the time limit I set, and a prompt wording problem was part of the cause.
- The Upstash free tier gives 10 concurrent boxes and 5 CPU hours a month, and you pay for compute only when the CPU is working.
Chapters
- 0:00Why cloud sandboxes for coding agents
- 1:02Launching 10 agents with Codex
- 2:11Watching agents run in parallel
- 3:16Reviewing branches and agent output
- 4:44Steering, stopping, and handling failures
- 7:08Reviewing PRs, merging, and cleanup
Save my free seat →