OpenAIapi
September 10, 2026·Source

Agents API (Public Beta)

An OpenAI API for building cloud agents on the same harness that runs Codex, with OpenAI running the agent loop for you. For developers with API access.

  • OpenAI runs the agent loop on its infrastructure: model calls, tool use, subagent coordination, context compaction, and recovery after failures
  • You decide what the agent can do and where it runs code and works with files, either in an OpenAI-hosted sandbox or your own environment
  • Agents can run code, edit files, connect to MCP servers, search the web, hand work to subagents, and resume earlier sessions
  • No separate fee: usage is billed at standard model, tool, and hosted sandbox rates
  • Public beta. US data residency only, and not available under zero-data-retention agreements

Best for

Agents that work for hours or days on files and code without you building the orchestration

When to use it

Your team has an agent idea, but the plumbing (sessions, context limits, recovering from failures) is what's holding it back.

Who benefits

Developers and product teams building agents into their own apps on the OpenAI API

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →