Daniel Reyes, YuSMP Group
Daniel Reyes Principal Engineer (AI/ML), YuSMP Group · Ships production LLM and agent systems for US and EU teams
Isometric illustration of a glowing central orchestration hub linked by cyan light lines to translucent sandbox cubes and floating dashboard panels on a dark navy background

The short version

On September 10, 2026, OpenAI released its Agents API in public beta, putting the same managed “Codex harness” it runs internally behind one public API call. The service handles orchestration, durable long-running sessions, context compaction, tool search and parallel subagents, and pairs with OpenAI-hosted sandboxes for code execution and file operations. Pricing adds no platform fee — you pay for tokens, tools and container time. For anyone doing AI agents development, the plumbing you used to build and babysit is now a managed backend. The catch during beta: data stays US-only and Zero Data Retention is unsupported.

What OpenAI shipped

OpenAI framed the launch as “the shortest route from idea to working agent.” The Agents API exposes the internal Codex harness — the runtime OpenAI built to operate its own coding agent at scale — as a public beta available to every developer. Instead of writing your own loop to plan, call tools, keep session state and recover from failures, you describe an agent and let OpenAI run it. The company reports early users seeing large operational gains, and independent coverage summarized figures such as roughly 4x lower latency, 60% lower cost per task and 86% fewer failed responses versus hand-built orchestration; treat those as vendor-supplied benchmarks until you measure your own.

The API is organized around four objects. An Agent bundles the model, its instructions, the tools it can call and any Model Context Protocol servers it connects to. An optional Environment is a sandbox where the agent can run commands, read and write files and produce artifacts. A Session is a durable, resumable instance that survives long-running work — you can pause it, fork it and stream its progress. Finally, events and items are the inputs going in and the outputs coming back. Built-in capabilities include automatic context compaction, tool search, programmatic tool calling and parallel subagents.

On cost, there is no additional platform charge: you pay for model tokens, any paid tools, and container time when you use OpenAI-hosted sandboxes at standard rates. OpenAI added a practical warning for newcomers — estimate container costs before spinning up sandboxes, because long-lived agent sessions can quietly accumulate compute. Developers who prefer their own infrastructure can bring an external sandbox, with first-class integrations from Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop and Vercel.

Why the Codex harness matters

The hard part of production agents was never the model call — it was everything around it. A useful agent has to plan a multi-step task, invoke tools in the right order, hold context across many turns without blowing the window, retry cleanly when a step fails, and stay alive for minutes or hours. Most teams rebuilt that scaffolding themselves, and most versions were brittle. By exposing a harness that already solves orchestration, session durability and context management, OpenAI is commoditizing the layer that consumed the majority of engineering effort in agent projects.

That is a meaningful shift for delivery speed. A prototype that previously took a sprint of orchestration plumbing can now be a handful of API calls, which is exactly the kind of acceleration that makes internal tools and proofs of concept cheap to try. The trade is architectural: your agent's control loop, its session state and (if you use hosted sandboxes) its execution environment now live inside OpenAI's runtime. That is fine for many use cases and a poor fit for others — the judgment call is where this article’s value sits.

Agents API vs SDK vs Responses API

OpenAI now offers three tiers of agent tooling, and picking the wrong one is a costly mistake to unwind. The Agents API is the managed harness: lowest integration effort, saved session state, orchestration handled for you, and the deepest coupling to OpenAI's runtime. The open-source Agents SDK runs inside your own application — more control and portability, but you own the orchestration and its maintenance. The Responses API is the lowest-level option, leaving planning and tool sequencing entirely in your code.

A simple rule of thumb: reach for the managed Agents API when speed to a working agent matters more than control — internal tooling, rapid prototypes, well-bounded tasks. Choose the SDK when you need portability across providers, custom orchestration logic, or the option to self-host the control loop later. And keep in mind that the managed convenience is heaviest precisely where switching costs bite: the more of your agent's brain lives in OpenAI's harness, the harder a future migration becomes.

What it means for US & EU software teams

For US teams, the Agents API is a clear productivity lever. If you are building agentic features — a support triage agent, a data-cleanup worker, a coding assistant — you can now stand up a durable, tool-using agent without writing an orchestration engine first. The pragmatic play is to prototype fast on the managed harness, prove the workflow delivers value, and only then decide whether the production version stays managed or moves to the SDK for control and cost predictability.

For EU teams, read the beta limits carefully before you build. During the public beta, data stays US-only and Zero Data Retention is not supported. For anything touching personal data under GDPR, or workloads with data-residency commitments, that combination is disqualifying until it changes — a US-only processing boundary with no ZDR is not a detail you can paper over in a data processing agreement. Use the beta for non-personal, non-regulated prototypes, and gate any production rollout on residency and retention controls landing first.

The strategic caution applies everywhere: a managed agent runtime is a strong dependency. Design so the agent's logic — its prompts, tool definitions and task flow — is expressed in a way you could re-host on the SDK or another runtime if pricing, limits or availability change. The teams that win with this API will treat it as a fast on-ramp with a known exit, not a one-way door.

How to evaluate the Agents API safely

  1. Start with a bounded prototype. Pick one well-defined task and build it on the managed harness to feel the real ergonomics before committing.
  2. Check data residency first. If EU personal data is involved, the US-only + no-ZDR beta limits likely rule out production use for now — confirm before you design.
  3. Meter container time. Long-running sessions on hosted sandboxes accrue compute; set budgets and estimate costs before spinning up environments.
  4. Keep agent logic portable. Express prompts, tools and task flow so they could be re-hosted on the open-source SDK or another runtime later.
  5. Decide managed vs SDK per workload. Speed-first internal tools favor the API; control- or portability-first products may favor the SDK.
  6. Benchmark on your own tasks. Validate latency, cost per task and failure rates on your real workloads rather than trusting headline numbers.
  7. Plan the exit before the entrance. Know how you would migrate off the harness before you wire it into anything customer-facing.

Frequently asked questions

What did OpenAI launch on September 10, 2026?

OpenAI put its Agents API into public beta for all developers, along with OpenAI-hosted sandboxes. The API exposes the same managed Codex harness OpenAI uses internally, handling orchestration, long-running sessions and context compaction so developers can build cloud agents behind a single API call.

How much does the Agents API cost?

There is no additional API fee. You pay for the model tokens your agent consumes, any paid tools it calls, and container time on OpenAI-hosted sandboxes at standard rates. OpenAI warns first-time users of hosted sandboxes to estimate container costs before spinning up new environments.

How is the Agents API different from the Agents SDK and Responses API?

The Agents API is a managed harness: OpenAI runs orchestration and session state for you. The open-source Agents SDK runs inside your own application and gives you more control but more maintenance, while the Responses API leaves orchestration entirely to you. The Agents API trades some control for the lowest integration effort and durable, resumable sessions.

Can I run agents on my own infrastructure?

Yes. You can use OpenAI-hosted sandboxes or bring your own. Nine partners offer first-class sandbox integration at launch: Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop and Vercel. Note that during the beta data stays US-only and Zero Data Retention is not supported, which matters for EU data-residency requirements.

Sources

OpenAI Developer Community — Introducing the Agents API and hosted sandboxes (September 10, 2026)
MarkTechPost — OpenAI Launches the Agents API in Public Beta, Putting the Codex Harness Behind One API Call (September 10, 2026)