Statefold
ActivePer-thread cloud sandboxes for the coding-agent harnesses you already pay for, with sleep and wake around a workspace snapshot, fork from any finished turn, event-driven wake-ups from GitHub, Linear or a schedule, and credentials swapped in at egress.
- Metered unit
- per second of machine time at the size's hourly rate
- Free Tier · Pay as you go · Subscription
- Idle billing
- Zero cost while idle
- 347 listings stay free while idle
- State kept on pause
- Disk only
- Resume: A message, a preview request or a subscribed event wakes the workspace as it was; the wake time is not published
Overview
Statefold is narrower than a sandbox API and wider than a chat wrapper: it runs the harness you already pay for, Codex, Claude Code, OpenCode, Pi or Gemini CLI, on a cloud workspace and keeps the conversation, files, diff, terminal and preview together in one thread. The economics are built around the fact that an agent mostly waits. A thread gets one isolated container on a machine sized from 0.5 to 4 vCPU, billed per second, and it sleeps about ten minutes after the agent goes idle, saving the workspace so a sleeping thread costs nothing until a message or an event wakes it. That event can be a GitHub check, a review, a comment, a Linear issue, a schedule or an API call, and it re-enters the same thread with its history rather than starting a new one. Each thread can also fork from any finished turn or delegate to a child thread on another harness with its own sandbox. The security model is the most interesting design decision: agents run without approval prompts because the container is isolated, but every credential stays in a Worker outside it and is swapped in at egress only for the host it belongs to, so the model never holds a real key. The honest limits come from the vendor's own security page. The isolation unit is a container, the runtime and host boundary are not documented, non-credential network traffic is unrestricted, the service is not SOC 2 audited and not self-hostable, and Docker inside the workspace requires host networking. It is a good fit for a developer who wants several harnesses working in the background on GitHub repositories, not for someone who needs a hardware VM boundary or a raw sandbox API.
Key capabilities
- Runs Codex, Claude Code, OpenCode, Pi or Gemini CLI on your own subscriptions
- One isolated container and one thread per task
- Machine sizes from 0.5 to 4 vCPU rated $0.10 to $0.55 per hour
- Billed per second while running; a sleeping thread costs nothing
- Sleep after about ten minutes idle, with the workspace saved and restored
- Fork a thread from any finished turn, or delegate to child threads
- Wake on GitHub checks, reviews and comments, Linear, a schedule or the API
- Credentials kept outside the sandbox and swapped in at egress per host
- CLI hands off the local checkout, including uncommitted work
- Threads API with scoped personal tokens; previews, terminal and diffs in the browser
statefold-thread.sh
# Install, sign in, and hand this checkout to a cloud thread
curl -fsSL https://statefold.sh/install.sh | sh
statefold login
statefold thread new "fix the token refresh race"
# Or start a thread through the Threads API
curl --fail-with-body https://statefold.sh/api/v1/tasks \
-H "Authorization: Bearer $STATEFOLD_TOKEN" \
-H "Content-Type: application/json" \
--data @request.json
# Poll the thread; a finished turn can be forked from the appSimilar alternatives
Technical specifications
- Runtime architecture
- Docker / Container
- Runtime notes
- One isolated container per thread, described by the vendor as its own container; the container runtime and host boundary are not documented
- Debian 12 workspace with the project at /workspace/repo, Docker, Docker Compose and Buildx installed with the daemon off, PostgreSQL 16 with pgvector, agent-browser, tmux, gh, Node, Bun and Python
- Provider keys, subscription tokens and the GitHub token stay outside the sandbox and are replaced at egress by a Worker, only for the hosts each credential allows
- Cold-start boot time
- Not published
- Max vCPU
- 4 vCPU on standard-4, the largest size
- Max memory
- 12 GiB on standard-4; 4 GiB on the smallest
- Storage model
- 20 GB disk on standard-4; 8 GB on the smallest
- Network isolation
- Each thread gets its own container, and the agent runs with full access inside it. Provider keys, subscription tokens and the GitHub token never enter the sandbox: the agent sees placeholders that a Worker replaces at egress, only for the host each credential belongs to, and a secret can be bound to allowed hosts. Everything else the sandbox sends is not restricted, a process inside can make GitHub requests with your access, and preview links can be opened by anyone who has them.
Lifecycle & capabilities
- Filesystem persistence
- Supported
- Memory / disk snapshot
- Supported
- Instant forking
- Supported
- GPU acceleration
- Unknown
- GUI desktop / VNC
- Not supported
- Mobile / cloud phone
- Unknown
- Browser automation
- Supported
- Network egress control
- Not supported
- Pause / auto-sleep
- Supported
- MCP protocol server
- Unknown
- REST API & SDKs
- Not supported
- Idle billing
- Zero cost while idle
- State kept on pause
- Disk only
- Resume latency
- A message, a preview request or a subscribed event wakes the workspace as it was; the wake time is not published
- Session limit
- A workspace sleeps about ten minutes after the agent goes idle and stops billing; a thread waiting on your answer stays awake, and on Codex it sleeps after four hours unanswered
Pricing model
Official VerifiedRate read 26 Nov 2026.
Only machine time is charged, per second while the sandbox runs, at the rate for its size: standard-1 with 0.5 vCPU, 4 GiB and 8 GB disk is $0.10 per hour, standard-2 with 1 vCPU, 6 GiB and 12 GB is $0.20, standard-3 with 2 vCPU, 8 GiB and 16 GB is $0.30 and is the default, and standard-4 with 4 vCPU, 12 GiB and 20 GB is $0.55. A sleeping thread costs nothing. Plans are $10, $50 or $100 a month and each grants its price in credit for that month; top-ups start at $10 and never expire, and there is no automatic overage. Linking GitHub gives a one-time $3 starter credit, about 10 hours on the default machine. Model tokens are billed by your own Codex, Claude, OpenCode, Pi or Gemini subscription or API key, with no markup.