I kept running into the same wall with coding agents: they're great while I'm sitting in front of them, and useless the moment I close the laptop. The agent stops, the CI run it kicked off fails an hour later, a reviewer leaves a comment, and nobody's there to pick it up until I'm back at my desk.
So I built Statefold: cloud sandboxes for the coding agents you already pay for. Start a thread, close the laptop, merge from your phone.
Today it's open for everyone.
What it is (and what it isn't)
Statefold is not another agent. It runs the native harnesses you already use, each in its own isolated cloud sandbox:
- Codex
- Claude Code
- OpenCode
- Pi
- Gemini CLI
You bring your own subscription or API key. The harness owns the conversation; Statefold owns everything that happens between turns: keeping the transcript, waking the thread when something happens, and bringing results back to it.
Threads wake on events, not on you
This is the part I care about most. You say "watch CI and email me when it's green" once. After that, a thread wakes on its own when:
- a CI check finishes on GitHub
- a reviewer comments on the pull request
- someone writes
@statefoldon an issue or PR - a Linear issue is assigned
- a schedule fires (say, weekdays at 9:00)
- a script calls the API
Every event lands in the thread's inbox and is delivered at the next safe turn. It's the same thread, with the same sandbox and the same history. No new thread, no lost context, no notification you have to act on yourself.
In practice: a reviewer asks "can we keep the lock timeout configurable?" on line 42, the thread wakes, makes the change, and pushes a commit while you're making dinner. Your phone buzzes with Ready to review.
One thread can hire other harnesses
Different agents are good at different things, so a thread can delegate. A Codex thread can ask Claude Code to plan a fix and OpenCode to review the diff, wait for both, then carry on with their results. Each child gets its own sandbox and history and reports back to the parent.
There's no pipeline to build. You just ask.
A real machine beside the conversation
Every sandbox is a real Linux machine with Docker. Next to the thread you get:
- The diff, to read what changed
- A terminal (tmux), to run a command yourself
- The running app, with a link per forwarded port, so you can open what the agent just started
- Push notifications, so you can review and merge from your phone
Status is derived from what's actually running and linked, never from the agent declaring itself done: Working, Needs you, Ready to review, Done, Failed or Limited.
Full access inside the sandbox. Your keys never enter it.
Agents run without approval prompts, because each thread is isolated in its own container. That only works if the container is safe to give full access to, so no real credential ever enters it.
The sandbox only sees a placeholder:
OPENAI_API_KEY=proxy-injected As a request leaves the sandbox, the egress proxy swaps in the real key, and only for the host that key belongs to. Your GitHub token works the same way: it's added to outgoing requests, never stored in the container. Containers sleep when idle and keep a snapshot of the workspace.
Context that carries over
- Memory saves project conventions and your feedback after each turn ("session refresh goes through
store.lock()", "keep PRs under 400 lines"). You can inspect, edit or forget any note. - Skills and MCP servers: one skills library shared across all five harnesses. MCP sign-ins and project secrets stay on Statefold's side.
- Share by link: send a teammate the full run (messages, commands, diffs) on an unlisted page, or export it as Markdown or JSON.
Start from your terminal
You can start in the browser, or hand off the checkout you're already in:
curl -fsSL https://statefold.sh/install.sh | sh statefold login statefold thread new "Fix the flaky checkout test" The CLI signs you in, connects your agents and offloads your local workspace. The conversation and review live in the browser, on desktop or phone.
Pay for machines, not tokens
Model tokens come from your own subscriptions and keys, with no markup. Statefold credits only pay for sandbox time, billed per second while the machine runs. A sleeping thread costs nothing.
| Machine | Size | Per hour |
|---|---|---|
standard-1 | 0.5 vCPU, 4 GiB | $0.10 |
standard-2 | 1 vCPU, 6 GiB | $0.20 |
standard-3 (default) | 2 vCPU, 8 GiB | $0.30 |
standard-4 | 4 vCPU, 12 GiB | $0.55 |
Link GitHub and you get $3 of starter credit, no card needed. That's about ten hours on the default machine. After that, plans are $10, $50 or $100 a month, each granting its price in credits.
Try it
If you use more than one coding agent, or you've ever come back to a stalled agent and a red CI run, I'd love for you to try it and tell me what breaks. I read everything, in the comments here and on our Discord.
What would you hand off to an agent if it could keep working overnight?
