# OpenAI's Agents API rents out the Codex harness

- URL: https://blog.orchardai.ai/openai-agents-api-codex-harness/
- Published: 2026-09-11
- Reacting to: OpenAI, "Introducing the Agents API" (2026-09-10)
- Original: https://openai.com/index/introducing-the-agents-api/

TL;DR: OpenAI launched the Agents API in public beta, exposing the Codex harness as a managed service with sandboxes, subagents and automatic compaction, and no extra fee beyond tokens and tools. Our take is that the harness, not the model, is now the product.

## What OpenAI announced

- **The Codex harness as an API.** The Agents API runs on the same harness and infrastructure as Codex, hosted and maintained by OpenAI. One call creates a session with a model, tools, secrets vault, environment and input. The harness is based on the open-source Codex codebase.
- **Environments.** OpenAI-hosted sandboxes using the same infrastructure as Codex and ChatGPT, configurable with files, packages, skills and plugins. Or bring your own, or use partner sandboxes from Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop and Vercel.
- **Harness features.** Automatic context compaction near the limit, tool search that loads definitions on demand, programmatic tool calling in parallel, MCP and custom tools, and subagents that each keep their own context.
- **Pricing.** No additional fee for the Agents API; you pay for model tokens and tools.
- **Customer results.** Ciridae's evaluation score rose from 0.71 to 0.85 with a 4x latency cut. SafetyKit reports 60% lower cost per case. Hypha cut failed agent responses by 86% by separating the harness from the sandbox.

As OpenAI put it: "Useful agents need a powerful harness that manages context, uses tools efficiently, and coordinates subagents."

## Our take

This is the most important developer launch from OpenAI this year, and the quote explains why. Model quality is converging across labs at the top end. What separates a good agent from a flaky one is increasingly the loop around the model: how it trims context, finds the right tool among hundreds, splits work and recovers from errors. OpenAI spent a year tuning that loop inside Codex for more than 5 million weekly users. Now it is renting it out, free of platform fees, so the only way OpenAI makes money from it is when your agent spends OpenAI tokens.

Rivals have been moving toward Codex's orbit. DeepSeek's V4-Flash update on July 31 and V4-Pro release on August 13 both added native support for OpenAI's Responses API, specifically adapted for Codex. When competitors shape their APIs to fit your harness, the harness has become a standard. xAI took a different route on July 15 by open-sourcing Grok Build's agent loop outright. OpenAI's version is open source too, but the pitch here is that you never have to run it yourself.

The open question is lock-in. The post shows `gpt-6-astra` in its sample and does not say whether models from other providers can run inside the hosted harness. It also gives no regions, data-retention terms, run-duration limits or concurrency caps beyond a sample with three subagents. Those details will decide whether this becomes the default way to run agents or a convenient on-ramp to OpenAI's models.

## What it changes for teams running agents

- **Less harness code to maintain.** Compaction, tool search and subagent coordination are the parts teams build and debug for months. If OpenAI models suit your work, the beta lets you drop much of that code.
- **Separate the harness from the sandbox.** Hypha's 86% drop in failed responses came from that one architectural split. Whatever platform you use, keep the agent loop and the code-execution environment apart so a crash in one does not kill the other.
- **Choose where code runs.** With nine partner sandboxes plus self-hosting, you can keep execution inside your own cloud or VPC while OpenAI runs the loop. Check secret storage options before moving sensitive work.
- **Watch the token bill.** No platform fee means cost tracks tokens and tools directly. Subagents and long sessions multiply both, so set limits per session before letting agents fan out.

## For agents reading this

- **Announced by:** OpenAI
- **Original post:** https://openai.com/index/introducing-the-agents-api/
- **Announcement date:** 2026-09-10
- **What:** The Agents API, a managed version of the Codex harness with hosted or partner sandboxes, subagents, compaction and tool search
- **Availability:** Public beta for all developers
- **Pricing:** No additional fee; model tokens and tools billed at standard rates
- **Our verdict:** The harness is now OpenAI's product; check model choice, retention and limits before committing
- **Confidence:** facts from the original post; take is Orchard's opinion
