OpenAI Agents SDK
A strong pick. 6th of 9 AI SDKs and agent frameworks.
OpenAI's TypeScript framework for building agents. It gives you the agent loop, handoffs between agents, guardrails, tracing, sandboxed workspaces and realtime voice agents. It is actively maintained and growing fast, and it is a strong pick for teams that build on OpenAI models. It is still pre-1.0, minor releases sometimes break code, and it fits other providers less well than the AI SDK or Mastra.
Best for: Teams building multi-agent or voice agents on OpenAI models who want a small, official framework with tracing and hosted tools built in.
Scores
Overall7.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is a well-maintained official framework with unique voice and sandbox features and fast growth. That makes it a strong pick for teams building on OpenAI. For provider-neutral or long-running production agents, the AI SDK and Mastra are broader choices, and 0.x churn means you should pin versions.
- npm downloads ratio: About 14x year over year vs 4.1 median
- dev.to/alexcloudstar/ai-agent-frameworks-in-2026-langgraph-vs-mastra-vs-vercel-ai-sdk-vs-openai-agents-sdk-vs-pydantic-539b: Best when committed to OpenAI
- dev.to/gabrielanhaia/the-openai-agents-sdk-in-production-what-it-gives-you-and-what-it-hides-16a9: Production trade-offs
GPT-6.2 Sol: 7.8, likely 6.7 to 8.9
The SDK is a strong pick for new OpenAI-first agents, especially when realtime voice and handoffs are central. AI SDK is a better default for provider-flexible model calls and frontend streaming, while LangGraph.js fits workflows that need explicit graphs and checkpoints. Active maintenance and fast growth support the recommendation, with breaking type changes and limited TypeScript-specific production evidence keeping the range wide.
- openai.github.io/openai-agents-js: First-party Responses and Realtime support with typed agent primitives.
- nhimg.org/typescript-agent-frameworks-comparison: Peer comparison covers model routing, frontend integration, and checkpointing.
- github.com/openai/openai-agents-js/releases: Current release includes fixes and public type changes.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo and medianDownloadsRatio: Install growth is more than three times the catalog median ratio.
Needed by many5.4
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Many developers who build web apps now add AI agents, and this SDK does that job. Its strong fit for OpenAI models narrows the audience compared with provider-neutral peers. Voice and sandbox features widen it for some teams.
- dev.to/alexcloudstar/ai-agent-frameworks-in-2026-langgraph-vs-mastra-vs-vercel-ai-sdk-vs-openai-agents-sdk-vs-pydantic-539b: Recommended mainly for teams committed to OpenAI's platform
- github description: Multi-agent workflows and voice agents
GPT-6.2 Sol: 4.8, likely 3.6 to 6.0
The SDK serves teams building tool-using text agents or realtime voice features, a meaningful subset of JavaScript and TypeScript projects. It supports Node.js, Deno, and Bun, with limitations on edge and mobile runtimes. The developer survey measures use of orchestration tools across languages, so the share of JavaScript and TypeScript projects that need this approach remains uncertain.
- survey.stackoverflow.co/2026/ai/data: 4,400 responses to the agent orchestration question.
- openai.github.io/openai-agents-js/guides/troubleshooting: Supported server runtimes and edge, browser, and React Native limits.
Helps a lot7.6
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Handoffs, guardrails, sessions, MCP, tracing, realtime voice and sandbox agents make it a capable, readable framework with good types and docs. Reviewers name clear limits: guardrails only cover the first and last agents, there is no durable checkpointing, and support for other providers is weaker. Mastra and LangGraph offer more for long-running production workflows.
- dev.to/gabrielanhaia/the-openai-agents-sdk-in-production-what-it-gives-you-and-what-it-hides-16a9: Strengths, plus gaps in guardrails, checkpointing and tracing
- andrew.ooo/answers/mastra-vs-vercel-ai-sdk-vs-openai-agents-sdk-typescript-2026: Fastest prototype path; TypeScript SDK less mature than Python
- openai.github.io/openai-agents-js/guides/sandbox-agents: Sandbox agents available in the JavaScript SDK
- npm hasTypes: TypeScript-first with bundled types
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
Version 0.22.0 combines typed tools, approvals, handoffs, and tracing with a documented browser voice stack. For workflow recovery, the SDK offers serializable run state, while LangGraph.js supplies checkpointers. The beta provider adapter and an open report about DeepSeek tool calls show where compatibility can fray. Independent measurements of performance and coding-agent accuracy are sparse.
- openai.github.io/openai-agents-js: Typed tools, approvals, handoffs, and realtime voice examples.
- openai.github.io/openai-agents-js/guides/testing: Deterministic test doubles for text and realtime agents.
- nhimg.org/typescript-agent-frameworks-comparison: Compares run state, checkpoints, approvals, and frontend support.
- openai.github.io/openai-agents-js/extensions/ai-sdk: Beta provider adapter and unsupported tool features.
- github.com/openai/openai-agents-js/issues/2110: User reports a DeepSeek thinking-mode tool-call compatibility gap.
Holds up over time7.8
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
OpenAI staffs the project. In the last year it had 1,163 commits, 92 releases and 128 contributors, and only 24 issues are open against 459 closed. Frequent 0.x minors that break code are the main risk, and the vendor could shift priorities. OpenAI keeps investing in it, as the sandbox and harness work shows.
- github commitsLastYear / releasesLastYear: 1163 commits, 92 releases
- github openIssues / closedIssues: 24 open vs 459 closed
- openai.com/index/the-next-evolution-of-the-agents-sdk: OpenAI announced continued investment, with TypeScript to follow
- dev.to/gabrielanhaia/the-openai-agents-sdk-in-production-what-it-gives-you-and-what-it-hides-16a9: About one minor a month, with breaking signatures
GPT-6.2 Sol: 7.5, likely 6.3 to 8.6
OpenAI maintains the repository actively, with 1,163 commits in the past year and 73 npm versions. A user-reported tool error was fixed in the npm release one week after it was reported. Breaking type changes in 0.22.0 and a collaborator-only pull request policy leave more uncertainty about upgrade costs and long-term stewardship.
- github commitsLastYear and pushedAt: 1,163 commits in the past year and a push on November 20.
- npm versionsLastYear: 73 versions of the main package in the past year.
- github.com/openai/openai-agents-js/issues/2184: User reported the default tool error behavior on November 5.
- github.com/openai/openai-agents-js/releases: November 12 packages include the tool error fix and breaking type changes.
- github.com/openai/openai-agents-js/blob/v0.22.0/CONTRIBUTING.md: Pull requests are restricted to repository collaborators.
Used widely6.3
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Downloads grew from 0.68M to 9.7M per 4 weeks. That ratio of about 14x is far above the 4.1 median, so the project is gaining ground. The total is still below Mastra, LangChain.js and LangGraph.js, and far below the AI SDK. Stars (4k) and Bluesky attention are modest, and there is no dependents count, so the share of direct choices is uncertain.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 9.7M vs 0.68M, ratio about 14x
- github stars: 4,031 stars, below Mastra and AI SDK at 28-30k
- bluesky posts: 10 posts vs 43 for AI SDK and 60 for Mastra
- baeseokjae.github.io/posts/openai-agents-sdk-typescript-2026: About 1.5M monthly downloads in March 2026
GPT-6.2 Sol: 6.5, likely 5.1 to 7.9
Four-week downloads rose from 684,000 to 9.71 million, or 14.2×, well above the 4.1× catalog median and close to Mastra’s growth rate. Absolute installs still trail AI SDK, LangChain.js, LangGraph.js, and Mastra, while Bluesky attention sits between the LangChain projects and AI SDK. Repeated installs and the missing dependent count leave a wide range for how many projects chose the package directly.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo: 14.2× year-over-year install growth.
- medianDownloadsRatio and peers: 4.1× catalog baseline and 14.6× growth for Mastra.
- github stars and bluesky posts: 4,031 repository stars and 10 linking posts in 24 months.
- dependents: ecosyste.ms has no dependent count for this package.
- survey.stackoverflow.co/2026/ai/data: 23.8% of orchestration respondents used the SDK across language editions.
Vouched for6.1
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
OpenAI backs it directly, and Temporal, Trigger.dev and Portkey have built integrations for it. Independent comparisons treat it as a credible option but rarely as the TypeScript default, and they call it less mature than the Python version. There is no survey data on satisfaction.
- hackerNews top: Temporal integration for durable agents
- trigger.dev/docs/guides/example-projects/openai-agents-sdk-typescript-playground: Trigger.dev production integration guide
- andrew.ooo/answers/mastra-vs-vercel-ai-sdk-vs-openai-agents-sdk-typescript-2026: Independent review names Mastra as the default instead
GPT-6.2 Sol: 6.2, likely 4.9 to 7.5
Temporal has built a TypeScript integration for durable runs, currently in pre-release, and Graphlit includes the SDK in its public framework comparison app. Temporal’s survey found higher SDK use among teams that reported success with agents, but the result combines language editions and measures correlation. Public evidence of sustained production use and retention for the TypeScript package is limited.
- docs.temporal.io/develop/typescript/integrations/openai-agents: Temporal ships a pre-release TypeScript integration.
- github.com/graphlit/agent-harness-lab: Third-party comparison app runs the SDK alongside JavaScript peers.
- temporal.io/reports/state-of-development-2026: SDK use was 51.1% among self-reported successful teams and 30.2% among others.
Safe7.8
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The package has no known advisories, only 4 dependencies and an MIT licence, and a large company publishes it. The OpenSSF Scorecard has no data, so the release process could not be checked, and that keeps the range open. The high release cadence adds some upgrade risk.
- advisories total: 0 advisories
- npm dependencies: 4 runtime dependencies
- npm license: MIT
- scorecard: No Scorecard data
GPT-6.2 Sol: 7.5, likely 6.2 to 8.7
The MIT package has four direct dependencies, including three sibling packages, and the advisory snapshot lists zero known issues. OpenAI publishes through GitHub Actions and documents OIDC trusted publishing and required code-owner review. The maintainers also shipped a fix for default error wording that could prompt duplicate tool actions. Server tracing is enabled by default and can capture sensitive inputs and outputs, while the missing Scorecard and unverified publisher access widen the range.
- npm license and dependencies, advisories, scorecard: MIT, four direct dependencies, zero listed advisories, and no Scorecard result.
- npmjs.com/org/openai?activeTab=packages: npm lists GitHub Actions as the publisher for 0.22.0.
- github.com/openai/openai-agents-js/blob/v0.22.0/CONTRIBUTING.md: Documents OIDC publishing, provenance, and required code-owner review.
- github.com/openai/openai-agents-js/releases: The 0.22.0 release removed retry advice from default tool errors.
- openai.github.io/openai-agents-js/guides/tracing: Default server tracing and controls for sensitive span data.
Good
- Small API (Agent, Runner, handoffs, guardrails) that gets a working multi-agent app running quickly.
- First-class realtime voice agents and sandbox agents with persistent workspaces, which few TypeScript peers offer.
- Built-in tracing, MCP support and direct access to OpenAI hosted tools such as file search and code interpreter.
- Very active OpenAI-staffed repository with fast issue handling and only 4 runtime dependencies.
Bad
- Still 0.x after about 18 months, and minor releases can change signatures, so you need to pin versions.
- Tuned for OpenAI: other providers work through adapters, and their calls may not show up in the built-in tracing.
- Built-in traces live on OpenAI's platform, and the SDK has no durable checkpointing of tool progress.
- Its community and third-party ecosystem are smaller than those of the AI SDK, Mastra or LangChain/LangGraph.
The numbers
- npm downloads, 4 weeks
- 9.7M ×14 in a year
- GitHub stars
- 4k
- Commits, 12 months
- 1.2k
- npm version
- 0.22.0 Nov 2026
- Versions, 12 months
- 73
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (openai/openai-agents-js), npm (@openai/agents), OSV and the OpenSSF Scorecard.
AI SDKs and agent frameworks
- 9.0AI SDK
- 7.9OpenAI SDK
- 7.8Anthropic SDK
- 7.7Mastra
- 7.5LangGraph.js
- 7.4OpenAI Agents SDK
- 6.8LangChain.js
- 6.7Genkit
- 1.5LlamaIndex.TS