
developers.openai.com
September 10, 2026
6 min read
49/100
Summary
Build durable cloud agents with a managed Codex harness. The Agents API gives your application access to the Codex harness through an OpenAI-managed API. OpenAI manages sessions, orchestration, context compaction, and recovery while your application provides tools and chooses its execution environment. Agents can operate in a sandbox where they can execute code, edit files, connect to MCP servers,...