In short.
This is OpenAI's overview guide to building AI agents with its API, for developers deciding which runtime to use. The main catch is that it is a short orientation page: it has no setup steps, code examples or prices, and it links to further documentation whose contents are outside this account. The page names four starting points (Agents API, Agents SDK, Responses API, ChatKit). It compares the first three in one table covering where the agent runs, integration effort (low, medium, high), state between tasks, tool execution and execution environment. It also says the Agents API runs a managed Codex harness with automatic context compaction, multi-agent orchestration, programmatic tool calling and MCP server support, while the Agents SDK leaves deployment, storage and approvals to your application. The runtime behaviour described on the page is untested, and these descriptions are the publisher's own.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is the single documentation page at [https://developers.openai.com/api/docs/guides/agents.md], captured on 12 November 2026 as one file (selected-page.txt). The capture was complete for that page. No licence file or copyright notice was captured with it. The overview gives high-level comparisons only. All linked pages (quickstarts, overviews, tools, skills, prompt caching, observability, architecture, ChatKit and others) are excluded from the selected scope, and their contents are outside this account. Runtime behaviour is untested: every statement about product behaviour is the publisher's description, not verified behaviour.
The overview
What this resource is
The resource is the page titled Agents in OpenAI's API documentation, at [https://developers.openai.com/api/docs/guides/agents.md]. The .md address is the Markdown version of the documentation page. The page itself says Markdown versions are available by adding .md to the end of a page URL. The publisher is OpenAI, as shown by the host [https://developers.openai.com] and by the content, which describes OpenAI products.
The page defines agents as systems that can plan and complete tasks using tools, work with other agents, and keep context across steps. It then helps the reader pick a runtime based on where orchestration should run and who should manage state between tasks. The page shows no author, version number or publication date.
Overall assessment
As a decision aid, the page is clear and compact. Its main value is the comparison table, which puts the three runtimes side by side on the same rows. A reader can quickly see the trade-off between convenience and control: the Agents API is rated low integration effort, the Responses API high, and the Agents SDK sits in the middle.
It is an orientation page, not a tutorial. It contains no code, no configuration examples, no limits and no pricing. Everything it states is the publisher's own description, and it offers no benchmarks or independent comparisons. Treat it as a good first read before the linked quickstarts, not as a substitute for them.
Who it is for
The page suits developers and technical decision makers who already plan to use OpenAI models and need to choose how to structure an agent. The choice is whether to hand the agent loop to OpenAI, run it in their own application, or build directly on model responses. A beginner can follow the starting-point table, because it is phrased as goals (for example, add an embedded chat experience) rather than product jargon.
It is less useful to readers who want a vendor-neutral comparison of agent frameworks, since it only covers OpenAI options. It is not aimed at a specific programming language or skill level, and it does not say which languages the Agents SDK supports.
What the page covers
The page maps four goals to four starting points. To run an agent on the Codex harness managed by OpenAI, use the Agents API. To control the agent loop in your own application with reusable agents, tools and handoffs, use the Agents SDK. To work directly with model responses and control your own integration, use the Responses API. To add an embedded chat experience, use ChatKit.
It then compares the Agents API, Agents SDK and Responses API. The Agents API is described as being for long-running tasks where OpenAI manages the agent and saves its progress. It offers saved session configuration, turns and items, service-connected tools, application function handlers, and an optional sandbox that can be hosted by OpenAI, self-hosted, or left out. The Agents SDK is described as running inside your application. Its state lives in your storage and SDK sessions or in Responses conversation state, and it works with sandbox provider integrations. The Responses API is described as the option for calling models directly or building an agent from scratch. It uses manual history, response chaining or Conversations, plus hosted tools and tools your application runs.
The page says tool design, reusable skills and prompt caching apply across agent workflows, although their configuration and lifecycle can differ by API. For these topics it links to Using tools (function calling, MCP, hosted capabilities), Programmatic Tool Calling (orchestration with JavaScript and the configuration for each API), Skills (reusable instructions and the supported loading mechanisms) and Prompt caching (shared caching behaviour). Separately, it links to Agents API observability and usage for session accounting. That link is specific to the Agents API, and the page does not say it applies to the other runtimes.
Using it
Requirements
The page does not state prerequisites. It does not mention an account, API key, billing setup, access tier, supported regions, language runtimes or model availability. Access prerequisites for the described services are unknown from this evidence.
For the Agents API, the page says a sandbox is optional and can be hosted by OpenAI, self-hosted or absent. It does not say what a self-hosted sandbox requires. For the Agents SDK, the page says you supply your own runtime and sandbox provider integrations, without naming any providers.
How the runtimes differ
According to the page, the main differences are where the agent loop runs and who stores state. With the Agents API, OpenAI runs a managed Codex harness and keeps session configuration, turns and items. The page says this includes automatic context compaction, multi-agent orchestration, programmatic tool calling and support for MCP servers, and it links to an Architecture page.
With the Agents SDK, the SDK runs inside your application. Its runner handles the agent loop and handoffs between agents, while your application controls deployment, storage, approvals and runtime integration. With the Responses API, your application owns the loop, with optional hosted orchestration. You either manage history yourself, chain responses, or use Conversations.
The page ends with a warning: an Agents API session, an SDK session, a Responses conversation and a sandbox are different resources, and you should follow the state and cleanup instructions for the runtime you choose. The page does not explain how cleanup works.
Setup
This page has no installation or configuration steps. It links to an Agents API quickstart, an Agents SDK quickstart, a Responses guide and a ChatKit guide. Those pages are outside the selected scope and their contents are not covered here, so install commands, package names, authentication and environment setup are unknown from this evidence.
Example of using the page
The page contains no code example. The closest thing to a worked example is reading its table against a goal. Suppose a team wants a long-running task where the provider saves progress, and they want little integration work. The table points to the Agents API (low effort, OpenAI manages the agent and saves progress). Suppose instead the team needs its own approval step and its own database for conversation state. Then the Agents SDK fits better, since the page says your application controls storage and approvals. If they want to build everything from direct model calls, the table points to the Responses API, with high integration effort.
This walk-through is a reading of the published table, not a run of any of these products. Whether an option actually meets a given team's needs would have to be checked in the linked quickstarts and in a trial.
Assessment & evidence
Limitations and risks
The page is a short overview. It does not explain how agents are secured, how approvals work, or what happens to saved state and sandboxes after a task. It says saved Agents API sessions hold session configuration, turns and items, but it does not describe in detail what those stored items contain or give any retention rules. It does name the execution options. For the Agents API these are an OpenAI-hosted sandbox, a self-hosted sandbox or no sandbox. For the Agents SDK they are your runtime and sandbox provider integrations, and for the Responses API, your own execution environment. Detailed sandbox configuration, isolation and geographic location are not specified. These questions matter for production use and the page does not answer them.
The comparison is written by the vendor and covers only OpenAI options, so it does not weigh them against other frameworks. The effort ratings (low, medium, high) are the publisher's judgments, with no stated criteria. The page uses product names such as the Codex harness without defining them, and it does not say whether any of the products are in beta or likely to change. This overview gives high-level comparisons only. The contents of the pages it links to are outside this account.
Reasoning behind the assessment
The assessment rests on what the page itself says. The comparison table and the prose below it are specific and complement each other. For the Agents API, the table describes long-running tasks where OpenAI manages the agent and saves its progress, and says OpenAI runs a managed Codex harness. The paragraph below repeats that the Agents API runs the Codex harness and manages the underlying agent infrastructure. It adds automatic context compaction, multi-agent orchestration, programmatic tool calling and MCP server support. Saved progress is mentioned only in the table, not in the paragraph.
For the Agents SDK, the table describes execution and state: the SDK runs inside your application, and state lives in your storage and SDK sessions or in Responses conversation state. The prose separately says the SDK gives your application control over deployment, storage, approvals and runtime integration, and that its runner handles the agent loop and handoffs.
The page contains no commands or code, and the runtime behaviour it describes is untested. Features such as context compaction, multi-agent orchestration and MCP support are reported as the publisher's claims, not confirmed behaviour.
Alternatives and related options
The page compares three runtimes. The Agents API, rated low integration effort, is for long-running tasks where OpenAI manages the agent. The Agents SDK, rated medium, is for building agents with custom tools and workflows inside your application. The Responses API, rated high, is for calling models directly or building an agent from scratch. ChatKit appears only in the starting-point table, as a related option for adding an embedded chat experience, and is not part of the comparison. The page notes that tool design, reusable skills and prompt caching apply across agent workflows, although their configuration and lifecycle can differ by API.
The page does not mention or compare agent frameworks or hosted agent services from other vendors, so no claim is made here about how it compares with them. Readers who need a vendor-neutral view will need other sources.
Evidence base
The report is based on one captured file: the Markdown text of the selected page (5,432 bytes), taken from [https://developers.openai.com/api/docs/guides/agents.md] and captured on 12 November 2026. Every factual statement above comes from that file. The linked pages are outside the selected scope and their contents are not covered here. They are the Agents API quickstart and overview, the Agents SDK quickstart and overview, the Responses guide, ChatKit, Using tools, Programmatic Tool Calling, Skills, Prompt caching, observability, Architecture and Running agents. The runtime behaviour of the described products is untested.
Access & freshness
Costs
The page states no prices, rate limits, quotas or billing rules for the Agents API, Agents SDK, Responses API, ChatKit, hosted sandboxes or tool calls. Prices and billing terms for these products are unknown from this evidence.
The page does not say whether any of the products have free tiers.
Rights and reuse
The captured page carries no licence statement, copyright notice or reuse terms, and no licence file or notice was captured with it. The terms for reusing or redistributing this documentation text are therefore unknown from the evidence. The terms for using the described services are not stated on this page either, so they are also unknown. Link to the page rather than copying it unless you have confirmed the publisher's terms.
Freshness
The page shows no date, version or changelog. The copy described here was captured on 12 November 2026, so it reflects the page as of that capture only. This is a live documentation page for fast-moving products, so product names, options and links may change, and anyone relying on it should check the current page. The page does not say whether any product is new, in preview or stable.
Suggested next steps
Use the starting-point table to match your goal to a runtime. Then go on to the matching linked page: the Agents API quickstart at [https://developers.openai.com/api/docs/guides/agents-api/quickstart], the Agents SDK quickstart at [https://developers.openai.com/api/docs/guides/agents/quickstart], or the Responses guide at [https://developers.openai.com/api/docs/guides/migrate-to-responses].
This overview does not state pricing, data retention, sandbox or cleanup rules, so confirm them with OpenAI before committing. If the choice matters, build a small proof of concept in the runtime you shortlist and compare the effort against the ratings the page gives.
