openai-agents-js is the JavaScript/TypeScript version of the OpenAI Agents SDK, designed to give developers a lightweight but powerful framework for building agentic workflows, voice agents, and tool-augmented LLM systems in JS/TS environments. The SDK is provider-agnostic, meaning while it’s deeply compatible with OpenAI’s APIs, you can also adapt it to use other backends or extension layers. At its core, it introduces primitives like Agents, Tools, Guardrails, and Handoffs, letting you define structured multi-agent systems in a modular way. The repo includes examples showing how to build agents that call local functions, chain between agents, validate input/output, stream responses, and interact in real time (e.g. voice agents via WebRTC). It also has tracing and debugging support so you can introspect how agents executed their workflows. Because it aligns closely with the Python Agents SDK, it aims for cross-language parity so that JS/TS devs can adopt similar agent architectures.

Features

  • JS/TS Agents SDK with primitives: Agent, Tool, Guardrail, Handoff
  • Streaming / realtime responses and voice agent support via WebRTC or WebSockets
  • Structured tool integration (wrap JS/TS functions as callable tools)
  • Built-in tracing and debugging for visualizing agent execution paths
  • Guardrails: input/output validation and safety constraints
  • Cross-language alignment with the Python Agents SDK, enabling consistent agent patterns across stacks

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow OpenAI Agents JS

OpenAI Agents JS Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OpenAI Agents JS!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Frameworks

Registered

2025-10-03