Announcements

OpenAI Introduces Agents API Powered by Codex Harness

OpenAI has announced the launch of the Agents API, enabling developers to build cloud-based agents connected to sandbox environments and custom tools.

A
AIDeveloper44 Team
September 11, 2026·4 min read
OpenAI Introduces Agents API Powered by Codex Harness

OpenAI's Agents API provides a managed cloud environment for running autonomous agents using the Codex harness.

TL;DR
  • OpenAI has introduced the Agents API to streamline the creation and execution of autonomous agents in the cloud.
  • The API runs on the Codex harness, designed to handle execution environments, tooling, and sandbox connections.
  • Developers can bring custom connectors, external tools, and secure runtime sandboxes into the new infrastructure.

Overview of the Agents API

OpenAI has expanded its developer platform by introducing the Agents API, a cloud-based service designed to simplify the development, orchestration, and scaling of autonomous AI agents. The announcement, highlighted in a statement shared by engineer Steve Coffey, emphasizes a managed architecture supported by the Codex harness.

As artificial intelligence systems transition from conversational interfaces to proactive software assistants, developers face challenges around execution environments, long-running state management, and reliable tool calling. The Agents API addresses these engineering hurdles by offering managed infrastructure where autonomous agents can execute complex multi-step tasks in isolated cloud environments.

Under the Hood: The Codex Harness

A core element of the new API is its reliance on the Codex harness. Codex, which historically powered OpenAI’s early code generation tools and assisted coding paradigms, provides the underlying structure required to parse code, manage operational contexts, and interface with external environments.

By leveraging the Codex harness, the Agents API allows agents to interact directly with computing environments. Rather than relying solely on string-based prompts and static API calls, the harness provides:

  • Structured execution tracking across long horizons and multiple iterative steps.
  • Direct support for code execution, file system access, and automated debugging within managed parameters.
  • A standardized bridge between language model inference and external programmatic interfaces.

Custom Connectors and Sandbox Integration

A central design goal of the Agents API is interoperability. Developers frequently require agents to interact with proprietary databases, internal software suites, and specific continuous integration pipelines. According to Coffey's launch note, the Agents API allows teams to bring their own tools and connectors directly into the platform.

Security and environmental isolation remain essential when executing AI-generated commands. The Agents API accommodates this by supporting connections to independent sandbox environments. Developers can isolate execution workloads within virtual machines, ephemeral containers, or secure local testbeds while maintaining programmatic control over agent behavior.

Tool Integration Capabilities

Through flexible schema definitions, the API supports various integration paradigms:

  • Custom Tools: Developers can define functions and endpoints that agents invoke conditionally based on incoming input.
  • Third-Party Connectors: Direct integration with cloud storage, source control systems, and monitoring platforms.
  • Runtime Sandboxes: Execution spaces where untrusted or newly written code can run without risking production infrastructure.

Shifting from Assistant Prompts to Cloud Agents

Earlier iterations of AI agent tooling often required developers to stitch together separate systems for memory, vector search, tool definitions, and hosting logic. Frameworks frequently struggled with reliability when models ran extensive loops or encountered unexpected execution errors in local developer machines.

By managing these runtimes centrally via the Agents API, OpenAI aims to lower the barrier for deploying reliable production-grade agents. The inclusion of components such as "Astra" in developer workflows indicates an ongoing focus on automated planning and background execution, freeing engineers from building bespoke orchestration loops from scratch.

Availability and Next Steps

The rollout of the Agents API represents a broader industry trend toward cloud-hosted autonomous execution engines. Organizations looking to automate repetitive software engineering workflows, data analysis routines, or complex IT operations can utilize the API to prototype and deploy targeted assistants in controlled runtime environments.

Detailed technical documentation, authentication guidelines, and pricing structures for tool execution and compute time are accessible via OpenAI's official developer documentation and platform portal.

Diagram: Architecture of OpenAI Agents API powered by the Codex Harness runtime, connecting cloud agents to sandboxes and custom tools.

Enjoyed this?

Get more posts like this delivered to your inbox.