OpenAI Launches the Agents API in Public Beta, Putting the Codex Harness Behind One API Call

OpenAI has released the Agents API in public beta. It gives developers the same harness and infrastructure that run Codex. OpenAI hosts and maintains the harness. Developers run the agent’s compute in an OpenAI-managed sandbox, their own infrastructure, or a partner sandbox.

Is it deployable? Yes. It is live for all developers in public beta. Data stays US-only, and Zero Data Retention is unsupported.

What OpenAI Shipped

The Agents API is a managed service built on the open-source Codex harness. OpenAI team states scaling Codex and ChatGPT for Work showed what long-running agents need. They need a harness that manages context, uses tools efficiently, and coordinates subagents. They also need infrastructure that keeps them running reliably for days.

The official docs organize the API around 4 concepts:

A session runs in 4 steps. You create it and give it a task. Then you follow progress through streaming or webhooks. Finally, you continue with a new task or steer the current turn.

One API Call

OpenAI’s announcement shows an incident-investigation agent created in a single call:

import OpenAI from "openai";

const client = new OpenAI();

const session = await client.beta.agents.sessions.create({
  agent: {
    model: "gpt-6-astra",
    tools: [
      {
        type: "mcp",
        server_label: "observability",
        transport: {
          type: "http",
          server_url: "https://observability.example.com/mcp",
        },
      },
    ],
    multi_agent: { enabled: true, max_concurrent_subagents: 3 },
  },
  vault_ids: ["vault_YOUR_VAULT_ID"],
  environment: {
    type: "openai_hosted",
    capability_directories: ["/workspace/capabilities/skills"],
  },
  input:
    "Investigate service-api's elevated 5xx rate over the last 30 minutes. " +
    "Delegate deployment, error, and dependency analysis to subagents. " +
    "Save findings, evidence, and recommended mitigation in /workspace/outputs.",
});

The quickstart covers API key permissions and SDK setup.

Where the Agent Runs

Environment choice is the main architectural decision. The Agents API supports 3 sandbox options, and it can also run without a sandbox.

What the Harness Handles

OpenAI maintains the harness alongside its models, with versioned access at each model launch.

Agents API vs Agents SDK vs Responses API

OpenAI’s runtime comparison positions the 3 options this way:

Agents API Agents SDK Responses API
Where the agent runs OpenAI runs a managed Codex harness Inside your application Your application, with optional hosted orchestration
Integration effort Low Medium High
State between tasks Saved session configuration, turns, and items Your storage and SDK sessions Manual history, response chaining, or Conversations
Execution environment OpenAI-hosted, self-hosted, or no sandbox Your runtime and sandbox providers Your own environment

Early Customer Results

OpenAI published these customer-reported numbers. They are vendor-supplied, not independent benchmarks.

Key Takeaways


Check out the Technical details. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

The post OpenAI Launches the Agents API in Public Beta, Putting the Codex Harness Behind One API Call appeared first on MarkTechPost.

Exit mobile version