LibreAI / AI Agents / openai-agents-js
// agents · openai/openai-agents-js

openai-agents-js

OpenAI's lightweight TypeScript framework for multi-agent workflows and voice agents.

★ 3.9k stars⑂ 989 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

openai-agents-js is an open-source ai agents project by openai (openai/openai-agents-js on GitHub). It has 3,898 GitHub stars and 989 forks, is released under the MIT license, and was last updated on GitHub on 7 October 2026.

GitHub stars
3,898
Forks
989
License
MIT
Last updated on GitHub
7 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide the first concrete outcome you want from it, so you can pick the right example, template or mode instead of exploring everything at once.

  2. Get the project

    Clone the repository (or install the published package) and skim its README quick start for the requirements for your platform.

  3. Install and configure

    Run the documented install step and set any required configuration — such as provider keys, data sources or local services — before the first run.

  4. Run your first task

    Execute the smallest documented example end to end, confirm the output is what you expected, then adapt it to your real data or workflow.

// features

Why people love it

Agents with handoffs

Agents carry instructions, tools, guardrails and handoffs, and can delegate to specialist agents or be called as tools.

Realtime voice agents

Low-latency spoken agents with tools, guardrails, handoffs and conversation history via the Realtime API.

Sandbox agents

Agents paired with a filesystem workspace and sandbox environment for longer-running work.

Guardrails and human-in-the-loop

Configurable input/output validation and built-in mechanisms to involve humans during a run.

Sessions

Automatic conversation-history management across agent runs.

Tracing

Built-in tracking of agent runs so you can view, debug and optimise workflows.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source so you can inspect, configure and run it locally.

    git clone https://github.com/openai/openai-agents-js.git
    cd openai-agents-js
  2. Install the SDK

    Add the agents package and Zod to your Node.js 22+, Deno or Bun project.

    npm install @openai/agents zod
  3. Run your first agent

    Create an Agent with instructions and run it — see the README examples for text, sandbox and realtime variants.

    import { Agent, run } from '@openai/agents';
    const agent = new Agent({ name: 'Assistant', instructions: 'You are a helpful assistant.' });
    const result = await run(agent, 'Write a haiku about recursion.');
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains openai-agents-js?

It is maintained by openai on GitHub (openai/openai-agents-js), where the source, issues and releases live.

Is it free to use?

Yes — it is free and open source under the MIT licence, which permits use, modification and redistribution, including commercially, with attribution.

Does it need a paid API key?

Yes, for OpenAI models you need an OpenAI API key; the SDK is provider-agnostic, so other providers can be configured instead.

How does it compare to the Python OpenAI Agents SDK or LangGraph.js?

Compared with the Python OpenAI Agents SDK or LangGraph.js, openai-agents-js's distinguishing focus is: openAI's lightweight TypeScript framework for multi-agent workflows and voice agents. Pick it when that focus matches your need; the alternative may suit you better if its broader or different scope is the priority.

How do I get started?

Clone https://github.com/openai/openai-agents-js (or install its published package), follow the README quick start to install and configure it, then run the smallest documented example — the Run section on this page mirrors those steps.

// keep exploring

Similar tools

AI Agents

Openai Agents Python

A lightweight, powerful framework for multi-agent workflows

★ 29.8k starsMIT
View guide →
AI Agents

OpenAgentsControl

AI agent framework for plan-first development workflows with approval-based execution. Multi-language support (TypeScript, Python, Go, Rust) with automatic t…

★ 4.9k starsMIT
View guide →
AI Agents

agent-framework

A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

★ 13.9k starsMIT
View guide →
AI Agents

nanobot

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat…

★ 48.8k starsMIT
View guide →
AI Agents

CAMEL

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

★ 17.8k starsApache-2.0
View guide →
AI Agents

OpenYabby

A voice-driven multi-agent assistant that orchestrates in realtime.

★ 130 starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if openai-agents-js is not the right fit.

Get openai-agents-js

Free and open — grab the source, star the repo, and start creating.