You want to build an agent. Where can you host it, who runs it, and where does your data go? This article works through those questions, one kind of platform at a time.
Every agent platform now offers some version of the same list: a sandbox, memory, tools, tracing, evals. Put the marketing pages side by side and it’s hard to tell them apart.
What separates them is a simpler question: which parts of the agent run in someone else’s account, and what crosses that line? If you work somewhere with a data residency requirement, a regulator, a zero-data-retention agreement or just a security team that reads contracts, that question decides the shortlist before features come into it. A sandbox that runs in a vendor’s cloud is a different proposition from one that runs in yours, even if both are “a sandbox”. A customer record your tool fetches inside your own network can still end up stored in a vendor’s transcript.
Everything here comes from vendor documentation, pricing pages and regulators’ own texts, checked on 30 November 2026. I’ve taken the docs at face value and haven’t tested the claims myself, and where a vendor doesn’t say something, the graphics say “not stated” rather than guess. Several of these products are in beta or preview, so treat every status and price as dated.
All the data behind the graphics is in a filterable matrix, which I’ll keep updated.
Four kinds of offering
The options fall into four groups, split by what each vendor wants you to commit to.
Frontier labs: managed agents that sell the model
Claude Managed Agents (Anthropic, public beta since 8 April 2026), the OpenAI Agents API (public beta since 10 September 2026) and Mistral Studio managed agents (public preview since 5 November 2026) are the labs’ own hosted agent runtimes. Each lab runs the agent loop for you, keeps the conversation history, provides a sandbox and bills you for tokens plus some runtime.
Each comes in more than one deployment mode. Claude Managed Agents can be fully hosted, hosted with sandboxes you run, or self-hosted. OpenAI’s sandbox can be OpenAI’s, a partner’s or your own compute. Mistral’s agents can run in-process through its SDK, on a worker you host, on Mistral-managed infrastructure, or in a private-cloud or on-prem deployment of Studio.
The convenience is real, and so is the hook. These platforms exist to sell the lab’s models. Claude Managed Agents runs Claude only. Every OpenAI example uses OpenAI models, and the docs never mention bringing another. Mistral is the exception. Its agents SDK ships providers for OpenAI and Anthropic as well as its own models.
Details that stood out:
- With the direct Agents API, OpenAI always runs the harness, even though its code is open source. The Agents API is built on the Codex harness, which is Apache-2.0 on GitHub, but OpenAI operates it. You can run the sandbox on your own machines; the loop and your sessions stay at OpenAI. There’s also a Bedrock version, Bedrock Managed Agents, which runs the harness and inference in Amazon Bedrock. OpenAI’s guide doesn’t say who operates it or in whose account.
- Anthropic now lets you run the whole thing yourself. Self-hosted Claude Managed Agents went into private beta on 12 November 2026. The harness, sandboxes and session history run in your cloud or data centre, with history in your own Postgres. The model is still Claude, but it can come from Anthropic, AWS Bedrock, Google Vertex or Microsoft Foundry.
Hyperscalers: keep it in our cloud, or in your own account
AWS Bedrock AgentCore (generally available since 13 October 2025), Microsoft Foundry Agent Service and Google’s Gemini Enterprise Agent Platform take the opposite approach. They host your agent, built with almost any framework, and sell you the surrounding services: memory, identity, tool gateways, sandboxes and tracing.
They’re after your existing cloud estate. A bank that already treats its AWS or Azure accounts as part of its perimeter, with private links to its data centres already approved, can sometimes adopt these without a new third-party risk review. Two of them go further and put parts of the agent in your own account:
- AgentCore Runtime Instances (generally available since 6 August 2026) run on AWS-managed EC2 in your account, with session data on EBS volumes that stay there.
- Foundry’s Standard setup keeps threads, files and vector stores in Cosmos DB, Storage and Foundry IQ resources in your subscription. The agent compute itself is still Microsoft-managed.
In all, AgentCore has three deployment modes: the serverless Runtime on microVMs, Runtime Instances, and AgentCore Harness, which runs the agent loop for you. Foundry has two, prompt agents on the basic setup and hosted agents on the Standard setup. Google has one, Agent Runtime.
Model choice is broad on AWS and Microsoft. AgentCore runs “any model, including non-Bedrock ones”, and Foundry’s hosted agents can call third-party models at your own risk. Google sits in between. Its Agent Runtime runs your ADK or LangGraph code in Google’s cloud, like the other two, and its model story is Gemini plus a partner catalogue, Claude included. Its framework templates also show a deployed agent calling Anthropic’s API directly with your own key, kept in Secret Manager, so those model calls leave Google’s cloud. The docs stop there, though. They don’t promise any-provider support the way AWS and Microsoft do, and the OpenAI examples go through Google’s own OpenAI-compatible endpoint, not OpenAI.
Independent platforms: a framework vendor hosts your agent
The third group is easy to miss: Mastra, CrewAI, Vercel, LangSmith Agent Server and Cloudflare Agents. None is a frontier lab or a hyperscaler, but each will host an agent you build with its framework or runtime, and most also give you a way to run it yourself.
- LangSmith Agent Server (LangChain’s platform for LangGraph, renamed twice: from LangGraph Platform to LangSmith Deployment in October 2025, then to Agent Server in November 2026) has the widest spread. There’s a cloud service, a BYOC option where LangChain operates the data plane inside your cloud account, and a self-hosted server that can run air-gapped.
- Mastra has a hosted platform with an EU zone in Amsterdam, and a self-hosted server.
- CrewAI splits into AMP, its managed cloud, and Factory, which runs CrewAI’s platform on your own Kubernetes.
- Vercel hosts agents written with its AI SDK or its eve framework, which went generally available on 17 November 2026, on its Functions, Workflows and Sandbox services. You can also self-host an eve agent.
- Cloudflare Agents run each agent as a Durable Object on Cloudflare’s network, with state in that object’s SQLite storage.
Release labels are more vague here. Mastra’s platform, CrewAI’s AMP and Factory, and the Cloudflare Agents SDK are all launched, and Mastra and CrewAI sell theirs, but none of them uses the words “generally available” or “beta”. So I’ve marked them “Available”. The Cloudflare SDK is still on version 0.x.
Roll-your-own
The fourth option is to assemble it yourself: a framework (LangGraph, Pydantic AI, Mastra, the labs’ SDKs), a durability layer (Temporal, DBOS, Restate), a sandbox (E2B, Modal, or Docker and gVisor you run), tracing (OTel into Langfuse, Phoenix or Jaeger) and whatever models you like, including local ones. With local models and nothing calling out, it can run fully air-gapped. Of the packaged platforms, only LangSmith’s standalone Agent Server documents the same. You pay for that in engineering time, and its maturity is whatever your chosen parts’ maturity is.
Six parts of an agent
To compare these fairly I split every agent into six parts, which I’ll call planes:
| Plane | What it is |
|---|---|
| Harness | The control loop: calls the model, runs tools, manages context and subagents |
| Sessions | The conversation history and run state: the transcript |
| Memory | Anything that outlives a session: long-term memory, checkpoints, durable workflow state |
| Sandbox | Where code and tools execute: shells, files, browsers |
| Inference | Where the model runs |
| Telemetry | Traces, logs, metrics and eval results |
For each of the 29 deployment modes across the twelve platforms, I recorded who hosts each plane, on a scale from “far from you” to “close to you”: the vendor’s cloud, your cloud account but operated by the vendor, your cloud operated by you, or your own hardware.
A few patterns jump out:
- Hosted lab offerings keep everything. Claude’s hosted mode, OpenAI’s and Mistral’s managed mode put the harness, sessions, memory and sandbox in the vendor’s cloud.
- Bringing your own sandbox doesn’t change much. Claude with self-hosted sandboxes, and OpenAI with your own compute, run tools on your machines, but the loop and the transcript stay with the vendor. Every tool result still flows through their harness.
- Mistral’s self-hosted worker is the reverse. Your worker runs the loop and the tools, yet Mistral’s control plane still stores every session and step.
- “Your account” is rarer than it sounds. Only AgentCore Runtime Instances, Foundry’s Standard setup and LangSmith’s BYOC put the harness or the session store in your own cloud account while the vendor operates them.
On hyperscaler rows, the question marks mostly mean the docs don’t say whose account holds the data. AWS calls its microVMs “fully AWS managed” but doesn’t name the account that holds AgentCore Memory.
Where things live
From fully managed to air-gapped
Lining the same modes up from most vendor control to least gives a spectrum. I placed each mode by rule: who hosts the harness and the sessions decides where it lands, and a sandbox on your own infrastructure makes it a hybrid.
“VPC” means three different things
Every enterprise sales page says “runs in your VPC”. That phrase covers three setups, and each leaves your data in a different place.
- Network reach. The vendor’s compute runs in the vendor’s account and is wired into your network, so it can reach your private systems. Google’s Agent Runtime does this with a Private Service Connect interface, and AgentCore’s microVMs put network interfaces in your subnets. Your data still gets processed somewhere you don’t control.
- Data at rest in your account. The stores live in your resources, but the compute doesn’t. Foundry’s Standard setup is the clearest case.
- Compute in your account. The agent runs on your bill, inside your account boundary. AgentCore Runtime Instances are the example here.
OpenAI’s “your own compute” option is none of these for the agent itself: only the sandbox moves.
Reaching on-prem is the easy part
If your agent needs systems that aren’t on the internet, every platform has an answer. Which one decides where those systems’ data ends up.
The hard part is what happens to the data afterwards. Suppose your tool returns a full customer record to the agent. That record becomes part of the model’s context and part of the harness’s session log, so with a hosted harness it ends up in the vendor’s transcript store. A tool that returns only a count, a redacted field or a yes/no keeps the record itself out of both. Hosted Claude Managed Agents, for instance, keeps transcripts until you delete them.
Data residency and compliance
How far up the ladder each option goes
Residency works like a ladder. Each rung keeps more of the agent under your control, from a public API at the bottom to an air-gapped install at the top. I placed each platform at the highest rung one of its modes reaches. A question mark means the docs don’t fully confirm the placement. Mistral’s is one: its organisation data sits in the EEA by default, but the docs don’t say where agent sessions are stored, and its EU regional endpoint doesn’t offer Agents.
Some surprises:
- The OpenAI Agents API supports data residency only in the United States. It’s also not eligible for zero data retention, even with a self-hosted sandbox (OpenAI’s docs).
- Hosted Claude Managed Agents has no EU option. Inference can be pinned to the US or left global, and storage is US only. The self-hosted version follows wherever you run it.
- Cloudflare can hold Durable Objects to an EU jurisdiction, but not the model calls. Workers AI and AI Gateway aren’t compatible with its regional data controls.
- LangSmith’s EU cloud keeps agent data in the Netherlands, but not everything. Login data sits with Supabase on AWS, and billing data is US only.
- Self-hosted Claude can’t be air-gapped. Claude is always served by Anthropic or a cloud provider, so model calls always leave. With a Bedrock or Vertex provider, though, the server never contacts Anthropic at all.
Follow one database row
The clearest way I found to see the difference is to follow one record from an internal database through each stage of the agent, assuming the tool returns the whole record.
Self-hosting the harness keeps the transcript in your account. If the agent sends the row to a managed model endpoint, the provider still receives it, even when that endpoint sits in the region you chose. Only a model you run yourself keeps the row entirely on your side. “Nothing persists outside” needs both a self-hosted harness and a zero-retention agreement, and even that has gaps. Anthropic’s newest models, the Fable and Mythos 5.x families, default to 30 days of retention on every platform that offers them. Anthropic’s support page says eligible enterprise customers can get limited-time zero retention on Fable 5, 5.1 and 5.2 while its Enterprise Frontier Safeguards programme rolls out, and Mythos gets no such exception. On Bedrock, whether AWS keeps your prompts depends on the retention mode you set for the region. The default allows retention for abuse prevention.
Prune by requirement
I put four common requirements in a row. Must session data stay on your side? Do you need a HIPAA BAA? Must processing and storage stay in the EU? Must it run fully air-gapped? I only rule a mode out when the vendor’s docs say it can’t comply. Where the docs are silent, the mode is “not ruled out” and carries a question mark. A risk team would usually treat those the other way, as out until documented.
The verified count drops fast. After the session-data and HIPAA gates, 16 modes are not ruled out, but only AgentCore Runtime Instances passes both on documented evidence. Claude Managed Agents fails the HIPAA gate in every mode, self-hosted included. Answer yes to all four questions and nothing passes on verified evidence alone. A fully air-gapped, roll-your-own stack with local models comes closest. It clears the other three gates, but whether it meets HIPAA depends on the components you choose and who runs them. Five self-hosted modes are not ruled out, with question marks, because their docs don’t settle every gate: Mastra, CrewAI Factory, eve, LangSmith and Mistral’s on-prem Studio. The EU gate removes nothing on its own. Every mode whose docs rule out EU-only processing has already failed the first gate. The first gate covers session data only. It doesn’t cover what happens to model calls, which is where the database row above leaks.
What the regulators care about
The last piece is regulation. I looked at three regimes each for finance and health and mapped which planes each one reaches. The provisions are cited; the mapping to planes is my reading, not legal advice.
The common thread is that the firm stays accountable whoever runs the plane. DORA requires contracts to name where services run and data is stored. The FCA wants every resource behind an important service mapped. HIPAA makes any vendor that stores protected health information for a covered entity, or for another business associate, a business associate itself.
What you get built in
Features do matter, once the hosting question has narrowed the list.
Most platforms build in most things now, with a few specific gaps:
- OpenAI’s Evals product shut down on 30 November 2026. OpenAI’s own migration guide points users to Promptfoo, which OpenAI agreed to acquire in March 2026. Promptfoo stays open source.
- CrewAI removed its built-in code interpreter. The docs point to E2B or Modal instead.
- Cloudflare deprecated AI Gateway’s evaluations. No Agents evals feature has replaced them.
- Mistral’s agent traces go to Mistral Studio, with no documented export. Only its workflow workers can send traces to your own collector.
What it binds you to
What travels with you, and what stays behind
Leaving a platform is where the hosting choice can come back to bite.
The portable layers are the open standards. MCP is nearly universal. The Agent Skills format (a SKILL.md folder)
is now supported by OpenAI, AWS, Microsoft and Mastra as well as Anthropic, which released it. The sticky layers are
the stores. No platform documents a managed export format for session history. You list it through an API and
rebuild it yourself. Credentials are the stickiest of all. Secrets in Anthropic’s and OpenAI’s vaults are write-only,
and in Foundry, role assignments don’t carry over when an agent’s identity changes.
Two years of churn
In the past two years OpenAI sunset the Assistants API, then shut down Agent Builder and Evals on the same day I checked. Microsoft retires Foundry’s workflow agents on 1 December 2026. LangChain renamed its platform twice in thirteen months. Vertex AI became the Gemini Enterprise Agent Platform. Mastra replaced Mastra Cloud with a new platform without ever declaring the old one generally available. Plan for the thing you pick to change name, shape or pricing within a year.
Adoption, and why each number misleads
Downloads count installs, including CI runs and dependencies, not users. Stars accumulate and never decay. Even so, one pattern is clear in this snapshot. LangChain and LangGraph lead by a wide margin, with about 214 million PyPI downloads a month between them. The vendor SDKs together get around 110 million, well ahead of every other independent framework: CrewAI, LlamaIndex, AG2 and Pydantic AI total about 11 million.
Open code isn’t the same as running it yourself
Open source and self-hosted get used interchangeably, and they aren’t the same thing. OpenAI’s harness is Apache-2.0 but only OpenAI runs it for the Agents API. Self-hosted Claude Managed Agents runs on your hardware, but under a binary-only licence that bars modification. LangSmith’s Agent Server is source-available under the Elastic License, not open source. If what you need is the right to keep running something after the vendor changes its terms, check the licence of what you install, not the licence of the framework underneath.
How I’d choose
If I were picking for a regulated team, I’d ask these questions in this order:
- Where must the session data live? This rules out more options than anything else.
- Does your data reach the model, and on what retention terms? Self-hosting the harness doesn’t answer this.
- Which “VPC” does the vendor mean? Network reach, data at rest or compute in your account.
- What would leaving cost? Look hardest at session history and credentials.
- Only then, features. Most platforms have most of them.
Some things are still unresolved, and I’ve marked them as such rather than guess:
- HIPAA eligibility for OpenAI, Mistral and Foundry.
- Whose account holds AgentCore Memory, Google’s Sessions and Memory Bank, and Mastra’s hosted databases.
- Whether Mistral’s on-prem Studio keeps sessions in-house.
- Whether Vercel’s and LangSmith’s BAAs cover their AI services.
I’ll update the matrix as vendors fill these in. Every fact in it links to its source.
