Agents API

API service

Managed API that gives an application the Codex harness: OpenAI runs sessions, orchestration, context compaction and recovery while the application supplies tools and picks a sandbox where agents execute code, edit files, connect to MCP servers and produce artifacts.

Find alternatives to Agents API

TypeAPI service
RoleBundled component
AvailabilitySold
DeploymentSaaS
Intended forDeveloper
SecurityNot recorded
StatusActive
Sold withinOpenAI API — Included with the parent
PricingUsage-based — official pricing ↗

What it does

developers.openai.com

Sources

Pricing

Official documentation · 18 Oct 2026

"Model usage is billed at the selected model's API rates. OpenAI tools use their standard rates, and OpenAI-hosted sandboxes use standard container rates."

Description

Official documentation · 18 Oct 2026

"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."

What it does

Official documentation · 18 Oct 2026

"Agents can operate in a sandbox where they can execute code, edit files, connect to MCP servers, and produce artifacts."

Sold within

Official documentation · 18 Oct 2026

Part of the OpenAI API: "Model usage is billed at the selected model's API rates."

Name

Official documentation · 18 Oct 2026

Page title "Agents API".

URL

Official documentation · 18 Oct 2026

OpenAI's own developer documentation.

Deployment

Official documentation · 18 Oct 2026

"OpenAI manages sessions, orchestration"; OpenAI-hosted sandboxes (self-hosted sandboxes are also documented).

Interfaces

Official documentation · 18 Oct 2026

"See the API reference for endpoints, request parameters, and response fields."

Intended for

Official documentation · 18 Oct 2026

Written for developers building agent applications.

Also from OpenAI

Open OpenAI in the directory

Something wrong here? Send a correction — quote this product id: openai-agents-api.