Claude Code sandbox in the cloud — plus Codex and the rest
A Claude Code sandbox on Impello is a real Linux box in the EU that your agent boots, uses as a shell, and pauses when it waits. Codex, OpenCode, pi, Amp, Droid, Grok and OpenClaw ship as named templates too. It is billed per second at the same rate as every other Impello sandbox, and a pause costs nothing.
Anyone can sign up. Impello is sold to businesses only. Prices and limits are from limits and pricing and templates.
A real Linux box for the coding agent
Search for a Claude Code sandbox, a sandbox for coding agents, or how to run Claude Code in the cloud and you will mostly find laptop recipes: Dockerfiles, Dev Containers, maybe a compose file that binds your repo. Those work. They also stop when the laptop sleeps, share that laptop's kernel, and leave the agent sitting on the same machine as the rest of your day.
Impello is the other shape. You create a sandbox from a template, pass the vendor's API key in envs, and run the CLI. The box is an isolated microVM on servers Impello owns in Germany and Finland — a hardware-virtualised VM, not a container namespace. It keeps running while your laptop is closed. Pause it when the agent is idle and billing drops to zero; resume and the process is still there.
That is the whole product for this use case. The TypeScript and Python SDKs copy E2B's classes and methods. There is no agent-specific control plane, no hosted Claude, and no secrets store. The agent is just a process in a Linux VM you started.
Templates already shipped
Pass the name to Sandbox.create. With no name you get base. Every default ends as the user user with working directory /home/user. The coding-agent set is:
| Name | What it holds | Size | Binary |
|---|---|---|---|
claude / claude-code | Claude Code on Ubuntu 25.04, with Docker enabled at boot, Node 22, Python 3, pipx and uv. | 2 vCPU / 2 GB | ~/.local/bin/claude |
codex | base plus the Codex CLI, installed globally with npm. | 2 vCPU / 2 GB | codex (on PATH) |
opencode | base plus the OpenCode CLI, installed globally with npm. | 2 vCPU / 2 GB | opencode (on PATH) |
pi | base plus the pi coding agent, installed globally with npm. | 2 vCPU / 2 GB | pi (on PATH) |
amp | base plus the Amp CLI. | 2 vCPU / 2 GB | ~/.local/bin/amp |
droid | base plus the Droid CLI. | 2 vCPU / 2 GB | ~/.local/bin/droid |
grok | base plus the Grok CLI. | 2 vCPU / 2 GB | ~/.grok/bin/grok |
openclaw | base plus the OpenClaw CLI. | 2 vCPU / 4 GB | ~/.npm-global/bin/openclaw |
From Templates. All eight are 2 vCPU, so an hour is $0.018 on every plan; RAM is not billed. openclaw is 4 GB, still under the trial ceiling of 2 vCPU / 4 GB. claude is its own Ubuntu image with Docker, uv and pipx; the others start from base.
The npm-installed CLIs (codex, opencode, pi) are on the PATH. The vendor installers put the binary under the home directory. Call those by full path: commands.run uses a login shell, which reads ~/.profile, not the PATH line the template appended to ~/.bashrc.
The agent CLIs are installed unpinned. Each weekly rebuild picks up the vendor's current release. To freeze a version, build your own template from a default with fromTemplate('claude'). How to run one prompt through Claude Code, read files back, pause and kill: How to run Claude Code in a cloud sandbox. An agent that needs a cloud browser rather than a coding CLI: How to give your AI agent a cloud browser with Playwright. The template reference is templates.
Not a local Docker sandbox, and not a Dev Container
A Docker sandbox for coding agents on your laptop is a container (or a Dev Container) started by the daemon on that machine. Impello is a remote VM. The differences that change how you run an agent:
| Impello | Local Docker / Dev Containers | |
|---|---|---|
| Where it runs | EU only (Germany and Finland), on servers Impello owns | The machine that started it |
| Isolation | Isolated microVM (hardware-virtualised hypervisor, not a shared kernel) | A container on that host's kernel |
| If the laptop sleeps | The sandbox keeps running on Impello's servers (no SLA) | The agent stops with the machine |
| Idle time | Billed while running; $0 while paused. Pause keeps memory and disk by default | No cloud bill; the box is gone if the machine is |
| Start | 1–3 seconds, not the ~80–200 ms some cloud sandboxes advertise | Whatever the local daemon takes |
The claude template still ships Docker inside the VM, enabled at boot, so Claude Code can use Docker without a second template. That is Docker as a tool in the sandbox, not Docker as the sandbox.
If the comparison you wanted is Impello versus Docker's hosted Sandboxes product, that is a different page: Impello and Docker Sandboxes. For E2B, see Impello vs E2B and E2B alternatives.
Pass API keys with envs
Nothing in the agent templates is signed in. Pass the vendor's key with envs on Sandbox.create. Those variables are set for every command you run; envs on a single command overrides them. They are ordinary process environment, not a secret store. Impello does not ship one — keep keys in your own store and hand them in at create time.
The templates docs show the Claude Code case: ANTHROPIC_API_KEY in envs, then ~/.local/bin/claude -p "…". The pattern is the same for Codex and the others; each CLI has its own variable and flags, which are the vendor's. Details: Run an agent CLI and sandbox lifecycle.
Timeouts
Three clocks. The sandbox itself defaults to 5 minutes (timeoutMs: 300_000 in TypeScript, timeout: 300 in Python). Activity does not move it. A single command defaults to 60 seconds; pass 0 to remove that limit — you will want that for a long agent turn. The third clock is the API request, also 60 seconds, and does not bound a streaming command.
The longest sandbox you can ask for depends on the plan: 1 hour on the trial, 12 hours on $20, 24 hours on $100 and $500. At the deadline the sandbox is killed and its disk goes with it, unless you set lifecycle: { onTimeout: 'pause' }. A paused sandbox can be resumed from the same ID. Keep a long job alive with a short timeout plus setTimeout, not one enormous deadline. Timeouts.
Pause so idle time is not billed
A coding agent spends a lot of wall clock waiting on a model. Leave the sandbox running and Impello meters the reserved vCPUs the whole time: $0.018 an hour at 2 vCPU, idle or not. Call pause() and it costs nothing.
By default pause snapshots memory and disk, so processes and open files survive. Resume with Sandbox.connect(sandboxId); that starts a fresh timeout (5 minutes unless you pass one). Pass keepMemory: false to persist only the filesystem — resume then cold-boots from disk.
A sandbox that has sat paused for 14 days is deleted. The clock restarts every time you pause. Paused sandboxes do not count against concurrency, and there is no cap on how many you keep paused. Snapshots (a named copy you can create new sandboxes from) are not billed and are not deleted by that 14-day clock. Pause, resume and snapshots.
Network controls
Every listening port gets a public HTTPS URL derived from the sandbox ID. That is convenient for a preview and dangerous for a coding agent that starts a server. Set network: { allowPublicTraffic: false } at create time to close those URLs to unauthenticated callers.
Outbound: allowInternetAccess: false cuts the sandbox off, or use allowOut / denyOut for an allowlist (deny ALL_TRAFFIC, allow the hosts the agent may call). You can change egress on a running sandbox with updateNetwork; inbound allowPublicTraffic is create-time only. There is no published outbound IP range, so authenticate calls into your own services instead of allowlisting an address. Network and public URLs.
Pricing
Every plan meters at $0.0000025 per vCPU-second. A 2 vCPU sandbox — every coding-agent default — is $0.018 an hour. A 4 vCPU sandbox is $0.036. RAM, disk, egress, snapshots and paused time are not billed. Only running time, from start or resume until pause or kill.
A 7-day trial with $5 of credit (a card is required), then $20 / $100 / $500 a month, each plan returning its price as monthly credit. Plan credit expires at the end of the month; credit packs ($20, $50 or $100, paid plans only) do not, while the account is open. The $20 plan's credit covers about 1,111 hours of a 2 vCPU sandbox.
In our benchmark of a 2 vCPU / 4 GB box on a real CI job, Impello finished within 12% of the fastest provider we measured, at a much lower list rate. That job is not a coding-agent turn; it is the public number we have. The method is on that page. The rate card is on pricing and in limits and pricing.
Honest limits
The same trade-offs we print everywhere else, because they apply here:
- Starts take 1–3 seconds, not the ~80–200 ms some others advertise.
- Burst is modest: 5 starts a minute on the trial, 65 a minute and 300 concurrent sandboxes on the $500 plan. A create over the cap is refused, not queued.
- A sandbox may run for 1 hour on the trial, 12 hours on $20, or 24 hours on $100 and $500. Set
lifecycle: { onTimeout: 'pause' }if the disk should survive the deadline. - A paused sandbox is kept 14 days, then deleted.
- Compute is EU only. There is no region option, no GPU, no Windows, no macOS, no SLA, no status page and no support channel.
- We do not ship a CLI, volumes, a secrets store, or a code-interpreter / desktop client package.
We do not recommend running a production app here. A coding agent that needs a US region, a GPU, or thousands of creates a minute should look at the rest of the field on best AI agent sandboxes and E2B alternatives.
FAQ
Can I run Claude Code in a cloud sandbox on Impello?
Yes. The step-by-step is How to run Claude Code in a cloud sandbox. Create a sandbox from the claude template (also named claude-code), pass the vendor key with envs, and run ~/.local/bin/claude. The same pattern works for Codex, OpenCode, pi, Amp, Droid, Grok and OpenClaw. Nothing in those templates is signed in. Anyone can sign up for a 7-day trial.
How is this different from a local Docker or devcontainer sandbox?
A local Docker or Dev Containers workflow runs on the machine that started it. An Impello sandbox is a remote isolated microVM in the EU, so it is not tied to your laptop staying awake. Pause snapshots memory and disk by default and costs $0; a sandbox left running still meters. Isolation is a hardware-virtualised VM, not a container sharing the host kernel. If you mean Docker’s hosted Sandboxes product rather than local Docker, see Impello and Docker Sandboxes.
Does idle time cost anything?
While the sandbox is running, yes: compute is metered per vCPU-second from start or resume until pause or kill. A paused sandbox costs nothing, holds its disk, and by default keeps memory too. It is deleted after 14 days paused. There is no limit on how many you keep paused.
How do I pass API keys?
Pass them in envs on Sandbox.create. They are ordinary process environment for every command, not a secrets store — Impello does not ship one. A command can override them with its own envs. The templates docs show ANTHROPIC_API_KEY for Claude Code; each other CLI has its own variable, which is the vendor’s, not ours.
How long can a coding agent run?
The sandbox timeout defaults to 5 minutes. The plan cap is 1 hour on the 7-day trial, 12 hours on the $20 plan, and 24 hours on the $100 and $500 plans. At the deadline the sandbox is killed unless you set lifecycle onTimeout to pause. A single command times out after 60 seconds unless you raise it (or pass 0 to remove the limit).
Where does it run, and is there an SLA?
Germany and Finland. The fleet database and template backups stay in the EU. Account, billing and analytics are in the US and never see sandbox contents. There is no region option, no SLA, no status page and no support channel. Anyone can sign up, and Impello is sold to businesses only.
Is this the same as connecting Claude Code to Impello over MCP?
No. The MCP server lets Claude Code, Claude Desktop, Cursor or Codex on your machine drive your team’s sandboxes. This page is the other direction: the coding agent runs inside the sandbox. Both are documented; they are not the same product surface.
Sign up
Anyone can sign up. The 7-day trial needs a card, one trial per card, and Impello is sold to businesses only. If a Claude Code sandbox in the EU — or the same box for Codex and the other CLIs we ship — is what you need, start a 7-day trial.
Step by step: How to run Claude Code in a cloud sandbox. A cloud browser with Playwright: How to give your AI agent a cloud browser with Playwright. Code, not copy: templates, timeouts, pause and snapshots, network, MCP if the agent should stay on your laptop and drive sandboxes from there. The rate card is on pricing.
Sources
Every product fact on this page is from Impello's own docs and code. No competitor list rate is quoted. Local Docker / Dev Containers is a category contrast (where the process runs, what happens when the machine sleeps), not a claim about a named Docker product's features or price.
- Templates, aliases, sizes, binaries,
envs, unpinned CLIs: /docs/templates,templates/claude/template.tsand the other agent template directories - Pause is $0, 14-day paused TTL, memory kept by default: pause and snapshots, limits and pricing
- Timeouts, plan caps,
lifecycle.onTimeout: timeouts - Network, public URLs, allow/deny lists: network
- Rate, trial, plans, EU regions, no SLA: limits and pricing, pricing,
PAID_PLANS/ trial constants in@impello/site-contract - Isolation as a hardware-virtualised VM: privacy (Security), homepage FAQ (microVM on a shared host)
- Start time 1–3 s, self-serve sign-up, businesses only: homepage FAQ, quickstart, terms
- MCP is the other direction: MCP server
- CI cost and speed: benchmark