These two SDKs share a word in their names but start from different places. Anthropic's Claude Agent SDK is Claude Code packaged as a library. Its docs say it gives you the same tools, agent loop and context management that power Claude Code, from Python or TypeScript. You get a working agent that can read and edit files, run shell commands and search the web before you write a single tool. OpenAI's Agents SDK is a small framework for wiring up your own agents. You define agents with instructions, tools, guardrails and handoffs, and a runner handles the loop.
Both are busy, MIT-licensed Python projects as of November 2026. claude-agent-sdk 0.2.189 came out on 25 November and needs Python 3.10 or newer. openai-agents 0.26.0 shipped on 24 November, also on Python 3.10+, and the repository already has 1.0.0 alpha releases tagged. OpenAI also publishes a separate JavaScript/TypeScript package.
The practical split is this: the Claude SDK hands you a capable, opinionated coding-style agent and asks you to restrict it, while the OpenAI SDK hands you building blocks and asks you to assemble the agent yourself.
How they compare
| Aspect | Claude Agent SDK | OpenAI Agents SDK |
|---|---|---|
| What you start with | The full Claude Code toolset (Read, Write, Edit, Bash and others) is available by default; allowed_tools auto-approves tools and permission_mode decides the rest. | An Agent with instructions and whatever tools you attach: Python functions, MCP servers or OpenAI hosted tools. |
| Models | Claude models only. The SDK runs a bundled Claude Code binary, which the pip package ships with. | OpenAI models by default, plus any OpenAI-compatible endpoint through Chat Completions, and LiteLLM or any-llm adapters that the docs call best-effort and beta. |
| Multi-agent | Subagents spawned for focused subtasks, defined in code or loaded from .claude/ folders. | Handoffs, where one agent passes the conversation to another, and agents called as tools. |
| Control points | Hooks: Python or TypeScript functions that run at set points in the agent loop, plus a permission system for tool approval. | Input and output guardrails, plus built-in human-in-the-loop mechanisms across runs. |
| Sessions and state | Sessions you can resume or fork; skills, commands, memory and plugins load from .claude/ the way Claude Code does. | Sessions that manage conversation history across runs, with an optional Redis backend. |
| Long tasks and voice | The agent works directly in a working directory you set with cwd. | SandboxAgent runs work inside a container (local Unix, Docker or hosted sandbox clients); realtime and voice agents are separate options. |
| Tracing | No built-in hosted trace viewer in the pages we read; you observe the stream of messages and hook events. | On by default and sent to OpenAI's Traces dashboard; switch it off with OPENAI_AGENTS_DISABLE_TRACING=1. Not available to Zero Data Retention orgs. |
| Auth and terms | API key authentication; Anthropic does not let third-party products offer claude.ai login or rate limits unless approved. Use falls under Anthropic's Commercial Terms. | Set OPENAI_API_KEY for OpenAI models; other providers use their own keys through the adapters. |
Price at a glance
| Plan detail | Claude Agent SDK | OpenAI Agents SDK |
|---|---|---|
| Free option | Not stated | Open source |
| How paid plans charge | Usage (tokens, credits) | No paid product |
| Cheapest paid plan | No monthly USD price published | No monthly USD price published |
Entry plans differ in what they include, so read the full pricing in the Claude Agent SDK and OpenAI Agents SDK reviews. From the same data as our AI tool pricing overview, checked November 2026.
Choose Claude Agent SDK if…
- Your agent's job looks like Claude Code's: working through files, running commands and editing code in a repository.
- You'd rather restrict a capable agent with permissions and hooks than build tools from scratch.
- You already use Claude Code skills, subagents or plugins and want the same setup in your own app.
- You're happy to commit to Claude models.
Choose OpenAI Agents SDK if…
- You want to pick or switch model providers, or mix providers across agents.
- Your design is several narrow agents that hand conversations to each other.
- You need voice or realtime agents, or a containerised sandbox per task.
- You want a hosted trace viewer without wiring up a third-party tool.
Researched November 2026 from each product's official documentation and pricing pages. Prices and features change often, so check the vendors' sites before you decide.
Sources
- github.com /anthropics/claude-agent-sdk-python
- github.com /anthropics/claude-agent-sdk-python/releases
- pypi.org /project/claude-agent-sdk
- code.claude.com /docs/en/agent-sdk/overview
- github.com /openai/openai-agents-python
- github.com /openai/openai-agents-python/releases
- pypi.org /project/openai-agents
- openai.github.io /openai-agents-python/tracing
- openai.github.io /openai-agents-python/models