Skip to content
Tech News
← Back to articles

OpenAI Agents API

read original get AI Engineering" by Chip Huyen (O'Reilly) → more articles
Why This Matters

OpenAI is packaging the Codex agent harness into a managed API, taking over the hardest parts of agent infrastructure — session persistence, orchestration, context compaction and recovery — while developers supply tools and pick where code runs. That lowers the barrier to shipping long-running autonomous agents, but also deepens dependence on OpenAI's stack for the agent runtime, not just the model.

Key Takeaways
Worth a Look

AI Engineering" by Chip Huyen (O'Reilly) — If you're wiring up agents with OpenAI's Agents API, this O'Reilly book walks through building real applications on top of foundation models, from tool use and evaluation to deployment. It's a great companion for developers moving from API demos to production agent systems like incident-response bots and data analysts.

See AI Engineering" by Chip Huyen (O'Reilly) on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

The Agents API gives your application access to the Codex harness through an OpenAI-managed API.

OpenAI manages sessions, orchestration, context compaction, and recovery while your application provides tools and chooses its execution environment.

Agents can operate in a sandbox where they can execute code, edit files, connect to MCP servers, and produce artifacts.

Pricing

Model usage is billed at the selected model’s API rates. OpenAI tools use their standard rates, and OpenAI-hosted sandboxes use standard container rates.

Try an example

Try these complete examples:

Explore complete applications:

Incident response agent: investigate alerts and request approval for recovery actions.

Slack bot: investigate requests using connected workplace tools.

... continue reading