OpenAI Agents SDK in TypeScript (openai-agents-js)

Hi everyone,

After closely following OpenAI’s updates on function-calling agents — especially the recent release of the Python SDK — I wanted to bring similar functionality to the Node.js ecosystem.

So I built “openai-agents-js”, a TypeScript SDK for building OpenAI function-calling agents with a familiar structure.

It currently supports:

  • Agent runner
  • Tool calling (single and parallel)
  • Streaming output
  • Input/output guardrails
  • Handoff support
  • Output schema enforcement
  • Tracing & logging (currently in development)

GitHub: yusuf-eren/openai-agents-js
NPM: package/openai-agents-js

If you’re building AI agents in TypeScript, I’d love for you to take a look. Feedback, issues, and contributions are more than welcome.

Thanks!

1 Like

:rocket: openai-agents-js now mirrors the Python SDK — almost feature-complete!

I’ve been building openai-agents-js (github) (npm) with one clear goal:
:backhand_index_pointing_right: Same functions, same classes, same architecture as OpenAI’s Python SDK — only the language is different.

And now, we’re almost there.

:white_check_mark: Tracing
:white_check_mark: Hosted Tools
:white_check_mark: MCP Support
:white_check_mark: Streaming
:white_check_mark: Handoffs
:white_check_mark: Fully aligned agent workflows

If you’ve used the Python SDK, you’ll feel right at home — just in TypeScript.
No custom wrappers, no opinionated abstractions. Just the same SDK, for the JS ecosystem.

GitHub: GitHub - yusuf-eren/openai-agents-js: OpenAI Agents SDK in TypeScript
NPM: openai-agents-js - npm
Docs: OpenAI Agents SDK

If this helps you, a :star: or share would mean a lot!