DocsQuick StartAI News
AI NewsOpenAI Agents API Open Public Beta
Product Update

OpenAI Agents API Open Public Beta

2026-09-11T01:04:15.745Z
OpenAI Agents API Open Public Beta

On September 10, OpenAI launched the public beta of its Agents API, integrating code execution, tool calling, sandbox environments, context compaction, and multi-agent collaboration into a cloud runtime. It addresses not whether “models can chat,” but whether agents can work continuously and reliably deliver results.

OpenAI Agents API Enters Open Beta: Agents Begin to Gain a “Work Environment”

OpenAI is moving agents beyond prompts that merely call functions toward cloud-based software systems capable of running independently for hours or even days. On September 10 local time, OpenAI announced the open beta of its Agents API. Developers can use the API to create cloud-based agent environments managed by OpenAI, allowing models to execute code, process files, call tools in a sandbox, and continue advancing tasks across multiple context windows.

The focus of this update is not the addition of yet another model, but the completion of the most difficult layer to engineer in agent products: giving models persistent execution state and a controllable computing environment. In the past, developers often had to assemble model APIs, task queues, containers, file storage, tool routing, context compression, and failure-retry mechanisms themselves. The Agents API attempts to consolidate these scattered components into a managed infrastructure platform.

In terms of product positioning, it is closer to an “agent runtime” than to a traditional chat API. The model is responsible for understanding tasks and making decisions, while the Agents API is responsible for turning those decisions into real-world actions.

Schematic of the OpenAI Agents API cloud-based agent execution flow: models, tools, sandboxes, files, and context management working together

One API Call, an Entire Execution System Behind It

OpenAI says developers can specify a task, model, tools, and runtime environment in a single API call to create production-oriented agents. Here, “single call” does not mean that the task will be completed within one HTTP request. Rather, it means that developers do not need to build the entire execution pipeline themselves.

A typical agent task might involve reading a batch of business data, writing a script to clean it, calling external services to obtain supplementary information, generating charts and an analytical report, and then writing the outputs to a designated location. With the traditional approach, an application would need to handle questions such as:

  • When should the model call a tool?
  • Should a failed tool call be retried?
  • In what environment should the code run?
  • How should intermediate files be saved?
  • How should the conversation continue when the context becomes too long?
  • How can the service process preserve its state after a task has been running for several hours?
  • Should a complex task be divided among multiple sub-agents for parallel processing?

The value of the Agents API lies in turning these issues from “infrastructure that application developers must maintain” into capabilities built into the API. Developers still need to define their own tools, knowledge bases, and business rules, but they no longer have to implement the agent orchestration framework from scratch.

This is also what distinguishes it from ordinary function calling. Function calling solves the question, “Should the model call a particular function?” The Agents API addresses the question, “How can the model continue advancing toward a goal through a series of operations?” The former is like giving a chatbot a few wrenches; the latter is more like equipping it with a workshop, a task list, and a workflow that can run over an extended period.

Code Execution and File Processing Determine Whether an Agent Can Actually Work

Many AI applications currently look like agents but in practice remain stuck in the “generate text—wait for user confirmation” stage. The reason is simple: a model’s ability to propose a plan does not mean it has the environment required to execute that plan.

The Agents API provides OpenAI-managed sandbox environments. Agents can run code, process files, install or use required software packages, and generate outputs that applications can consume. For coding assistants, data analysis, document processing, automated operations, and research tasks, these capabilities are more critical than simply improving the model’s language-generation ability.

For example, in a data analysis scenario, an agent can first read a CSV file, use Python to clean anomalous values, generate visual charts based on the analysis, and finally produce a report. The entire process does not require all raw data and intermediate results to be repeatedly inserted into the model’s context. The model decides what to do next, while the sandbox performs the actual execution.

In coding scenarios, an agent does more than return a piece of code. It can inspect project files, modify code, run tests, continue fixing issues based on error messages, and deliver the final patch or build artifacts to the developer. This workflow is much closer to the “automatically complete the task” capability developers actually need, rather than simply giving users code snippets to copy and paste.

Of course, a sandbox is not inherently secure. Developers still need to clearly define file permissions, network access, secret injection, and the boundaries of external tools. An agent capable of executing code can also amplify risks if it is allowed to read production databases unconditionally or call high-privilege internal APIs. The Agents API lowers the infrastructure barrier, but it does not automatically design permissions on behalf of the application.

Not Limited to OpenAI Sandboxes: Bring Your Own Execution Environment

OpenAI is not locking all developers into its own managed sandboxes. The Agents API supports both OpenAI-managed sandboxes and sandboxes deployed on developers’ own infrastructure or on partner platforms.

OpenAI has partnered with Blaxel, Cloudflare, Daytona, DigitalOcean, E2B, Modal, Oracle, Runloop, and Vercel to provide different CPU, GPU, memory, and storage configurations. This choice is important for enterprise developers: some tasks need to be located close to internal data, some require GPUs, and others are constrained by compliance, network isolation, or data residency requirements.

This effectively creates two usage paths.

The first is a managed-first approach. Developers use the OpenAI Hosted Sandbox directly without procuring or maintaining container clusters. This is suitable for rapidly validating products, building internal tools, or handling tasks that do not require extensive infrastructure control.

The second is infrastructure control. Developers use their own cloud environments or partner sandboxes, placing agent execution closer to their business systems. This can provide better network connectivity, cost control, and data governance, but it also requires them to take on more operational responsibilities.

For startups, managed sandboxes can significantly shorten the time from demo to usable product. For large enterprises, their own sandboxes may be more practical than a “fully managed” approach. By offering both modes, OpenAI shows that it has not designed the Agents API as a product that can run only in a single closed environment.

The Core of Long-Running Tasks: Context Cannot Grow Indefinitely

Once agents enter production, context management is one of the easiest problems to overlook. When a task runs for a few minutes, developers can retain all historical messages. But when a task continues for hours or even days, all tool inputs, code outputs, error logs, and intermediate conclusions accumulate in the context, causing costs, latency, and model stability to deteriorate.

The Agents API provides task execution across context windows. When a session approaches its context limit, the system can automatically compress earlier information, allowing the agent to carry the necessary state into the next context window. In other words, it does not mechanically preserve every piece of history; instead, it attempts to organize the previous execution process into a shorter form of “working memory.”

The practical significance of this capability is not that it gives models infinite memory, but that it prevents long-running tasks from being forced to restart when the context window is exhausted. For example, a research agent can retrieve materials, organize evidence, generate a draft, and proofread content in stages. A coding agent can continue to remember the project goals, modified files, and unresolved issues after multiple rounds of testing and fixes.

However, automatic compression also creates an engineering challenge: which information can be discarded, and which information must be retained? User authorizations, critical constraints, causes of errors, and final acceptance criteria cannot be summarized away like casual conversation. Developers should still explicitly preserve key state when designing tasks and should not place all reliability expectations on automatic summarization.

Tool Search and Programmatic Calls Reduce Context Waste

The more tools an agent has, the more easily its context can expand. Traditionally, every request would include the full definitions of all tools, even when the current task required only one or two of them. This wastes tokens and increases the chance that the model will select the wrong tool.

The Agents API supports tool search, allowing agents to load relevant tool definitions on demand based on the current task. It also supports programmatic tool calls, enabling applications to control the execution process in greater detail, including running multiple calls in parallel, chaining multiple operations, and returning only filtered results to the model.

For example, when a customer-support agent handles a user’s order inquiry, it does not need to load all the tools for the CRM, inventory, logistics, refunds, contracts, and permissions systems at once. It can first search for tools related to “order status” and then call the logistics query interface. Only if it needs to determine refund eligibility does it continue by loading the refund rules.

The benefits of this design are direct: less context, lower call costs, shorter latency, and easier tool-permission control. For enterprise applications with dozens or even hundreds of tools, tool search may improve the actual user experience more than switching to a larger model.

Programmatic tool calls are also well suited to batch-processing scenarios. An agent can first query multiple data sources in parallel, allow the application layer to filter out irrelevant results, and then pass only high-value information to the model for summarization. This prevents the model from being overwhelmed by large volumes of repetitive return values and allows developers to insert caching, rate limiting, auditing, and business validation between the tools and the model.

Multi-Agent Collaboration: Useful, but More Is Not Always Better

The Agents API also supports multi-agent workflows. Developers can divide complex tasks into multiple subtasks, assign them to different sub-agents for parallel processing, and then have a primary agent coordinate and consolidate the results. The example provided by OpenAI supports up to three concurrent sub-agents.

A research-report task, for instance, can be divided into three roles: one agent searches for materials, another organizes the structure, and a third verifies key facts. The primary agent then merges the results, checks for conflicts, and produces the final content. For scenarios involving multiple mutually independent subtasks, this architecture can reduce overall waiting time.

However, multi-agent systems are not as simple as “duplicating a question three times.” Every additional sub-agent increases the complexity of orchestration, communication, result merging, and error handling. If a task cannot be parallelized, or if the subtasks are highly interdependent, multiple agents may instead lead to greater token consumption and uncertainty.

Developers should first determine whether the task can be clearly decomposed: Do the subtasks have independent inputs and outputs? Can they run simultaneously? Does the primary agent have clear acceptance criteria? If the answer is no, using a single agent with tools is usually simpler and easier to debug.

Reusing the Codex Framework Means OpenAI Is Betting on the “Runtime”

The Agents API is built on the agent execution framework and infrastructure behind Codex. OpenAI says developers can inspect the public code repository to understand the core logic of model invocation, tool coordination, and context management, while OpenAI maintains the framework and continuously improves agent capabilities as models are updated.

The signal from this approach is clear: OpenAI does not want to provide only model inference interfaces. It also wants to control the entire execution loop between receiving a task and completing it. Model capabilities may remain important in the future, but product experience will also be determined by task orchestration, sandbox stability, tool ecosystems, state recovery, and observability.

For developers, reusing Codex’s execution framework offers a practical benefit: file operations, command execution, and iterative repair mechanisms already validated in coding scenarios can be migrated to a broader range of agent applications. But this also means developers need to rethink the API’s abstraction boundaries. It is no longer about calling a model once and receiving a piece of text; it is about submitting a task that may run for an extended period and produce side effects.

Production environments must also address task cancellation, timeouts, retries, idempotency, state recovery, cost limits, and audit logs. In particular, for agents that modify files, send emails, create orders, or call internal systems, any automatic retry may result in duplicate operations. The more sophisticated the agent infrastructure becomes, the less developers can afford to ignore the reliability issues found in traditional distributed systems.

What Does This Open Beta Mean for Developers?

The Agents API is best suited to the following types of scenarios:

  1. Coding and software engineering: Reading codebases, modifying files, running tests, fixing errors, and generating patches.
  2. Data analysis: Processing spreadsheets and logs, running scripts, and generating statistical results and visual outputs.
  3. Enterprise knowledge assistants: Combining file search, internal tools, and permission systems to perform cross-document queries.
  4. Research and report generation: Retrieving materials in stages, organizing evidence, cross-checking facts, and producing long-form documents.
  5. Back-office automation: Executing workflows that require multiple tools to work together but cannot be fully covered by fixed rules.

It is not necessarily suitable for every chat product. For simple question answering, short-form text generation, or one-off structured extraction, using the model API directly is cheaper and easier to control. The value of a managed agent runtime becomes apparent only when a task involves multiple steps, requires code execution or file operations, and may continue for an extended period.

Cost is also a variable that must be watched during the open beta. According to the reference materials, the Agents API itself is currently available to all developers in open beta without additional API usage fees, but model tokens, tool calls, file storage, and sandbox resources may still generate real costs. Developers should not interpret “no additional API charge” to mean that the entire task is free. An agent that repeatedly runs code and makes parallel calls to multiple tools can easily consume more resources than an ordinary conversational request.

OpenAI Hub: Suitable for Horizontal Evaluation at the Model Layer

For teams already using multiple models, the application-layer capabilities of the Agents API and the choice of model provider can be evaluated separately. OpenAI Hub provides a unified API compatible with the OpenAI format. Developers can use a single key to call mainstream models such as GPT, Claude, Gemini, and DeepSeek, making it suitable for comparative testing across model response quality, cost, and latency.

However, it is important to note that unified model API access does not mean that agent execution environments are completely unified as well. Sandboxes, tool permissions, long-running task state, and context compression still depend on the specific Agents API or runtime implementation. A more robust architecture is to decouple the model layer, tool layer, and execution layer: the model handles reasoning, tools handle business actions, the sandbox handles untrusted code execution, and the application layer handles permissions, state, and auditing. This way, replacing a model or adjusting the infrastructure in the future will not require rebuilding the entire business workflow.

Assessment: OpenAI Is Addressing the “Last Mile” This Time

Over the past year, discussions about agents have often focused on whether models are becoming smarter and whether they can plan autonomously. In practice, however, the issues that determine whether a project can move from demo to production are often less conspicuous engineering problems: Can the task finish? Can it recover after failure? Are files secure? Are tools controllable? Is long-context operation stable? Are costs predictable?

By bringing code execution, sandboxes, tool search, programmatic calls, cross-context tasks, and multi-agent orchestration together, the Agents API directly addresses these issues. Its value is not that it automatically turns every application into a super-agent, but that it reduces the amount of work developers must spend repeatedly building runtimes.

My assessment is that this will be highly useful for long-running applications involving coding, research, data processing, and similar workflows, but it will not replace mature workflow engines in the short term. For high-risk businesses, deterministic state machines, permission systems, and human approval will remain indispensable. The most practical approach is to let the Agents API handle open-ended steps that require judgment, while using traditional software engineering methods to constrain boundaries and side effects.

The real focus of the open beta is not merely the feature list, but whether OpenAI can make this runtime sufficiently stable, observable, and controllable. If it can enable an agent to continue completing tasks according to its objectives after hours or even days, while allowing developers to see every model decision, tool call, and resource expenditure, then cloud-based agent infrastructure will have truly arrived. Otherwise, it may remain an API that is richer in features but more expensive to debug.

References

  • ITHome: OpenAI Agents API Enters Open Beta: Introduces the Agents API open beta, code execution, sandboxes, long-running tasks, multi-agent support, and partner support.
  • GitHub: Can be used to view OpenAI’s publicly available related execution frameworks and developer ecosystem projects.

Related Articles

View All

Contact Us

We usually reply quickly during business hours

Scan WeChat

Support: Hub Assistant

WeChat ID: