Agent 37 Cloudthe persistent-agent API

OpenCode hosting that works the moment it boots

Run OpenCode, the open-source coding agent, on a persistent, always-on Agent 37 Cloud instance from $1.99/mo. It works out of the box on the managed model, with no login to wire up. Provision it with one API call, hand it long jobs, and come back to a machine that still has the repo, the caches, and the context.

New workspaces get a $1 starter credit: first instance free, no card required.
[01] Persistent

A coding agent on a disposable sandbox starts over every day

Ephemeral sandboxes are built for one-shot tasks: spin up, run, evaporate. Agentic coding work is not one-shot. It spans sessions, accumulates a working tree, installs toolchains, and picks up threads from yesterday. Hosting OpenCode on a persistent instance means the environment is part of the work, not a cost you pay again every morning.

The working tree survives: no re-cloning, no reinstalling toolchains every session
Long-running jobs finish: migrations and full test suites are not fighting a sandbox lifetime
Scheduled runs execute on a machine that is already up, with warm caches
Whatever OpenCode wrote yesterday is exactly where it left it

The usual objection to persistence is price, because the box never turns off. Here that objection is $1.99 a month, metered per minute from a prepaid balance.

[02] How it works

A persistent computer behind one API

Agent 37 Cloud provisions isolated, always-on instances from Docker images. OpenCode runs from the one-click agent37-opencode template, ready on the managed model, and the API treats it like any other workload.

One-click template

The agent37-opencode template is how OpenCode runs today: one POST and the instance comes up with OpenCode preinstalled and ready on the managed model. Custom images remain for advanced setups.

One POST to provision

POST /v1/instances provisions a persistent computer running your image on always-on compute. Each instance is an isolated machine with its own disk.

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. Checkouts, dependencies, and half-finished branches are waiting next session.

Kernel-level isolation

Every instance runs under the gVisor runtime with a hard per-instance disk quota. Delete the instance anytime and billing stops.

[03] Pricing

What always-on actually costs

Estimated monthly cost of keeping a roughly 4 GB box on 24/7. Sandbox platforms are great at what they are for; a machine that never turns off is not what they are for.

Agent 37 Cloud$1.99/moAlways-on, 2 vCPU / 4 GB, metered per minute
AWS / GCP~$30/moEstimated always-on 4 GB box, before you build the routing and isolation yourself
E2B / Daytona~$121/moEstimated at always-on sandbox rates; these products are priced for ephemeral use

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.

[04] What you need

No account to connect, no login to wire up

OpenCode is open source, built by SST, and on Agent 37 it runs out of the box on the managed model. Here is everything involved, optional parts included.

1

The agent37-opencode template

Nothing to package: create the instance with the agent37-opencode template and it comes up with OpenCode preinstalled and ready on the managed Agent 37 model. No login, no account to connect. Custom images remain for advanced setups.

2

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.

3

Your own model key, if you want one

Optional. To run a specific model, set OPENAI_API_KEY, ANTHROPIC_API_KEY, a Google, or an OpenRouter key (or any provider OpenCode supports) when you create the instance, and OpenCode uses it. You pay that provider directly. Skip it and the managed model just works.

[05] Unattended

Schedule it. Ship it under your own brand.

Scheduled and cron runs

Give an instance a cron schedule and it runs unattended: overnight batch fixes, dependency updates on a timer, a code-health report before standup. A persistent machine means every scheduled run starts warm.

White-label by default

Reselling a coding-agent service? You hold the API key, provision one instance per customer, and cap per-instance spend. Your customers see your brand, never Agent 37.

[06] FAQ

OpenCode hosting questions, answered

Is there a one-click OpenCode template?

Yes, available now: the template is named agent37-opencode. POST /v1/instances with that template and the instance comes up with OpenCode preinstalled and ready on the managed model, no login required. Optionally set a provider key (OPENAI_API_KEY, ANTHROPIC_API_KEY, a Google or OpenRouter key) in the instance env to run your own model, then chat through the API. The persistence, streaming, scheduling, and isolation described on this page all apply.

What does OpenCode 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. The managed model is included; if you bring your own provider key, that provider bills you directly for model usage.

Can OpenCode run 24/7 here?

Yes. Instances are persistent and always-on by design. A refactor that takes all night keeps running after you close your laptop, and cron-style scheduled runs execute unattended so the 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. If you set your own provider key, it lives on your instance and goes from there to that provider; we never need it.

Is OpenCode an Agent 37 product?

No. OpenCode is an open-source coding agent built by SST. Agent 37 Cloud is the infrastructure layer: a persistent, isolated, always-on computer with an API for provisioning, streaming, files, and schedules. Unlike a bring-your-own-account agent, OpenCode runs here on the managed model with nothing to connect. The same platform also hosts OpenAI's Codex, Anthropic's Claude Code, the open-source Hermes agent and OpenClaw, and any public Docker image.

Can I bring my own model or provider?

Yes. OpenCode ships ready on the managed Agent 37 model, but you can point it at any provider it supports: set OPENAI_API_KEY, ANTHROPIC_API_KEY, a Google, or an OpenRouter key (among others) in the instance environment and pick any model that provider offers. You pay that provider directly, and the managed model stays the default so bringing your own is optional.

Bringing your own account instead? The same API runs OpenAI's Codex and Anthropic's Claude Code, and xAI's Grok on the same pricing, plus any public Docker image. Full API details live on the Cloud page.

Start on Agent 37 Cloud$1 starter credit for new workspaces. Delete anytime.