Agents API is an Automation tool. Managed API for building cloud agents with orchestration, long-running sessions, and tool use. Key features include Codex Harness Management, Automatic Context Compaction, and Multi-Agent Orchestration. Best for software developers and engineers, data scientists and analysts and business consultants.
About Agents API
Agents API is a managed service from OpenAI that runs the Codex harness to build production-ready cloud agents. It handles sessions, orchestration, context compaction, and recovery while developers focus on tools and workflows.
Key Features
Codex Harness Management.
Automatic Context Compaction.
Multi-Agent Orchestration.
Programmatic Tool Calling.
Long-Running Sessions.
Flexible Deployment Options.
Frequently Asked Questions
The Agents API is a managed service from OpenAI that gives developers access to the Codex harness through a simple API. It handles sessions, orchestration, context compaction, and recovery while you provide tools and choose your execution environment. You can create production-ready agents in a single API call.
The Agents API itself has no extra fee. You pay only for model API calls at standard token rates, plus OpenAI tools at their standard rates and OpenAI-hosted sandboxes at standard container rates. Model usage is billed at the selected model's API rates.
The Agents API is built for software developers and engineers who want to build long-running, multi-functional agents without managing the underlying infrastructure. It's ideal for teams building incident response agents, Slack bots, data analysts, or any workflow that needs durable sessions and tool orchestration.
Agents built with the Agents API can execute code, edit files, connect to MCP servers, produce artifacts, and coordinate subagents. They can handle complex tasks like investigating alerts, answering warehouse questions with SQL, or comparing release notes across multiple sources.







