OpenAI Agents API(公测)
1. 介绍
1.1. 平台定位
OpenAI Agents API 是 OpenAI 于 2026-09-10 宣布进入公开测试(公测)的托管 Agent 基础设施(发布日期以 OpenAI 官方 Changelog 为准,2026-09-13 快照由 B 级媒体口径升级为 A 级官方口径;2026-09-12 快照曾依媒体报道记为 09-11):把此前仅用于支撑 Codex 与企业版 ChatGPT 的代理框架与基础设施,以编程接口形式向所有开发者开放。开发者无需为 API 本身支付额外费用,仅按实际消耗的 token 与工具调用量计费。官方 Changelog 同页确认:公测请求携带 OpenAI-Beta: agents=v1 头;数据驻留当前仅限美国,不支持零数据保留(ZDR)。
其产品语义可以概括为一次「托管化跃迁」:一次 API 调用即可创建生产级代理——指定任务、模型、工具与运行环境,无需自行搭建上下文管理、子代理编排等底层基础设施。这标志着 OpenAI Agent 产品线的重心转移:从平台化搭建工具(Agent Builder / Evals,已宣布 2026-11-30 关停)转向基础设施 API。
1.2. 基本信息卡
| 项目 | 内容 | 置信度 |
|---|---|---|
| 开发商 | OpenAI | 高(官方) |
| 发布时间 | 2026-09-10 公开测试,面向所有开发者 | 高(OpenAI 官方 Changelog,2026-09-13 快照核实) |
|---|
1.3. 发展时间线
| 时间 | 事件 | 来源等级 |
|---|---|---|
| 2025-05 | Codex 开源执行框架与 Codex CLI 发布(Agents API 的技术前身) | 高 |
| 2026-06-03 | OpenAI 宣布逐步关停 Agent Builder 与 Evals(2026-11-30 起不再提供) | 高 |
| 2026-09-10 | Agents API 公开测试:向所有开发者开放,按量计费(官方 Changelog 记载;媒体于 09-11 跟进报道) | 高(官方) |
|---|
1.4. 与既有 02-openai-agents-sdk.md 的关系(交叉说明)
OpenAI 当前存在两条并行的 Agent 产品线,二者不重复、不替代,须明确区分:
| 维度 | Agents SDK(详见 02-openai-agents-sdk.md) | Agents API(本篇) |
|---|---|---|
| 形态 | 开源客户端编排库(Python / TypeScript,MIT) | 托管服务端运行时(API) |
| 运行位置 | 开发者自己的进程 | OpenAI 服务端(Codex 同源基础设施) |
| 沙箱 | 需自建或外挂 | 内置(与 Codex / ChatGPT 共用) |
| 上下文管理 | 客户端实现 | 服务端自动压缩 |
| 多代理 | 代码内 handoff 编排 | 服务端子代理派发(各自独立上下文) |
| 计费 | 免费(MIT),只花模型费 | 按量计费(token + 工具调用) |
| 发布 | 2025-03 起 | 2026-09-10 公测 |
|---|
简言之:SDK 是「把 Harness 写进你的代码」,Agents API 是「把 Harness 买成服务」。二者可组合——SDK 编排的代理可将长时执行委托给 Agents API 的托管运行时。本篇不重复 SDK 的能力细节,聚焦托管运行时本身。
2. 名词解释
| 术语 | 英文/缩写 | 释义 |
|---|
| Agents API | Agents API | OpenAI 的托管 Agent 基础设施,2026-09-10 公测 |
|---|
3. 功能说明
3.1. 三大核心能力
官方发布的三大能力构成 Agents API 的功能主轴:
- 上下文自动压缩:会话趋近上下文窗口上限时,系统自动对早期内容压缩,使代理可持续运行数小时乃至数天——把「长会话管理」从开发者责任转为平台责任;
- 工具搜索与并行调用:按需加载相关工具定义以降低 token 消耗(工具定义不再全量注入),并支持多个工具调用并行执行;
- 多代理协同:主代理将复杂任务分解后下发至多个并行运行的子代理,各子代理独立维护上下文,最终由主代理汇总结果。
三者的共同点:均为「Harness 层能力的服务端化」——分别对应六层模型中的 L1(压缩)、L2(工具调度)与 L3(编排)。
3.2. 计算环境与生态伙伴
- 自托管沙箱:与 Codex 及 ChatGPT 共用同一沙箱基础设施,支持快速启动与弹性扩展;
- 生态伙伴一级集成:Blaxel、Cloudflare、Daytona、DigitalOcean、E2B、Modal、甲骨文、Runloop、Vercel 等,提供私有云部署、特定存储机制与不同 CPU / GPU / 内存配置的差异化选项;
- 官方定位:覆盖从初创团队快速验证到企业级生产部署的全谱系需求。
3.3. 内置工具与协议支持
- MCP 协议:原生支持外部工具接入;
- 自定义函数:开发者注册自定义函数工具;
- 网页搜索:内置搜索工具;
- 工具定义经工具搜索机制按需加载,控制上下文开销。
3.4. 开源 Codex 执行框架
- Agents API 基于开源的 Codex 执行框架构建:模型调用、工具协调与上下文管理的核心逻辑可在公开代码库查阅;
- OpenAI 负责维护并持续优化该框架,开发者在每次模型升级时自动获益,无需自行重构代理架构;
- 「开源可查 + 托管运行」的组合是信任设计:逻辑透明可审计,运维交给厂商。
4. 平台架构
4.1. 服务端运行时分层
- API 层:单次调用创建代理(任务、模型、工具、运行环境四要素);
- 编排层:多代理协同(主代理分解、子代理并行、结果汇总);
- 执行层:自托管沙箱(与 Codex / ChatGPT 同源)+ 生态伙伴差异化环境;
- 上下文层:自动压缩、工具搜索的按需装配;
- 工具层:MCP、自定义函数、网页搜索;
- 模型层:OpenAI 模型系列(框架与模型升级解耦,升级自动获益)。
4.2. 一次多代理协同任务的执行流
- 开发者单次 API 调用创建代理:指定任务、模型、工具与运行环境;
- 代理运行中,上下文趋近窗口上限时自动压缩早期内容;
- 主代理将任务分解,派发多个子代理并行执行;
- 各子代理在独立上下文中运行,经工具搜索按需加载工具定义;
- 工具调用(MCP / 自定义函数 / 网页搜索)并行执行;
- 子代理结果回传,主代理汇总产出;
- 长时运行(数小时至数天)由托管沙箱持久承载,无需开发者干预。
5. Harness 设计
5.1. 六层能力总览
| 层 | 名称 | 评级 | 判断依据 |
|---|---|---|---|
| L1 | 上下文工程 | 强 | 上下文自动压缩(官方三大能力之一)+ 工具搜索按需装配 |
| L2 | 工具与执行 | 强 | Codex 同款沙箱 + 工具并行调用 + MCP / 自定义函数 / 网页搜索 |
| L3 | 编排与控制 | 强 | 单调用建代理 + 多代理协同(并行子代理、独立上下文、主代理汇总) |
| L4 | 记忆与状态 | 中强 | 长时运行代理的状态管理(数小时至数天);细节 |
| L5 | 评估与观测 | 中 | ;注意 Evals 平台能力将于 2026-11-30 下线的背景 |
| L6 | 治理与安全 | 中强 | 沙箱隔离 + 企业版治理延续;公测期治理细节 |
5.2. L1 上下文工程层
- 自动压缩是本平台的 L1 立身点:压缩由系统自动触发与执行,开发者零配置——与 Claude Agent SDK 的 Compaction(可干预)和 LangGraph 的「无内置压缩需自建」形成三档对照:OpenAI 最省心、可控性最低;
- 工具搜索是 L1 与 L2 的交叉创新:工具定义按需加载而非全量注入,直接压缩了上下文中的静态开销——这对工具数量大的代理(数十个 MCP 工具)是显著的成本优化;
- 压缩策略(何时压缩、保留什么、是否可干预)细节未公开,标 。
5.3. L2 工具与执行层
- 沙箱是最大卖点:与 Codex / ChatGPT 共用的沙箱基础设施意味着「一个被 OpenAI 自己在生产中大规模验证过的执行环境」,这是其他托管产品难以复制的信誉资产;
- 工具并行调用降低长任务时延;
- 生态伙伴矩阵(E2B、Daytona、Modal、Vercel 等)提供了沙箱之外的差异化环境选择——开发者可按存储、CPU / GPU 配置选择执行位置;
- 与组内对比:AgentCore 强在 microVM 隔离与企业工具网关,Agents API 强在沙箱的「同源生产验证」与伙伴生态广度。
5.4. L3 编排与控制层
- 单调用建代理把编排的启动成本压到最低:任务、模型、工具、环境四要素一次声明;
- 多代理协同采用「主代理分解 → 并行子代理 → 独立上下文 → 主代理汇总」模式——与 AgentCore 的 Supervisor 模式同构,但强调子代理上下文隔离(避免上下文串扰);
- 编排发生在服务端,控制流对开发者不可编程(区别于 SDK 的代码内 handoff)——灵活性换省心的取舍;
- 中断、恢复、人工审批(HITL)原语未在公开材料中出现,标 。
5.5. L4 记忆与状态层
- 长时运行代理(数小时至数天)由托管运行时持续承载状态,Nash 案例证明「数千个长时运行代理」的规模可行性;
- 跨会话记忆、检查点、断点续跑的公开细节缺失,标 ;
- 与组内对比:不及 LangGraph 的 Checkpointer / Time Travel 机制化程度,状态管理以「托管黑盒 + 自动压缩」形态存在。
5.6. L5 评估与观测层
- 公开材料中评估观测能力描述有限,标 ;
- 关键背景:OpenAI 的 Evals 平台能力将于 2026-11-30 下线(与 Agent Builder 同批关停),意味着 OpenAI 的 L5 产品化投入收缩——评估能力短期内需要外部方案(LangSmith、Langfuse 等)补齐;
- 客户案例中的「评估分数」(Cirridae 0.71→0.85)表明平台可支撑评估工作流,但产品化形态未公开。
5.7. L6 治理与安全层
- 沙箱隔离是基础治理:执行环境与宿主隔离、与 Codex / ChatGPT 同源;
- 企业版治理延续:Agents API 承接企业版 ChatGPT 的代理基础设施,企业级治理能力(权限、审计)预计部分随行,公测期细节未完整披露,标 ;
- 成本治理:按量计费天然透明,但无预算硬护栏的公开说明;
- 值得注意的产品治理信号:关停 Agent Builder / Evals、转向基础设施 API,本身是 OpenAI 对「Agent 产品线治理」的一次收缩决策——供应商方向风险应纳入选型评估。
5.8. 多代理协同与沙箱示意
图 21-1|Agents API 多代理协同与托管沙箱
数据来源:OpenAI 发布口径(经华尔街见闻等转述,2026-09-11),示意。
6. 实际案例
案例一:早期客户量化数据(厂商披露口径)
| 客户 | 效果 |
|---|---|
| SafetyKit | 案例审核工作流迁移后,单案处理成本下降 60% |
| Cirridae | 评估分数从 0.71 提升至 0.85,延迟降至原来的约 1/4(官方发布口径,经多家媒体转述核对) |
|---|
以上为厂商披露、媒体转述口径,无第三方独立验证,引用时请注意。
案例二:Codex 的大规模生产验证(背景口径)
Agents API 的沙箱与执行框架与 Codex / ChatGPT 同源——Codex 作为 OpenAI 旗舰编程助手已在内部大规模生产运行,「被厂商自己验证过的 Harness」是其区别于初创托管平台的信誉基础。
7. 总结
7.1. 优点
- 接入门槛极低:单次 API 调用创建生产级代理,上下文管理与子代理编排全托管;
- L1 自动化:上下文自动压缩 + 工具搜索按需加载,长会话与多工具场景成本可控;
- 沙箱信誉:与 Codex / ChatGPT 同源的生产级执行环境;
- 多代理协同:并行子代理 + 独立上下文 + 主代理汇总的编排模式清晰;
- 框架开源可查:Codex 执行框架代码公开,逻辑可审计,模型升级自动获益;
- 生态伙伴矩阵:九家一级集成伙伴覆盖差异化计算环境;
- 按量计费无门槛:API 本身零费用,与使用量直接挂钩。
7.2. 缺点
- 公测期不确定性:功能、价格明细、区域限制未完整披露,正式发布条件未知;
- L5 收缩背景:Evals 平台 2026-11-30 下线,评估能力需外部补齐;
- 编排不可编程:控制流在服务端黑盒运行,无 interrupt / HITL 原语的公开说明;
- L4 细节缺失:检查点、跨会话记忆机制未公开;
- 产品线收缩风险:Agent Builder / Evals 关停表明 OpenAI Agent 产品线仍在快速调整,长期方向需持续跟踪;
- 供应商锁定:沙箱、压缩、编排均绑定 OpenAI 基础设施。
7.3. 适用边界
| 场景 | 是否适用 | 理由 |
|---|---|---|
| 快速上线长时运行代理 | 最适用 | 自动压缩 + 托管沙箱 |
| 多代理并行分解复杂任务 | 最适用 | 子代理独立上下文编排 |
| 已有 Codex / OpenAI 栈团队 | 最适用 | 同源基础设施,迁移成本最低 |
| 需要精细化控制流(HITL / interrupt) | 需权衡 | 服务端黑盒编排,原语未公开 |
| 评估驱动的生产迭代 | 需权衡 | Evals 下线背景,需外挂评估 |
| 多云 / 避免锁定策略 | 不适用 | 深度绑定 OpenAI 基础设施 |
7.4. 选型建议
- 与自家 Agents SDK(
02-openai-agents-sdk.md)决策:要代码级控制选 SDK,要免运维托管选 Agents API,二者可组合; - 与 AWS AgentCore(
15-aws-agentcore.md)决策:OpenAI 栈与 GPT 模型选 Agents API,多框架多模型与 AWS 生态选 AgentCore; - 与 Mistral Agents API(
18-mistral-agents-api.md)决策:长时运行代理与沙箱深度选 OpenAI,EU 数据主权选 Mistral; - 公测期采用建议:以非关键路径任务验证,密切跟踪正式发布条款与 Evals 下线(2026-11-30)后的评估替代方案。
信息缺口声明
- 官方发布原文:OpenAI 官方博客原文 URL 未直接核验(媒体转载已核验),标 。
- 公测范围与限制:区域限制、速率限制、SLA 未完整披露,标 。
- 价格明细:「按 token 与工具调用量计费」的具体单价表未完整披露,标 。
- L4 状态管理:检查点、断点续跑、跨会话记忆机制未公开,标 。
- L5 评估形态:Evals 下线后的评估能力承接方案未公开,标 。
- L6 治理细节:公测期的权限、审计、预算护栏细节未完整披露,标 。
- 客户数据:SafetyKit / Hypha / Cirridae / Nash 数据为厂商披露口径,无第三方独立验证。
8. 参考资料
- OpenAI 推出 Agents API 公测版,将 Codex 底层基础设施向开发者开放 — 华尔街见闻(网易转载),2026-09-11。https://www.163.com/dy/article/L6H2UMJ505198NMR.html
- OpenAI API Changelog(2026-09-10 条目:Released the Agents API in public beta)— OpenAI 官方开发者文档,2026-09-10(2026-09-13 快照核实,A级)。https://developers.openai.com/api/docs/changelog
- OpenAI — 官方网站。https://openai.com
- OpenAI Platform — 开发者文档。https://platform.openai.com/docs
- Codex — OpenAI 开源执行框架代码库。https://github.com/openai/codex
- Introducing Codex — OpenAI 官方博客,2025-05。https://openai.com/index/introducing-codex/
- E2B — 生态伙伴官网(开源沙箱基础设施)。https://e2b.dev/
- Daytona — 生态伙伴官网(计算环境)。https://www.daytona.io/
- Modal — 生态伙伴官网(计算环境)。https://modal.com/
- R18-IDE-Agents-补充平台 检索报告 — 本项目内部检索报告(AG-7 关键事实卡)。
OpenAI Agents API (Public Beta)
1. Introduction
1.1. Platform Positioning
OpenAI Agents API is managed Agent infrastructure that OpenAI announced entering public beta on 2026-09-10 (the release date follows the OpenAI official Changelog; the 2026-09-13 snapshot upgraded it from Grade-B media reporting to the Grade-A official source; the 2026-09-12 snapshot had recorded it as 09-11 based on media reports): it opens up the agent framework and infrastructure previously used only to power Codex and enterprise ChatGPT to all developers through a programming interface. Developers pay no additional fee for the API itself; billing is based only on tokens actually consumed and tool calls made. The same page of the official Changelog confirms: public beta requests carry the OpenAI-Beta: agents=v1 header; data residency is currently limited to the United States, and zero data retention (ZDR) is not supported.
Its product semantics can be summarized as a "hosting leap": a single API call creates a production-grade agent — specify the task, model, tools, and runtime environment, with no need to build underlying infrastructure such as context management or sub-agent orchestration yourself. This marks a shift in the focus of OpenAI's agent product line: from platform-style builder tools (Agent Builder / Evals, announced to be shut down on 2026-11-30) toward infrastructure APIs.
1.2. Basic Information Card
| Item | Content | Confidence |
|---|---|---|
| Developer | OpenAI | High (official) |
| Release date | Public beta on 2026-09-10, open to all developers | High (OpenAI official Changelog, verified against the 2026-09-13 snapshot) |
| Form | Managed server-side Agent runtime (API), built on the open-source Codex execution framework | High |
| Open source / Closed source | API service is closed-source; the underlying execution framework is open-source (Codex framework public codebase) | High |
| Pricing | No additional fee for the API itself; billed by tokens and tool calls | High |
| Core capabilities | Single-call agent creation, automatic context compaction, tool search and parallel calls, multi-agent orchestration | High |
| Sandbox | Hosted sandbox (sharing the same sandbox infrastructure as Codex / ChatGPT) + multiple deployment options | High |
| Ecosystem partners | First-party integrations with Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, Vercel | High |
| Protocol support | Built-in tools such as the MCP protocol, custom functions, and web search | High |
1.3. Development Timeline
| Time | Event | Source level |
|---|---|---|
| 2025-05 | Codex open-source execution framework and Codex CLI released (the technical predecessor of the Agents API) | High |
| 2026-06-03 | OpenAI announced the gradual shutdown of Agent Builder and Evals (no longer available from 2026-11-30) | High |
| 2026-09-10 | Agents API public beta: open to all developers, usage-based billing (recorded in the official Changelog; media followed up with reporting on 09-11) | High (official) |
| Later | Rapid iteration during the beta based on developer feedback, then progressing to general availability (official statement) | Medium |
1.4. Relationship to the Existing 02-openai-agents-sdk.md (Cross-reference)
OpenAI currently has two parallel agent product lines; the two do not overlap and do not replace each other, and must be clearly distinguished:
| Dimension | Agents SDK (see 02-openai-agents-sdk.md) | Agents API (this page) |
|---|---|---|
| Form | Open-source client-side orchestration library (Python / TypeScript, MIT) | Managed server-side runtime (API) |
| Run location | Your own processes | OpenAI's servers (infrastructure sharing Codex's origins) |
| Sandbox | Must build or attach one yourself | Built-in (shared with Codex / ChatGPT) |
| Context management | Client-side implementation | Server-side automatic compaction |
| Multi-agent | In-code handoff orchestration | Server-side sub-agent dispatch (each with its own context) |
| Billing | Free (MIT), only model costs | Usage-based billing (token + tool calls) |
| Release | Since 2025-03 | Public beta on 2026-09-10 |
In short: the SDK is "writing Harness into your code," while the Agents API is "buying Harness as a service". The two can be combined — an agent orchestrated with the SDK can delegate long-running execution to the Agents API's managed runtime. This page does not repeat the SDK's capability details; it focuses on the managed runtime itself.
2. Glossary
| Term | English / Abbreviation | Definition |
|---|---|---|
| Agents API | Agents API | OpenAI's managed Agent infrastructure, in public beta since 2026-09-10 |
| Production Agent | Production Agent | An agent instance created with a single API call that can be put directly into production |
| Codex Framework | Codex Framework | The open-source agent execution framework: the core logic for model calls, tool coordination, and context management is publicly inspectable |
| Hosted Sandbox | Hosted Sandbox | Server-side sandbox infrastructure shared with Codex / ChatGPT, fast to start and elastically scalable |
| Context Auto-Compaction | Context Auto-Compaction | Automatically compacts earlier content as a session approaches the context window limit, supporting runs lasting hours to days |
| Tool Search | Tool Search | Loads relevant tool definitions on demand (rather than full injection), reducing token consumption |
| Parallel Tool Calls | Parallel Tool Calls | Multiple tool calls executed in parallel |
| Multi-agent Orchestration | Multi-agent Orchestration | The main agent breaks down tasks and dispatches parallel sub-agents, each with its own context; the main agent consolidates results |
| Sub-agent | Sub-agent | A parallel execution unit dispatched by the main agent, maintaining an independent context |
| MCP | Model Context Protocol | The open protocol for integrating external tools, natively supported by the Agents API |
| First-party Integration Partners | First-party Integration Partners | Partners such as Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, and Vercel that provide differentiated compute environments |
| Long-running Agent | Long-running Agent | Agents whose run cycles span hours to days (as in the Nash case) |
| Agent Builder | Agent Builder | OpenAI's earlier low-code builder tool, announced to be shut down on 2026-11-30 |
| Evals | Evals | OpenAI's earlier evaluation platform, shut down in the same batch as Agent Builder |
| Web Search | Web Search | The search tool built into the Agents API |
| Custom Functions | Custom Functions | Function tools defined by developers |
3. Feature Description
3.1. Three Core Capabilities
The three capabilities announced by OpenAI form the functional backbone of the Agents API:
- Context auto-compaction: as a session approaches the context window limit, the system automatically compacts earlier content, allowing an agent to keep running for hours or even days — shifting "long-session management" from a developer responsibility to a platform responsibility;
- Tool search and parallel calls: relevant tool definitions are loaded on demand to reduce token consumption (tool definitions are no longer injected in full), and multiple tool calls can run in parallel;
- Multi-agent orchestration: the main agent breaks down complex tasks and dispatches them to multiple sub-agents running in parallel; each sub-agent maintains its own context, and the main agent ultimately consolidates the results.
What the three share in common: all are "server-side versions of Harness-layer capabilities" — corresponding respectively to L1 (compaction), L2 (tool scheduling), and L3 (orchestration) in the six-layer model.
3.2. Compute Environment and Ecosystem Partners
- Hosted sandbox: shares the same sandbox infrastructure as Codex and ChatGPT, with fast startup and elastic scaling;
- First-party ecosystem integrations: Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, Vercel, and others provide differentiated options including private-cloud deployment, specific storage mechanisms, and different CPU / GPU / memory configurations;
- Official positioning: covering the full spectrum of needs from rapid validation by startups to enterprise-grade production deployment.
3.3. Built-in Tools and Protocol Support
- MCP protocol: native support for integrating external tools;
- Custom functions: developers register custom function tools;
- Web search: a built-in search tool;
- Tool definitions are loaded on demand through the tool search mechanism to control context overhead.
3.4. Open-Source Codex Execution Framework
- The Agents API is built on the open-source Codex execution framework: the core logic for model calls, tool coordination, and context management can be inspected in a public codebase;
- OpenAI maintains and continuously optimizes the framework, so developers automatically benefit from every model upgrade without having to refactor their own agent architectures;
- The "open-source inspectable + hosted runtime" combination is a trust design: the logic is transparent and auditable, while operations are left to the vendor.
4. Platform Architecture
4.1. Server-Side Runtime Layers
- API layer: creates an agent with a single call (task, model, tools, and runtime environment — four elements);
- Orchestration layer: multi-agent orchestration (main agent decomposes, sub-agents run in parallel, results are consolidated);
- Execution layer: hosted sandbox (sharing Codex / ChatGPT's origins) + differentiated ecosystem-partner environments;
- Context layer: automatic compaction and on-demand assembly of tool search;
- Tools layer: MCP, custom functions, web search;
- Model layer: the OpenAI model family (framework and model upgrades are decoupled, so you benefit automatically from upgrades).
4.2. Execution Flow of a Multi-Agent Orchestration Task
- The developer creates an agent with a single API call, specifying the task, model, tools, and runtime environment;
- While the agent runs, the context is automatically compacted as it approaches the window limit;
- The main agent breaks down the task and dispatches multiple sub-agents to run in parallel;
- Each sub-agent runs in an independent context and loads tool definitions on demand via tool search;
- Tool calls (MCP / custom functions / web search) run in parallel;
- Sub-agent results are returned, and the main agent consolidates the output;
- Long-running execution (hours to days) is continuously carried by the hosted sandbox, with no developer intervention required.
5. Harness Design
5.1. Overview of the Six-Layer Capabilities
| Layer | Name | Rating | Basis for assessment |
|---|---|---|---|
| L1 | Context engineering | Strong | Automatic context compaction (one of the three official capabilities) + on-demand assembly of tool search |
| L2 | Tools and execution | Strong | Codex-grade sandbox + parallel tool calls + MCP / custom functions / web search |
| L3 | Orchestration and control | Strong | Single-call agent creation + multi-agent orchestration (parallel sub-agents, independent contexts, main-agent consolidation) |
| L4 | Memory and state | Medium-strong | State management for long-running agents (hours to days); details |
| L5 | Evaluation and observability | Medium | ; note the background that the Evals platform capabilities will be retired on 2026-11-30 |
| L6 | Governance and security | Medium-strong | Sandbox isolation + continuation of enterprise governance; beta-period governance details |
5.2. L1 Context Engineering Layer
- Automatic compaction is this platform's L1 cornerstone: compaction is triggered and executed automatically by the system with zero developer configuration — forming a three-tier comparison with Claude Agent SDK's Compaction (intervenable) and LangGraph's "no built-in compaction, you must build it yourself": OpenAI is the least effort but offers the least control;
- Tool search is a cross-cutting innovation between L1 and L2: tool definitions are loaded on demand rather than injected in full, directly compressing the static overhead in the context — a significant cost optimization for agents with many tools (dozens of MCP tools);
- The details of the compaction policy (when to compact, what to keep, whether it can be intervened with) are not public, marked
[To be verified].
5.3. L2 Tools and Execution Layer
- The sandbox is the biggest selling point: the sandbox infrastructure shared with Codex / ChatGPT means "an execution environment that OpenAI itself has validated at scale in production" — a credibility asset that other hosted products would find hard to replicate;
- Parallel tool calls reduce latency on long-running tasks;
- The ecosystem-partner matrix (E2B, Daytona, Modal, Vercel, etc.) offers differentiated environment choices beyond the sandbox — developers can choose their execution location by storage and CPU / GPU configuration;
- In-group comparison: AgentCore's strengths lie in microVM isolation and the enterprise tool gateway, while the Agents API excels at the sandbox's "same-origin production validation" and the breadth of its partner ecosystem.
5.4. L3 Orchestration and Control Layer
- Single-call agent creation pushes the startup cost of orchestration to its minimum: the four elements of task, model, tools, and environment are declared in one call;
- Multi-agent orchestration follows the "main agent decomposes → parallel sub-agents → independent contexts → main-agent consolidation" pattern — isomorphic to AgentCore's Supervisor pattern, but emphasizing sub-agent context isolation (to avoid context crosstalk);
- Orchestration happens server-side, so the control flow is not programmable by developers (unlike the in-code handoff of the SDK) — a trade-off of flexibility for peace of mind;
- Interruption, resume, and human-in-the-loop (HITL) primitives do not appear in public materials, marked
[To be verified].
5.5. L4 Memory and State Layer
- Long-running agents (hours to days) have their state continuously carried by the managed runtime, and the Nash case demonstrates the feasibility of "thousands of long-running agents";
- Public details on cross-session memory, checkpoints, and pause-and-resume are missing, marked
[To be verified]; - In-group comparison: not as mechanism-based as LangGraph's Checkpointer / Time Travel; state management exists in the form of a "managed black box + automatic compaction".
5.6. L5 Evaluation and Observability Layer
- Public materials describe evaluation and observability capabilities only to a limited degree, marked
[To be verified]; - Key background: OpenAI's Evals platform capabilities will go offline on 2026-11-30 (shut down in the same batch as Agent Builder), meaning OpenAI's investment in L5 productization is contracting — evaluation capabilities will need to be filled by external solutions (LangSmith, Langfuse, etc.) in the short term;
- The "evaluation scores" in customer cases (Cirridae 0.71→0.85) show the platform can support evaluation workflows, but the productized form has not been made public.
5.7. L6 Governance and Security Layer
- Sandbox isolation is the foundation of governance: the execution environment is isolated from the host and shares Codex / ChatGPT's origins;
- Continuation of enterprise governance: the Agents API inherits enterprise ChatGPT's agent infrastructure, and enterprise-grade governance capabilities (permissions, audit) are expected to carry over in part; beta-period details are not fully disclosed, marked
[To be verified]; - Cost governance: usage-based billing is transparent by nature, but there is no public statement about hard budget guardrails;
- A noteworthy product-governance signal: shutting down Agent Builder / Evals and pivoting to an infrastructure API is itself a contraction decision by OpenAI on "governance of the agent product line" — supplier-direction risk should be factored into vendor selection.
5.8. Multi-Agent Orchestration and Sandbox Illustration
Figure 21-1 | Agents API multi-agent orchestration and the hosted sandbox
Data source: OpenAI's release statement (as relayed by outlets such as Wallstreetcn (华尔街见闻), 2026-09-11); illustrative.
6. Real-World Cases
Case 1: Early-customer quantitative data (vendor-disclosed basis)
| Customer | Impact |
|---|---|
| SafetyKit | After migrating the case-review workflow, per-case processing cost fell by 60% |
| Cirridae | Evaluation score rose from 0.71 to 0.85 and latency fell to roughly 1/4 of its previous value (official release basis, cross-checked against multiple media retellings) |
| Nash | Thousands of long-running agents manage hundreds of millions of deliveries worldwide, with run cycles spanning hours to days |
| Long Lake | Cut the cycle for deploying agents across industries from days to hours |
The above are vendor-disclosed, media-relayed figures with no third-party independent verification; please note this when citing.
Case 2: Codex's large-scale production validation (background basis)
Agents API's sandbox and execution framework share Codex / ChatGPT's origins — Codex, as OpenAI's flagship programming assistant, has been running at large scale in production internally, and "a Harness that has been validated by its own vendor" is the credibility foundation that distinguishes it from startup hosted platforms.
7. Summary
7.1. Strengths
- Extremely low barrier to entry: a single API call creates a production-grade agent, with context management and sub-agent orchestration fully managed;
- L1 automation: automatic context compaction + on-demand tool search loading keep costs manageable for long sessions and many-tool scenarios;
- Sandbox credibility: a production-grade execution environment sharing Codex / ChatGPT's origins;
- Multi-agent orchestration: a clear orchestration pattern of parallel sub-agents + independent contexts + main-agent consolidation;
- Open-source, inspectable framework: the Codex execution framework's code is public, its logic is auditable, and you automatically benefit from model upgrades;
- Ecosystem-partner matrix: nine first-party integration partners covering differentiated compute environments;
- No-barrier usage-based pricing: the API itself is free of charge, tied directly to usage.
7.2. Weaknesses
- Beta-period uncertainty: features, pricing details, and regional restrictions are not fully disclosed, and the conditions for GA are unknown;
- L5 contraction background: the Evals platform goes offline on 2026-11-30, so evaluation capabilities must be filled externally;
- Non-programmable orchestration: the control flow runs in a server-side black box, with no public statement on interrupt / HITL primitives;
- Missing L4 details: checkpoint and cross-session memory mechanisms are not public;
- Product-line contraction risk: the shutdown of Agent Builder / Evals shows OpenAI's agent product line is still being adjusted quickly, and the long-term direction requires continued monitoring;
- Vendor lock-in: sandbox, compaction, and orchestration are all tied to OpenAI infrastructure.
7.3. Applicability Boundaries
| Scenario | Applicable? | Reason |
|---|---|---|
| Rapidly launching long-running agents | Best fit | Automatic compaction + hosted sandbox |
| Decomposing complex tasks with parallel agents | Best fit | Sub-agent independent-context orchestration |
| Teams already on the Codex / OpenAI stack | Best fit | Same-origin infrastructure, lowest migration cost |
| Need fine-grained control flow (HITL / interrupt) | Weigh carefully | Server-side black-box orchestration, primitives not public |
| Evaluation-driven production iteration | Weigh carefully | Evals retirement background, needs external evaluation |
| Multi-cloud / lock-in avoidance strategy | Not applicable | Deeply tied to OpenAI infrastructure |
7.4. Selection Recommendations
- Decision vs. your own Agents SDK (
02-openai-agents-sdk.md): choose the SDK for code-level control and the Agents API for operations-free hosting; the two can be combined; - Decision vs. AWS AgentCore (
15-aws-agentcore.md): choose the Agents API for the OpenAI stack and GPT models, and AgentCore for multi-framework, multi-model and AWS-ecosystem scenarios; - Decision vs. Mistral Agents API (
18-mistral-agents-api.md): choose OpenAI for deep long-running-agent and sandbox support, and Mistral for EU data sovereignty; - Beta-period adoption advice: validate on non-critical-path tasks and closely track the GA terms and the evaluation alternatives after Evals' retirement (2026-11-30).
Information Gap Statement
- Original official release: the original URL of OpenAI's official blog post was not directly verified (media reposts were verified), marked
[To be verified]. - Beta scope and restrictions: regional restrictions, rate limits, and SLA are not fully disclosed, marked
[To be verified]. - Pricing details: the specific unit price table for "billing by tokens and tool calls" is not fully disclosed, marked
[To be verified]. - L4 state management: checkpoint, pause-and-resume, and cross-session memory mechanisms are not public, marked
[To be verified]. - L5 evaluation form: the solution for carrying evaluation capabilities after Evals' retirement is not public, marked
[To be verified]. - L6 governance details: beta-period permission, audit, and budget-guardrail details are not fully disclosed, marked
[To be verified]. - Customer data: SafetyKit / Hypha / Cirridae / Nash figures are vendor-disclosed and have no third-party independent verification.
8. References
- OpenAI launches the Agents API in public beta, opening Codex's underlying infrastructure to developers — Wallstreetcn (华尔街见闻, via NetEase repost), 2026-09-11. https://www.163.com/dy/article/L6H2UMJ505198NMR.html
- OpenAI API Changelog (2026-09-10 entry: Released the Agents API in public beta) — OpenAI official developer documentation, 2026-09-10 (verified against the 2026-09-13 snapshot, Grade A). https://developers.openai.com/api/docs/changelog
- OpenAI — official website. https://openai.com
- OpenAI Platform — developer documentation. https://platform.openai.com/docs
- Codex — OpenAI open-source execution framework codebase. https://github.com/openai/codex
- Introducing Codex — OpenAI official blog, 2025-05. https://openai.com/index/introducing-codex/
- E2B — ecosystem-partner website (open-source sandbox infrastructure). https://e2b.dev/
- Daytona — ecosystem-partner website (compute environment). https://www.daytona.io/
- Modal — ecosystem-partner website (compute environment). https://modal.com/
- R18-IDE-Agents-Supplemental platform research report — this project's internal research report (AG-7 key fact card).