Build and run cloud agents with the Codex harness, fully managed by OpenAI.
As we’ve scaled Codex and ChatGPT for Work to millions of people around the world, we’ve learned what it takes to make long-running agents work well in practice. Useful agents need a powerful harness that manages context, uses tools efficiently, and coordinates subagents. They also need infrastructure that keeps them running reliably for days, with environments where they can work with files, run code, and save intermediate results.
Today, we’re introducing the Agents API(opens in a new window) in public beta, bringing that same harness and infrastructure that powers Codex to developers through a simple, flexible API.
With the Agents API, you can create a production-ready agent in a single API call by specifying the task, model, tools, and environment:
OpenAI hosts and maintains the harness. You choose the agent’s compute environment: in an OpenAI-managed sandbox, on your own infrastructure, or with one of our sandbox partners. The Agents API gives you a strong foundation for building agents on top of our optimized agent harness and infrastructure, so you can focus on the tools, knowledge, and workflows that make your agent unique.
Agents API powers your agents with the same harness and infrastructure behind Codex.
Different workloads need different compute, storage, and deployment options. The Agents API lets you choose a sandbox that fits your application.
We’re partnering with ecosystem providers (opens in a new window) , including Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, and Vercel, to provide first-class integrations for a range of needs:
Source link







