Focus · 焦点

OpenAI发布Agents API
一次调用创建生产级Agent,托管时代来了

OpenAI Launches Agents API
Production-Grade Agents in One Call, Managed Era Begins

9月10日,OpenAI推出Agents API公测版——开发者只需一次API调用,就能创建可投入生产的云Agent,无需自建上下文管理、子代理编排等底层设施。这意味着Agent创业公司的护城河正在被填平。

On September 10, OpenAI launched the Agents API public beta — developers can create production-ready cloud agents with a single API call, no need to build context management, sub-agent orchestration, or other infrastructure from scratch. The moat for agent startups is being filled in.

No.051 2026.09.11 约 10 分钟阅读 ~10 min read

9月10日,OpenAI在官方博客上发布了Agents API公测版。这不是一次常规的API更新——这是OpenAI从"模型提供商"向"Agent平台"转型的关键一步。

过去一年,无数创业公司试图在大模型之上构建Agent基础设施:上下文管理、会话持久化、子代理编排、工具调用、错误恢复……这些"胶水代码"构成了Agent创业公司的核心护城河。现在,OpenAI说:这些我都帮你做了,而且免费。

Agents API的核心理念很简单:开发者只需在一次API调用中指定任务、模型、工具与运行环境,OpenAI就会自动处理剩下的所有事情——上下文压缩、长时运行、子代理并行、故障恢复。这意味着,构建一个生产级Agent的门槛,从"需要一个工程团队"降到了"需要一行代码"

Codex harness:OpenAI的秘密武器

Agents API的核心是Codex harness——这是OpenAI内部用于运行Codex的同一套基础设施。Codex是OpenAI的代码生成Agent,已经在内部运行了很长时间,处理了数百万次任务。

现在,这套基础设施被开放给了所有开发者。这意味着你可以用同样的可靠性、同样的性能、同样的扩展性来运行你自己的Agent——而不需要自己搭建任何基础设施。

具体来说,Agents API提供三个核心能力:

第一,长时运行会话管理。Agent不再受限于单次请求-响应模式,可以在后台持续运行数小时甚至数天。OpenAI会自动处理上下文压缩,当会话上下文超过模型窗口时,自动压缩历史信息,确保Agent不会"遗忘"关键上下文。

第二,子代理编排。一个Agent可以自动拆分任务,委派给多个子代理并行执行。这就像一个项目经理把任务分配给团队成员——但这里的"团队成员"都是AI Agent。

第三,工具调用与MCP支持。Agent可以调用外部工具、访问数据库、执行代码、浏览网页。而且,Agents API原生支持MCP(Model Context Protocol),这意味着你可以无缝接入已经为MCP构建的整个工具生态。

托管模式:Agent创业公司的噩梦

Agents API的定价模式是它最具杀伤力的部分:仅收取token和工具调用费用,无额外服务费

这意味着什么?过去一年,许多Agent创业公司的商业模式是:提供Agent基础设施(上下文管理、编排、监控),收取订阅费或按调用收费。现在,OpenAI把这些能力免费提供了——你只需要支付模型调用的token费用。

这就像AWS当年对传统IDC的冲击:你不需要自己建机房,只需要按需付费。现在,你不需要自己建Agent基础设施,只需要调用API。

当然,这并不意味着所有Agent创业公司都会死掉。那些在特定垂直领域有深度积累的公司(比如法律Agent、医疗Agent、金融Agent)仍然有生存空间——因为它们的价值不仅在于基础设施,更在于领域知识和数据。

但是,那些纯粹做"Agent基础设施"的创业公司,现在必须重新思考自己的定位了。当OpenAI把基础设施免费提供时,你的价值在哪里?

开发者生态:MCP成为标准

Agents API原生支持MCP(Model Context Protocol),这是一个重要信号。

MCP是Anthropic在2024年提出的开放协议,用于标准化大模型与外部工具的连接方式。过去一年,MCP已经获得了广泛采用——Anthropic、Google、Microsoft、AWS等主要厂商都支持MCP。

现在,OpenAI通过Agents API正式拥抱MCP。这意味着MCP正在成为Agent工具调用的事实标准。对于开发者来说,这是一个好消息:你为MCP构建的工具,现在可以在OpenAI的Agent生态中使用,也可以在其他支持MCP的平台中使用。

这种标准化对整个Agent生态是有利的。它降低了工具开发者的适配成本,提高了工具的可移植性,最终会加速Agent应用的爆发。

竞争格局:OpenAI vs Anthropic vs Google

Agents API的发布,让Agent基础设施的竞争格局更加清晰。

OpenAI的优势在于模型能力和用户基数。GPT-6 Astra是最强的通用模型之一,ChatGPT有数亿用户。Agents API让这些用户可以直接构建Agent,而不需要额外的基础设施。

Anthropic的优势在于安全性和企业级信任。Claude模型在安全性和可控性上一直领先,很多企业客户选择Anthropic就是因为它对安全的重视。Claude Code在开发者中的采用率也在快速增长。

Google的优势在于搜索和工具生态。Gemini模型与Google搜索、Gmail、Drive等服务深度集成,这在Agent场景中是独特的优势。

这场竞争的赢家,最终取决于谁能提供最好的Agent体验——不只是模型能力,还包括工具生态、开发体验、可靠性、安全性。

对开发者意味着什么?

对于开发者来说,Agents API是一个巨大的利好。

过去,构建一个生产级Agent需要处理大量工程问题:上下文管理、错误恢复、并发控制、监控日志……这些"胶水代码"往往比Agent本身的逻辑还要复杂。现在,OpenAI帮你处理了这些。

你可以专注于Agent的核心逻辑:它应该做什么?它应该调用哪些工具?它应该如何响应用户?——而不需要担心底层基础设施。

当然,这也意味着Agent开发的门槛大幅降低。当每个人都能轻松构建Agent时,竞争会更加激烈。最终胜出的,不是那些"能构建Agent"的人,而是那些"知道用Agent解决什么问题"的人。

OpenAI这次发布的时间点也很有意思。9月10日,正好是秋季开发者大会的季节。接下来几个月,我们可能会看到更多Agent平台的更新——Anthropic、Google、Microsoft都在筹备各自的Agent产品。

Agent基础设施的竞争,才刚刚开始。

明天见。

On September 10, OpenAI published the Agents API public beta on its official blog. This isn't a routine API update — it's a critical step in OpenAI's transformation from "model provider" to "agent platform."

Over the past year, countless startups have tried to build agent infrastructure on top of large models: context management, session persistence, sub-agent orchestration, tool calling, error recovery... This "glue code" formed the core moat for agent startups. Now, OpenAI says: I'll do all of this for you, and it's free.

The core idea of the Agents API is simple: developers specify the task, model, tools, and runtime environment in a single API call, and OpenAI automatically handles everything else — context compression, long-running sessions, sub-agent parallelization, fault recovery. This means the barrier to building a production-grade agent drops from "needs an engineering team" to "needs one line of code."

Codex Harness: OpenAI's Secret Weapon

At the core of the Agents API is the Codex harness — the same infrastructure OpenAI uses internally to run Codex. Codex is OpenAI's code generation agent that has been running internally for a long time, handling millions of tasks.

Now, this infrastructure is open to all developers. This means you can run your own agents with the same reliability, performance, and scalability — without building any infrastructure yourself.

Specifically, the Agents API provides three core capabilities:

First, long-running session management. Agents are no longer limited to single request-response patterns; they can run continuously in the background for hours or even days. OpenAI automatically handles context compression — when session context exceeds the model window, it automatically compresses historical information to ensure agents don't "forget" critical context.

Second, sub-agent orchestration. An agent can automatically split tasks and delegate them to multiple sub-agents running in parallel. It's like a project manager assigning tasks to team members — except here, all the "team members" are AI agents.

Third, tool calling and MCP support. Agents can call external tools, access databases, execute code, browse the web. And importantly, the Agents API natively supports MCP (Model Context Protocol), meaning you can seamlessly tap into the entire tool ecosystem already built for MCP.

Managed Mode: The Nightmare for Agent Startups

The pricing model of the Agents API is its most lethal aspect: only token and tool call fees, no additional service charges.

What does this mean? Over the past year, many agent startups built their business models around providing agent infrastructure (context management, orchestration, monitoring) and charging subscription or per-call fees. Now, OpenAI provides these capabilities for free — you only pay for the model's token costs.

This is like AWS's impact on traditional IDCs: you don't need to build your own data center; just pay as you go. Now, you don't need to build your own agent infrastructure; just call an API.

Of course, this doesn't mean all agent startups will die. Those with deep domain expertise in specific verticals (legal agents, medical agents, financial agents) still have room to survive — because their value lies not just in infrastructure, but in domain knowledge and data.

But startups that were purely doing "agent infrastructure" must now rethink their positioning. When OpenAI provides infrastructure for free, where is your value?

Developer Ecosystem: MCP Becomes the Standard

The Agents API's native MCP support is an important signal.

MCP (Model Context Protocol) is an open protocol proposed by Anthropic in 2024 to standardize how large models connect to external tools. Over the past year, MCP has gained widespread adoption — major players like Anthropic, Google, Microsoft, and AWS all support it.

Now, OpenAI officially embraces MCP through the Agents API. This means MCP is becoming the de facto standard for agent tool calling. For developers, this is good news: tools you build for MCP can now be used in OpenAI's agent ecosystem and on other MCP-supporting platforms.

This standardization benefits the entire agent ecosystem. It reduces adaptation costs for tool developers, improves tool portability, and ultimately accelerates the explosion of agent applications.

Competitive Landscape: OpenAI vs Anthropic vs Google

The Agents API launch clarifies the agent infrastructure competition.

OpenAI's strengths lie in model capability and user base. GPT-6 Astra is one of the strongest general models, and ChatGPT has hundreds of millions of users. The Agents API lets these users build agents directly without additional infrastructure.

Anthropic's strengths lie in safety and enterprise trust. Claude models have consistently led in safety and controllability, and many enterprise customers choose Anthropic precisely for its safety focus. Claude Code's adoption among developers is also growing rapidly.

Google's strengths lie in search and tool ecosystem. Gemini models are deeply integrated with Google Search, Gmail, Drive, and other services — a unique advantage in agent scenarios.

The winner of this competition ultimately depends on who delivers the best agent experience — not just model capability, but also tool ecosystem, developer experience, reliability, and security.

What Does This Mean for Developers?

For developers, the Agents API is a massive win.

Previously, building a production-grade agent required handling numerous engineering problems: context management, error recovery, concurrency control, monitoring logs... This "glue code" was often more complex than the agent's core logic. Now, OpenAI handles it all.

You can focus on the agent's core logic: What should it do? What tools should it call? How should it respond to users? — without worrying about underlying infrastructure.

Of course, this also means the barrier to agent development drops dramatically. When everyone can easily build agents, competition intensifies. The winners won't be those who "can build agents," but those who "know what problems to solve with agents."

The timing is also interesting. September 10, right at the start of fall developer conference season. Over the coming months, we'll likely see more agent platform updates — Anthropic, Google, and Microsoft are all preparing their own agent products.

The competition for agent infrastructure has only just begun.

See you tomorrow.

当OpenAI把Agent基础设施免费提供时,创业公司必须重新思考:你的价值到底在哪里?

—— Dawn Vision编辑部

When OpenAI provides agent infrastructure for free, startups must rethink: where exactly is your value?

— The Dawn Vision Editorial Desk
OpenAI · Agents API · Codex · 托管Agent · Agent创业 · MCP · 工具调用 · 开发者
OpenAI · Agents API · Codex · managed agent · agent startup · MCP · tool calling · developers
Sources · 信源 Sources

本文基于 Dawn Vision 认知引擎处理的 18 个源信号生成,经编辑部人工审核。素材来源:OpenAI官方博客、TechCrunch、MarkTechPost、ai-tldr.dev、金融界。

This article was generated by the Dawn Vision cognitive engine processing 18 source signals, with human editorial review. Sources: OpenAI Blog, TechCrunch, MarkTechPost, ai-tldr.dev, JRJ.