Build Agents That Run for Hours With OpenAI’s New API
Terminator OpenAI By What The Future Newsroom · September 11, 2026 · 2 min read

Build Agents That Run for Hours With OpenAI’s New API

OpenAI has released its Agents API as a public beta, giving developers infrastructure for cloud-based agents that can run for hours, execute code and process files. It includes context management, parallel tool use and sub-agent delegation, with sandbox choices and token-based billing.

OpenAI’s Agents API is now available as a public beta. It gives developers a way to build cloud-based agents that can run for hours, execute code and process files, using the same infrastructure that powers Codex and ChatGPT.

“Long-running agents with code execution and delegated tool use modestly increase AI autonomy, though this is a routine infrastructure launch.”Why it scores Terminator

Infrastructure for longer-running agents

The API is designed for agents that do more than handle a single exchange. An agent can run for hours, execute code and work with files. That combination gives developers infrastructure for tasks that involve multiple steps and tools.

OpenAI says the API includes automatic context management. In practical terms, this feature is meant to help manage the information an agent uses as it works. Developers can also use parallel tools, allowing an agent to work with multiple tools at once, and delegate tasks to sub-agents.

These capabilities describe how the API supports agent workflows. The source does not specify which tasks developers will build, or how they will configure individual agents. Those choices remain with developers using the API.

Choice of sandbox and tools

Developers can choose OpenAI-hosted sandboxes or work with infrastructure partners Cloudflare, Vercel and Oracle. The sandbox is part of the environment in which an agent can execute code. Having these options gives developers a choice about where that work runs.

The API also supports MCP and custom functions, alongside built-in tools such as web search. This means developers can connect agents to different kinds of tools: ones supplied with the API, ones they define themselves, and those supported through MCP.

That mix matters because the API is intended to provide infrastructure for agents that take actions, not just generate text. Code execution, file processing and tool access are among its stated capabilities. The specific tools available to an agent depend on the setup developers choose.

Built on the Codex harness

The Agents API builds on the open-source Codex harness. OpenAI says the API uses the same infrastructure that powers Codex and ChatGPT, connecting the developer offering to systems behind those products.

For developers, the public beta is a way to build with this agent infrastructure. The source identifies features and integrations, but does not describe beta availability limits or give a launch date. Those details should not be inferred from the announcement as reported here.

Billing is based on token usage

OpenAI says there are no extra fees for the API; billing is based solely on token usage. That makes token use the stated basis for charges, including when developers choose among the listed sandbox options.

The announcement presents the Agents API as a combination of long-running execution, context management, tool use and delegation. Developers can choose a sandbox, connect supported tools and build agents on infrastructure shared with Codex and ChatGPT. As a public beta, it gives developers access to these capabilities while leaving implementation choices to them.

← Back to the wire

Read next