The best cloud dev environments for AI coding agents in 2026
The best cloud dev environments for AI coding agents are machines that stay on after you close your laptop: Prized, boxes.dev, Upstash Box, Northflank, Coder on your own cloud, or a VPS. Prized is a hosted Linux box with Claude Code and Codex preinstalled, your project folder synced to your laptop, its ports on your localhost and no maximum run time, for $25 a month around the clock at 2 vCPU and 4 GB. GitHub Codespaces stops at 12 hours, and Codex Cloud and Claude Code on the web run one task per VM on your ChatGPT or Claude plan.
Pick one
- A machine that stays on, with your files and ports on your laptop: Prized.
- A fresh devbox per task, from Slack, Linear or an API call: boxes.dev.
- Agents beside your deployments, or in your own VPC: Northflank.
- Everything on your own infrastructure: Coder, free and open source.
- One task at a time, on the plan you already pay for: Codex Cloud or Claude Code on the web.
- The lowest price around the clock: an Upstash Box kept alive, $8 a month for 2 vCPU and 4 GB, a container with Claude Code and Codex built in, run with an API key.
Ona announced on October 13 that it would wind down Ona Cloud, formerly Gitpod, on October 31, 2026, and closed new sign-ups (Ona), so it isn’t here.
How they run
| Runs for | Agents | Your files and ports | |
|---|---|---|---|
| Prized | No limit; on the free credit, sleeps after 2 idle hours | Claude Code, Codex, on your plan | Synced folder, ports on localhost |
| boxes.dev | Sleeps when idle, 5 minutes by default | Claude Code, Codex, on your plan | Ports on localhost, preview URLs |
| Upstash Box | Pauses when idle, unless kept alive | Claude Code, Codex, by API key | A public URL per port |
| Northflank | Until you pause it | Claude Code, Codex, OpenCode, Pi, Cursor | Public URLs, or localhost by CLI |
| GitHub Codespaces | 12 hours at most | You install them | A forwarded port or link |
| Coder | Your templates decide | Claude Code, Codex, Cursor and more | Coder Desktop sync |
| A VPS | No limit | You install and sign in | Git, SSH tunnels |
| Codex Cloud | One task per VM | Codex only | GitHub repos, as a diff |
| Claude Code on the web | One session per VM | Claude Code only | GitHub repos, as a branch |
What it costs
| A month, 2 vCPU and 4 GB | Free to start | |
|---|---|---|
| Prized | $25 (Micro) | $30 of credit, no card |
| boxes.dev | $249 per user (Max, 750 hours) | 20 hours, as a trial |
| Upstash Box | $8, kept alive | 5 CPU-hours a month |
| Northflank | $48, plus disk | Up to $20 a month |
| GitHub Codespaces | Can’t run all month | 60 hours a month on 2 cores (GitHub Free) |
| Coder | Your cloud’s price | Community edition |
| A VPS | $24 (DigitalOcean), €19.99 (Hetzner, EU) | Oracle Always Free |
| Codex Cloud | In ChatGPT Plus, $20 | None |
| Claude Code on the web | In Claude Pro, $20 | None |
List prices before tax, for the nearest size to 2 vCPU and 4 GB: Claude Code asks for 4 GB of memory or more (Anthropic). A boxes.dev devbox is 4 vCPU and 8 GB, and its plans include awake hours. A codespace stops after 12 hours even while you use it (GitHub), at $0.18 an hour for 2 cores (GitHub). Asleep, a Prized Micro bills only its disk, and the agent still needs its own Claude or ChatGPT plan wherever it runs.
Common questions
Which cloud dev environment is best for Claude Code and Codex?
For a machine that stays on with your files and ports on your laptop, Prized: both agents are preinstalled, sign in with your own plan, and keep working in a session after you close the lid. For the lowest monthly price, an Upstash Box kept alive. For one task at a time on the plan you have, Codex Cloud or Claude Code on the web.
Can Claude Code keep running on Codespaces with my laptop closed?
For up to 12 hours, even while it works: its terminal output resets the 30-minute idle timeout, but the 12-hour limit holds anyway. On a Prized box it runs in a tmux session with no time limit (Keep Claude Code running).
Is Codex Cloud a dev environment?
Not one you log into: Codex works in a VM OpenAI runs for each task, from your GitHub repositories, and you review its diff. To keep Codex on a machine that keeps its disk and works with any git host, run the Codex CLI on a box (Run Codex in the cloud).
Can several agents share one machine?
Yes, on a box, a VPS or a Coder workspace: give each agent its own git worktree and session (Run agents in parallel).
Every way to keep an agent running around the clock, with what each costs: How to run Claude Code (or Codex) 24/7 in the cloud.
Get started on Prized
Sign up: the tour starts a box on $30 of free credit, with no card, and shows one command that installs the CLI and signs it in (Quickstart). The plain installer is curl -fsSL https://prized.dev/install.sh | sh. Then, in your project folder:
cd ~/code/myprojectprized setup --sync --agent claude --attachThat syncs the folder with the box both ways, copies your Claude Code sign-in (if you’re signed in on this machine), and opens Claude Code in a session that keeps going when you close the lid. For Codex, use --agent codex.
Sources
Every page here was read on November 7, 2026.
- boxes.dev: home page and plans, sleep and wake.
- Upstash: Box pricing, built-in agents, keep-alive, public URLs.
- Northflank: cloud agents, Cloud Harness quickstart, pricing.
- GitHub Codespaces: lifecycle, idle timeout, billing.
- Coder: pricing, Coder Desktop.
- VPS: DigitalOcean Droplets, Hetzner Regular Performance, Oracle Cloud Always Free.
- OpenAI: Codex cloud environments, Codex pricing.
- Anthropic: Claude Code on the web, system requirements, plans.
- Ona: Ona Cloud is shutting down.
- Prized: Pricing, Machines, Ports, Auto-pause.