Agents API
The Agents API is an OpenAI managed cloud service that allows developers to build and execute long-running AI agents using the Codex harness. It provides context management with automated compaction, multi-agent coordination with subagent support, programmatic tool calling, and flexible deployment options across OpenAI-hosted sandboxes or third-party infrastructure.
on the blogOpenAI Introduces Agents API Powered by Codex Harness 4 min
The Agents API is an OpenAI managed cloud service that allows developers to build and execute long-running AI agents using the Codex harness. It provides context management with automated compaction, multi-agent coordination with subagent support, programmatic tool calling, and flexible deployment options across OpenAI-hosted sandboxes or third-party infrastructure.
- 01Automates execution, state tracking, and error handling for agent workflows
- 02Condenses long conversation histories automatically to prevent reaching token limits
- 03Delegates tasks to parallel subagents with isolated context windows to speed up processing
- 04Runs tools in parallel and filters data programmatically to minimize context overhead
- 05Executes code securely within OpenAI-hosted sandboxes or partner compute environments

Master AI Marketing: Work Smarter, Not Harder
Unlock the power of AI to automate workflows and scale your results. Join 1.5M+ professionals and stay ahead of the curve with the latest AI insights.

Master AI Marketing: Work Smarter, Not Harder
Unlock the power of AI to automate workflows and scale your results. Join 1.5M+ professionals and stay ahead of the curve with the latest AI insights.