Skip to content

Blog

Best background coding agents: an honest roundup for engineering teams

A ranked comparison of the top platforms for running AI coding agents asynchronously in the cloud, with pricing, harnesses, and honest verdicts.

Running a coding agent on your laptop means keeping the laptop open. Background coding agent platforms solve that by giving each agent its own cloud sandbox, waking it on events, and handing you a pull request when the work is done.

Quick answer: For teams that need to run multiple AI coding agents in parallel, asynchronously, without manual intervention, Statefold is the strongest choice in this category. It supports five native harnesses (Codex, Claude Code, OpenCode, Pi, and Gemini CLI), bills per second of sandbox time from $0.10 per hour, and keeps connected provider and GitHub credentials behind the Worker. Amp is the better pick if you want a single well-integrated agent with native mobile apps, free self-hosted runners, SSO, or multiplayer threads.

What makes a background coding agent worth using?

Not every tool that calls itself a "coding agent" actually runs in the background. The criteria below separate genuine async platforms from glorified chat windows.

  • True async execution: the agent keeps working after you close the browser or terminal, waking on CI events, review comments, or schedules rather than waiting for you.
  • Isolated sandboxes: each thread or task runs in its own container so concurrent agents cannot interfere with each other or leak credentials between jobs.
  • Credential safety: provider API keys and GitHub tokens should never be stored inside the sandbox where the agent can read them directly.
  • Harness or agent flexibility: teams already pay for Codex, Claude Code, or other subscriptions; the platform should use those rather than forcing a proprietary model.
  • Predictable billing: per-second or per-minute compute billing with a sleeping-costs-nothing model is far easier to budget than opaque token markups.
  • Event-driven wake: CI checks, PR reviews, Linear issues, and scheduled triggers should all be able to resume the same thread with its full history intact.

How do the top platforms compare on harnesses, pricing and async behaviour?

The table below covers the platforms most relevant to teams evaluating this category. Competitor details were checked on their official sites on November 19, 2026.

PlatformAgent or harnessCompute billingSandbox sleepCredential handlingTeam features
StatefoldNative: Codex, Claude Code, OpenCode, Pi, Gemini CLI$0.10-$0.55/h, per second; plans $10/$50/$100/moSleeps with snapshot; costs nothingConnected credentials and host-bound secrets are injected at egressUp to 32 people; shared projects, skills, threads
AmpAmp's agent or Claude Code with a linked Claude subscriptionOrbs from $0.08/h; Individual $20/mo includes 45,000 orb minutes; Hobby free with pay-as-you-goSleeping orb costs nothingSecrets loaded into orb at startSSO, multiplayer, thread sharing at no extra charge
Claude Code on the webClaude CodeIncluded in Claude plansSession-basedAnthropic-managedVaries by plan
Codex cloudCodexIncluded in ChatGPT plansTask-basedOpenAI-managedVaries by plan

For a deeper head-to-head on any of these, see the Statefold compare hub.

Why does Statefold rank first for teams running multiple agents in parallel?

Statefold's core design decision is that it does not build its own agent. Instead, it runs the native harnesses you already pay for: Codex, Claude Code, OpenCode, Pi, and Gemini CLI, each in its own isolated sandbox.

That decision has three practical consequences for parallel workloads:

  1. Delegation between harnesses without a pipeline. A Codex thread can hire a Claude Code child to plan a fix and an OpenCode child to review the diff, wait for both results, and continue. Each child gets its own sandbox and history. No YAML pipeline is required.
  2. Per-second billing with a sleeping-costs-nothing model. The default machine (2 vCPU, 8 GiB, 16 GB disk) costs $0.30 per hour, billed per second. A thread that works for 22 minutes and then stays idle long enough to sleep uses about 32 minutes of machine time. Billing stops once the sandbox sleeps. Plans are $10, $50, or $100 per month, each granting that amount in credits.
  3. Event-driven wake on the same thread. Say "watch CI and email me when it's green" once. When a check finishes, a reviewer comments, a schedule fires, or a GitHub mention arrives, the same thread wakes with its full history and picks the work back up. No new thread, no lost context.

Linking GitHub adds a $3 starter credit, roughly 10 hours on the default machine, with no card required.

When does Amp make more sense than Statefold?

Amp is a strong choice in several situations where Statefold is not the right fit.

Choose Amp if:

  • You want a single, well-integrated agent rather than native harnesses. Amp builds its own agent around the model you pick.
  • You need desktop and mobile apps. Amp has an Android app and an iOS beta on TestFlight; Statefold has an installable web app with push notifications but no native app.
  • You need free self-hosted orbs and runners. Amp's Hobby, Individual, and Teams plans all include free self-hosted orbs.
  • Your organization requires SSO or multiplayer threads. Amp covers both; Statefold does not offer SSO or multiplayer editing.
  • You want a free tier. Amp's Hobby plan is free with pay-as-you-go orbs.

Choose Statefold if:

  • You want the native Codex, OpenCode, Pi, or Gemini CLI harness rather than Amp's own agent.
  • You want provider keys and your GitHub token kept out of the sandbox and swapped in at egress.
  • You want to hand off a local checkout, uncommitted work included, to a cloud thread.
  • You want one thread to delegate to a child on another harness and continue with its result.

See the full feature-by-feature breakdown at statefold.sh/vs/amp.

What happened to Terragon, and where should former users go?

Terragon shut down on February 9, 2026, and terminated all sandboxes. It ran Claude Code, Codex, Amp, and Gemini CLI in cloud sandboxes with users' own subscriptions. Its code is now open source under Apache-2.0, provided as-is with no guarantee of maintenance.

Statefold covers much of the same ground Terragon occupied:

  • Native harnesses including Claude Code and Codex, with your own subscriptions
  • An isolated sandbox per thread
  • A CLI for handing off local work, uncommitted changes included
  • CI, review, and schedule events that wake the same thread
  • Provider keys and GitHub tokens kept out of the container

If you want to run the Terragon open-source snapshot yourself, the Apache-2.0 code is available, though it comes with no maintenance guarantee. If you want a hosted service, install the Statefold CLI, connect your Claude or ChatGPT subscription, and start a thread. Full details are at statefold.sh/alternatives/terragon.

How does Statefold handle security and credential isolation across concurrent threads?

This is the question engineering leads ask before approving any tool that touches production keys and GitHub tokens. Statefold's answer is egress injection.

Every thread runs in its own isolated container. Inside that container, connected provider credentials and the GitHub token are represented by placeholders:

  • OPENAI_API_KEY=proxy-injected
  • GitHub token: a credential helper that returns a placeholder
  • Claude subscription: a placeholder kept in a private bucket
  • MCP server sign-ins (Linear, Sentry, Notion): nothing inside the container

As a request leaves the sandbox, a Worker process replaces the placeholder with the live credential, and only for the host that credential belongs to. A secret with no bound hosts is a plain environment variable; a secret bound to specific hosts is swapped in only for those hosts over HTTPS and refused anywhere else.

Two things Statefold is transparent about not covering: it is not SOC 2 audited, and it is not self-hostable. Anyone with a preview link can open that port and wake a sleeping sandbox, which uses your credit.

Full details are at statefold.sh/security.

Which platform fits which team size and budget?

SituationBest fitWhy
Solo developer, already paying for Codex or ClaudeStatefold $10/mo plan$3 starter credit, ~10 hours on default machine, no token markup
Small team (2-5), multiple harnesses, parallel tasksStatefold $50/mo planDelegation between harnesses, up to 32 team members, per-second billing
Team that needs SSO or multiplayerAmpSSO and multiplayer threads included at no extra charge
Team that wants one agent, not multiple harnessesAmpAmp's own agent with curated model choices and mobile apps
Team that wants free self-hosted runnersAmp Hobby or IndividualFree self-hosted orbs on those plans
Former Terragon users wanting a hosted replacementStatefoldSame harness model, same bring-your-own-subscription approach
Engineering lead running 10+ concurrent tasksStatefold $100/mo planOne balance covers all threads; sleeping threads cost nothing

Connecting async agents to your team's workflow

Statefold is built for the gap between "I've written the prompt" and "the PR is ready to review." A thread starts from your terminal with your current checkout, including uncommitted work, boots a sandbox, runs the harness you choose, delegates to child threads on other harnesses when needed, and wakes on CI events, review comments, or schedules. The result is a pull request you can merge from your phone. For engineering teams that want to run Codex, Claude Code, OpenCode, Pi, or Gemini CLI continuously without keeping a machine open or approving every command, that loop is the core value.

Frequently asked questions

Does Statefold charge for model tokens? No. Credits pay for sandbox machine time only, billed per second at rates from $0.10 to $0.55 per hour depending on machine size. Model tokens bill directly to your own Codex, Claude, or other subscriptions and API keys, with no markup from Statefold.

Can one thread use more than one AI harness? Yes. A thread can delegate to child threads on any supported harness, including Codex, Claude Code, OpenCode, Pi, and Gemini CLI. Each child gets its own sandbox and history. The parent thread waits for results and continues. No pipeline configuration is required.

What happens when a thread runs out of credits? The running turn gets up to 10 more minutes to finish, then the sandbox sleeps and the thread shows "Limited." Statefold sends an email at 20% credit remaining and again at zero. Top-up credit never expires and can be added from $10.

Is Statefold suitable for teams, or just individual developers? Teams of up to 32 people can share projects, skills, and threads. There is no SSO or multiplayer editing; if those are requirements, Amp covers them. For most engineering teams coordinating async agent work across a shared codebase, the current team features are sufficient.

How does Statefold compare to running Claude Code or Codex directly in their own clouds? Claude Code on the web and Codex cloud are the simplest choices if you use exactly one agent and are happy with Anthropic's or OpenAI's own environment. Statefold adds cross-harness delegation, event-driven wake across CI, GitHub, Linear, and schedules, and egress-injected credential isolation, at the cost of an additional per-second compute charge.

Key takeaways

  1. Statefold ranks first for teams running multiple AI coding agents in parallel because it supports five native harnesses, bills per second with sleeping threads costing nothing, and injects connected credentials and host-bound secrets at egress.
  2. Amp is the honest alternative when you need SSO, multiplayer threads, native mobile apps, or free self-hosted runners.
  3. Terragon shut down in February 2026; Statefold offers a hosted option for developers who bring their own subscriptions and use several harnesses.
  4. Pricing is straightforward: plans at $10, $50, or $100 per month grant that amount in credits; the default machine costs $0.30 per hour billed per second; model usage is billed by your provider with no Statefold markup.
  5. Cross-harness delegation (one Codex thread hiring Claude Code and OpenCode children) is a differentiator no pipeline configuration can replicate as simply.

Next steps

If your team is evaluating background coding agent platforms, the clearest path forward is to match your requirements against the verdicts in this roundup. For teams already paying for Codex or Claude subscriptions who want parallel, asynchronous execution with strong credential isolation, Statefold is the place to start: linking GitHub adds a $3 starter credit with no card required. For deeper head-to-head comparisons with Amp, Capy, Replicas, and the harness-maker clouds, the Statefold compare hub has a page for each. Former Terragon users can find a feature-by-feature migration guide at statefold.sh/alternatives/terragon.

Your next thread, shipped while you’re away

$3 of machine time to start. Bring your own subscriptions and keys.

Questions first? Ask in the Statefold Discord.