Claude Code hosting on a computer that keeps its state
Run Anthropic's Claude Code on a persistent, always-on Agent 37 Cloud instance from $1.99/mo. One API call provisions it, the repo and sessions persist between runs, and it keeps working after your laptop goes to sleep.
New workspaces get a $1 starter credit: first instance free, no card required.Coding agents accumulate state. Ephemeral sandboxes throw it away.
A coding agent is only fast when its environment already exists: the repo cloned, the dependencies installed, the build cache warm, the credentials configured. Ephemeral sandboxes reset all of that on every run, so each session starts by paying the setup tax again. A persistent instance pays it once.
Persistence usually costs a fortune because the box has to stay on. This one does not: an always-on instance starts at $1.99 a month, metered per minute from a prepaid balance, on the same fleet that runs roughly 1,000 live instances today.
A persistent computer behind one API
Agent 37 Cloud provisions isolated, always-on instances from Docker images. Claude Code runs from the one-click agent37-claude-code template: create the instance, sign in to your Anthropic account, and hand it work.
One-click template
The agent37-claude-code template is how Claude Code runs today: one POST and the instance comes up with Claude Code preinstalled. Custom images remain for advanced setups.
One POST to provision
POST /v1/instances provisions a persistent computer running your image on always-on compute. No fleet to manage, no VMs to babysit.
A URL per instance
Every instance is reachable at https://{id}.agent37.app, with any port routable. No reverse proxy, no DNS, no certificates.
Streaming built in
POST /v1/responses on the instance URL runs a turn and streams text, reasoning, and tool activity over Server-Sent Events.
State that stays
Files, memory, and sessions persist until you delete the instance. The repo your agent cloned on Monday is still there on Friday.
Kernel-level isolation
Every instance runs under the gVisor runtime with a hard per-instance disk quota. Delete the instance anytime and billing stops.
Always-on, without always-on prices
The comparison below is the honest one: estimated monthly cost of keeping a roughly 4 GB box on 24/7. Ephemeral sandbox platforms are excellent at ephemeral work; they are just not priced for a machine that never turns off.
The 2 vCPU / 4 GB shape is $4.94/mo, and disk expands at $0.09 per GB per month. Everything is metered per minute from a prepaid balance: no seats, no minimums, and billing stops the moment you delete an instance.
Three things, and one of them is free
Claude Code is a third-party tool: Anthropic builds it, you license it from them, and this page never pretends otherwise. Here is the full list.
Your Anthropic account or API key
Claude Code is Anthropic's coding agent, not ours. You bring your own Anthropic credentials, and Anthropic bills you for model usage directly. We host the computer it runs on.
The agent37-claude-code template
Nothing to package: create the instance with the agent37-claude-code template and it comes up with Claude Code preinstalled. Open the instance terminal, run claude auth login, and start handing it work over the API. Custom images remain for advanced setups.
An Agent 37 Cloud workspace
Sign in, mint an API key, and provision. New workspaces get a $1 starter credit, roughly a week of the cheapest instance, so the first instance is free and needs no card.
Schedule it. Ship it under your own brand.
Scheduled and cron runs
Give an instance a cron schedule and it runs unattended: nightly dependency bumps, test triage on a timer, a report generated before standup. Because the machine persists, every scheduled run starts from a warm environment instead of a cold clone.
White-label by default
Building a coding-agent product for your own customers? You hold the API key, provision one instance per customer, and cap per-instance spend. Your customers see your product, never Agent 37.
Claude Code hosting questions, answered
Is there a one-click Claude Code template?
Yes, available now: the template is named agent37-claude-code. POST /v1/instances with that template and the instance comes up with Claude Code preinstalled. Open the instance terminal, run claude auth login to connect your Anthropic account, and chat through the API. The persistence, streaming, scheduling, and isolation described on this page all apply.
What does Claude Code hosting cost?
From $1.99/mo on a shared instance, or $4.94/mo for a dedicated always-on 2 vCPU / 4 GB instance. Extra disk is $0.09 per GB per month. Everything is metered per minute from a prepaid balance with no seats, and billing stops the moment you delete an instance. New workspaces get a $1 starter credit, so the first instance is free to try, no card required. Model usage is separate: you pay Anthropic directly through your own account or API key.
Can Claude Code run 24/7 here?
Yes. Instances are persistent and always-on by design, which is the point of hosting a coding agent instead of running it in a laptop terminal. Long jobs keep running after you close the tab, and cron-style scheduled runs execute unattended so results are waiting in the morning.
Where does my code and data live?
On your instance's persistent disk, inside an isolated container running under the gVisor runtime with a hard per-instance disk quota. Files stay on the instance until you delete it, and you can delete anytime. Bring-your-own-key credentials go from your instance to the provider; we never need them.
Is Claude Code an Agent 37 product?
No. Claude Code is Anthropic's coding agent, and it needs your Anthropic account or API key to run. Agent 37 Cloud is the infrastructure layer: a persistent, isolated, always-on computer with an API for provisioning, streaming, files, and schedules. The same platform also hosts the open-source Hermes agent and OpenClaw, and any public Docker image.
Can I host OpenAI's Codex the same way?
Yes. Codex runs from the one-click agent37-codex template on the same API and pricing: create the instance, connect your own OpenAI account (ChatGPT login or API key), and hand it work. See the Codex hosting page for the details.
Also hosting a different coding agent? The same API runs OpenAI's Codex, OpenCode, xAI's Grok, and any public Docker image. Full API details live on the Cloud page.