Back to Articles

OpenAI Releases Agents API for Autonomous Agents

September 11, 2026549

The Codex infrastructure opens up: OpenAI releases the Agents API for cloud work

Autonomous agents without the infrastructure headaches: OpenAI puts the proven Codex Harness directly into the hands of developers in public beta

If you have tried to build an AI Agent over the past year, you are surely familiar with the frustration: the model itself might be smart, but maintaining a complex process that runs for hours without losing context, managing dozens of tool calls, synchronizing between sub-agents, and building recovery mechanisms for errors—that is a full-scale engineering project in itself. In most cases, developers found themselves writing thousands of lines of orchestration infrastructure instead of focusing on business logic.

Now, OpenAI is introducing a significant shift in direction: the company is unveiling the Agents API, allowing developers to run agents on top of the Codex harness infrastructure—the same internal wrapper that powers OpenAI's development and Codex products.

What is the Agents API, actually?

Until today, developers faced two main choices: work directly with the model APIs and write independent runtime loops, or use local frameworks like the OpenAI Agents SDK. The Agents API takes this a step further and offers a managed runtime environment (Managed Harness).

The idea is simple: you define your tools, instructions, and data, and OpenAI takes care of all the orchestration behind the scenes in their cloud, on your existing infrastructure, or with third-party providers. The system manages the runtime state, the autonomous loop, and all the communication between them.

Core capabilities that come straight out of the box

The shift to a managed Codex infrastructure brings with it several features that developers previously had to build on their own:

  • •Automatic context management (Context Compaction): One of the biggest problems with agents that work over time is the accumulation of token history that leads to exceeding context window limits. The Agents API includes smart, automatic conversation compression as you approach the limit, so the agent retains critical information and continues to work seamlessly without crashing.
  • •Multi-Agent Orchestration: The system supports dividing complex tasks into several sub-agents operating in parallel. Each sub-agent maintains an independent and focused context, while the primary agent coordinates the results and manages the work—a perfect solution for searching, data analysis, and rapid code generation.
  • •Programmatic tool execution and MCP support: Agents can not only call individual functions but can run a chain of tool calls in code, filter information before it enters the central context, and connect to Model Context Protocol (MCP) servers in a standardized way.
  • •Tool Search: Instead of loading hundreds of tool definitions for every model call and wasting tokens and time, the agent is capable of locating and loading tool definitions only as needed.

Availability and pricing model: Zero infrastructure cost

The Agents API is now available in public beta for all developers via the OpenAI API Platform.

A critical point for developers and startups: There is no extra charge for the API itself. The model is based on standard consumption—you pay only for the tokens the agent consumes (input, output, and Prompt Caching) and for the external tools and resources used. Additionally, the Codex harness infrastructure is available as open source, so you can see exactly how the coordination is performed and avoid the "black box" feeling.

Bottom line, what does this mean for us?

This announcement marks the next phase in the evolution of AI tools: from simple prompt responses to entire autonomous work platforms. For developers and entrepreneurs, the implication is a drastic reduction in Time to Market.

Instead of spending weeks on loop optimization and state management, you can connect existing tools and APIs to a stable infrastructure that has already been tested at massive scales, and launch advanced AI agents within a few hours.

📢 Updates on Telegram | 🟢 Follow on WhatsApp | 📸 Instagram

Thanks to Spotlight by Daniel Trabelsi by Daniel Trabelsi for sharing and inspiring this article.

Join the channel
#OpenAI#Agents API#Artificial Intelligence#autonomous agents#software development#cloud infrastructure#Codex