Install
npm install @openai/agentsProduction-ready TypeScript SDK with the same minimal primitives as the Python version, plus first-class browser support, HITL approval flows, and Express streaming.
Install
npm install @openai/agentsVersion
v0.8.5 · April 2026 · Node 18+
Best for
Full-stack agents, HITL-approved workflows, browser-side tools.
import { Agent, run } from '@openai/agents';
const agent = new Agent({ name: 'Assistant', instructions: 'You are a helpful assistant.',});
const result = await run(agent, 'What is 2 + 2?');console.log(result.finalOutput);Ready? Start Zero → Hero Step 1 →
| Date | Version | Changes |
|---|---|---|
| 2026-04-21 | 0.8.5 | Banner bumped to installed version 0.8.5. |
| April 9, 2026 | 0.8.3 | HITL approval flows; browser bundle improvements; Zod v4. |
| November 2025 | 0.3.2 | Initial TypeScript guide; Swarm migration; MCP. |
Note: Python implementation lives at OpenAI Agents SDK (Python).