Skip to content

Bring your own sandbox: how agent platforms split the agent from its execution in 2026

Four agent platforms, from OpenAI and Anthropic to Cognition and Cursor, now keep the agent loop in their cloud and let customers run the tool execution on machines they choose. What each one shipped, why they split it there, and what it means for the team that runs the execution side.

What is a self-hosted sandbox for AI agents?#

In 2026 the major agent platforms converged on one design. The vendor keeps the agent loop, meaning the model calls, the planning and the decisions about what to do next. The customer runs the execution: the shell commands, the file edits and the repository access. A small worker on the customer's side connects out to the vendor, takes tool calls and sends back results. OpenAI's Agents SDK, Anthropic's Claude Managed Agents, Cognition's Devin and Cursor's cloud agents all shipped a version of it this year. For anyone running agents, the execution environment has become a choice instead of a given.

Four launches, one shape#

OpenAI: sandbox agents in the Agents SDK#

OpenAI announced native sandbox support for its Agents SDK on 15 April 2026. The docs put the idea in one line: "A sandbox gives an agent an isolated, Unix-like execution environment." They also name the design principle: "The key split is the boundary between the harness and compute." The agent definition stays the same wherever it runs, because "the provider is part of the run configuration, not the agent definition." You can develop against a local sandbox, switch to a hosted provider when you need managed execution, or write your own client.

Anthropic: self-hosted sandboxes for Claude Managed Agents#

Claude Managed Agents runs the whole agent for you by default, in Anthropic's cloud. Its self-hosted sandboxes, in beta, move the tool execution "from Anthropic-managed cloud sandboxes into infrastructure you control, while Anthropic keeps running the agent." The mechanics are a queue. You create a self-hosted environment, run an environment worker on your own host, and each session becomes a work item that a worker claims. Claude requests tool calls, the worker runs them locally and posts the results back. The worker host "needs only outbound HTTPS", so nothing in your network has to accept incoming connections.

Cognition: Devin Outposts#

Devin Outposts "lets you run Devin sessions inside infrastructure you control." The split matches the others: the agent loop "continues to run in Devin's cloud", while "all command execution, file edits, and repository access happen on machines you operate." The docs list VMs, containers, Kubernetes clusters and even a Mac mini as possible hosts, connected the same way: "Workers only need outbound HTTPS access."

Cursor: self-hosted machines for cloud agents#

Cursor followed on 2 September 2026. Its cloud agents now run their tools on machines a team manages, while the agent loop, the inference and the planning stay with Cursor. A worker started with agent worker start holds a long-lived outbound connection, and the post is explicit that "Cursor never initiates a connection into your network." Teams group workers into named pools, and a controller starts machines from a spawn script the team supplies, so nobody has to guess how many to leave running.

Why the vendors split it there#

The line falls where it does for three reasons, and they show up in every one of these launches.

The data stays home. Many companies will let a model see code, but not let a vendor's machines hold a full copy of their repositories, their secrets and their internal services. Moving execution inside the customer's boundary answers the second worry without touching the first. Anthropic's docs describe self-hosting as the fit when an agent must work on data that cannot leave your network or reach services that are not publicly routable.

Then there are internal services. An agent that has to call a staging API, query an internal database or push to a self-hosted Git server needs to run where those things are reachable. A worker inside the network gets that for free, and outbound-only connections mean no firewall holes.

And hardware varies. Cursor's announcement names GPUs and Macs for iOS work. A vendor cannot stock every build machine its customers need, so it lets them bring their own.

What did not move#

The agent's brain stays with the vendor in all four designs. The model runs there and the transcript lives there. The tool inputs and outputs also pass through the vendor, because the model has to read the results to decide its next step. Anthropic says so plainly in its docs, and Cursor's design works the same way.

So self-hosted execution is a statement about where code runs and what it can reach. It narrows what the vendor's machines hold, and it puts the execution under your network rules. It does not make the conversation private from the vendor, and teams should read each vendor's data-flow page with that in mind.

What it means for the team that runs the execution side#

Owning execution sounds simple: run a worker, take calls, return results. At any real volume it turns into an operations job with its own questions.

One sandbox per session, or a pool of long-lived workers? A shared worker is cheap and leaves state from one session lying around for the next. A fresh sandbox per session keeps sessions apart, which matters when each session runs code a model wrote, and it costs a start per session. That start then has to be fast, because a queued session waits on it.

How do sessions get their environment? The agent expects the repository checked out with dependencies installed. Doing that inside every session burns minutes; preparing it once and copying it per session removes the wait. Anthropic's docs reject file and repository resources on self-hosted sessions, so staging the workspace becomes your job.

What happens while the model thinks? Agents spend much of a session waiting for the model, and a sandbox that keeps billing during that time turns waiting into cost. Pausing idle sandboxes, and waking them on the next tool call, changes the bill a lot for long sessions.

Who sets the network rules and holds the secrets? Moving execution inside your boundary is only safer if the sandbox cannot reach everything inside that boundary. The worker should run where its access is limited to what the task needs.

How do you cap the spend? A misbehaving agent can create sessions faster than anyone watches the bill. A pool with a size limit and a spend cap stops that at the source.

Where Promigence fits#

Promigence is built for the execution side of these platforms. The adapter for Claude Managed Agents runs the workers of a self-hosted environment on Promigence sandboxes, as a pool you size and give a spend cap, and the sessions on that environment are served from the pool. A second adapter, for the OpenAI Agents SDK, gives a SandboxAgent a Promigence sandbox, so its shell and file tools run there instead of on your machine, and your agent code stays the same. A sandbox is ready for its first command in 207 ms at p50, sandboxes can pause themselves when idle and are not billed while paused, and usage is billed per second. The Claude Managed Agents and OpenAI Agents SDK pages have the install steps.

FAQ#

What is a self-hosted sandbox for AI agents?#

It is an execution environment that you run, connected to an agent platform that runs the model and the agent loop. The platform sends tool calls to a worker in your environment, the worker runs them and sends back the results.

Does a self-hosted sandbox keep my code away from the AI vendor?#

Partly. The code runs and the repository lives on machines you control, but tool inputs and outputs still pass through the vendor so the model can read them. Each vendor documents the exact data flow.

Why do self-hosted agent workers use outbound connections only?#

So that nothing in your network has to accept incoming traffic. The worker opens an HTTPS connection to the vendor and receives work over it, which fits behind ordinary firewalls without opening ports.

Should each agent session get its own sandbox?#

For untrusted, model-written code, yes. A fresh sandbox per session keeps one session's files and processes away from the next. Make the start fast and prepare the environment once, so the isolation does not cost minutes per session.

Sources#

SourceWhat it supportsRead
OpenAI: the next evolution of the Agents SDK (15 Apr 2026)the launch of sandbox agents25 Oct 2026
OpenAI: sandbox agents guidethe harness and compute split; the provider in the run configuration25 Oct 2026
Claude Managed Agents: self-hosted sandboxesbeta status, the work queue, outbound HTTPS, the data flow, no file or repository resources25 Oct 2026
Claude Managed Agents: choosing an environmentwhen self-hosting fits25 Oct 2026
Devin docs: Outposts overviewthe split, the hosts, outbound HTTPS25 Oct 2026
Cursor: run cloud agents on machines you manage (2 Sep 2026)workers, pools, outbound connections, reasons25 Oct 2026
Promigence integrationsthe two adapters25 Oct 2026

More in the Promigence blog, or follow it by RSS.

Request access

Leave your work email and we will email you an invite code. $10 free, no card. $40 more when you add one.

See our Privacy Policy for how we use your email.

Request access

Leave your work email and we will email you an invite code. $10 free, no card. $40 more when you add one.

See our Privacy Policy for how we use your email.