Introducing the Agents API
OpenAI has introduced the Agents API, designed to facilitate the creation of long-running agents. This API provides a powerful harness for managing context, efficiently using tools, and coordinating subagents. It also offers infrastructure for reliable operation over days, enabling agents to work with files, run code, and save intermediate results. Key features include Tool search for reduced token usage and programmatic tool calling for parallel operations and data processing. The Agents API supports MCP, custom functions, and built-in tools like web search, and is currently in public beta.
Why this oneUnlike previous agent development approaches, this API specifically addresses the challenges of long-running agents by providing infrastructure for reliable, multi-day operations and efficient tool use.
Time & source
Times shown in UTC
Display time zone: UTC
Local time zone unavailable; showing UTC.
PublishedOffset at this time: UTC+0Sep 10, 2026, 00:00 UTC
IngestedOffset at this time: UTC+0Sep 12, 2026, 16:01 UTC
- Published
- Sep 10, 2026, 00:00
- Ingested
- Sep 12, 2026, 16:01
- Source type
- Official
- Tier
- First-party
- Source status
- Healthy
Tier is a per-source editorial setting, not a per-item score.
Discussion trend
The percentage is based on collected discussion signal, not new comments or independent people. The curve only compares the same topic across time.
As we’ve scaled Codex and ChatGPT for Work to millions of people around the world, we’ve learned what it takes to make long-running agents work well in practice. Useful agents need a powerful harness that manages context, uses tools efficiently, and coordinates subagents. They also need infrastructure that keeps them running reliably for days, with environments where they can work with files, run code, and save intermediate results.
Today, we’re introducing the Agents API (opens in a new window) in public beta, bringing that same harness and infrastructure that powers Codex to developers through a simple, flexible API.
What our customers are saying about Agents API
1 of 8
Build cloud agents with a single API call
With the Agents API, you can create a production-ready agent in a single API call by specifying the task, model, tools, and environment:
OpenAI hosts and maintains the harness. You choose the agent’s compute environment: in an OpenAI-managed sandbox, on your own infrastructure, or with one of our sandbox partners. The Agents API gives you a strong foundation for building agents on top of our optimized agent harness and infrastructure, so you can focus on the tools, knowledge, and workflows that make your agent unique.
Agents API powers your agents with the same harness and infrastructure behind Codex.
Choose your agent environment
Different workloads need different compute, storage, and deployment options. The Agents API lets you choose a sandbox that fits your application.
We’re partnering with ecosystem providers (opens in a new window) , including Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, and Vercel, to provide first-class integrations for a range of needs:
- Fully managed environments or deployments within your VPC
- Specific file and secret storage mechanisms
- Different CPU, GPU, and memory configurations, with performance, cold-start, and cost profiles to match your company’s workflow.
The Agents API offers first-class integrations with popular ecosystem providers.
OpenAI hosted sandboxes
For developers who want to get started quickly and scale efficiently, we’re also introducing the OpenAI hosted sandbox (opens in a new window) . This leverages the same sandboxing infrastructure that powers Codex and ChatGPT.
OpenAI provisions and manages the sandbox, giving your agent a secure and performant environment to run code, work with files, and produce artifacts. These sandboxes can be flexibly configured with your files, packages, skills and plugins to give the agent what it needs to complete the task.
Build with an evolving Codex harness
Taking advantage of new model capabilities often means reworking your harness, taking valuable time away from improving your application. The Agents API provides versioned access to these capabilities with each model launch. We maintain and continuously improve the harness alongside our models, helping your agents get better performance from every upgrade. For example, recent improvements to the harness include:
Keep agents working across long sessions
To support models working for hours, we’ve built context management that helps agents carry relevant information across longer sessions. The Agents API automatically compacts (opens in a new window) earlier context as a session approaches its context limit, preserving information the agent needs to continue. Developers can build workflows that span multiple context windows without implementing their own compaction logic.
Help agents efficiently use more tools
The Agents API helps agents find the right tools and use them efficiently. Tool search (opens in a new window) loads relevant tool definitions as needed, helping reduce token usage and cost while preserving the model’s cache. Once tools are available, programmatic tool calling (opens in a new window) lets agents run calls in parallel, chain related operations, and filter or combine results in code so they can work through large volumes of data while bringing only the relevant results back into context. The Agents API supports MCP, custom functions, and built-in tools like web search.