Quick Start
Before you start
Section titled “Before you start”- Node.js 20 or newer (Node.js 22 or 24 recommended)
- npm access to download the generated project’s dependencies
- About five minutes
You do not need a provider account or API key for the first run.
1. Create a starter
Section titled “1. Create a starter”npm create oma-app@latest my-omaThe interactive scaffolder asks for a starter and runtime. For the clearest introduction to scheduling, choose Multi-agent DAG Demo. The PR Review and Security Analysis starters show the same runtime in more opinionated workflows.
2. Let the no-key demo run
Section titled “2. Let the no-key demo run”The interactive command installs dependencies and runs npm run demo automatically. Scripted model responses drive the real task scheduler, parallel execution, aggregation, report writers, and offline Run Viewer.
The demo does not read a provider credential or make a model request. Installing the project still downloads packages from npm, and every generated report identifies the model responses as simulated.
To run the same demo again:
cd my-omanpm run demo3. Check the result
Section titled “3. Check the result”A successful run gives you three views of the same execution:
- Terminal progress shows tasks starting, completing, and unblocking after their dependencies.
- Markdown and JSON reports under
reports/make the result easy to read or process. - The HTML report opens the offline Run Viewer, where you can inspect the executed task DAG and task-level evidence.
At this point you have exercised real OMA orchestration. Only the model responses were scripted.
4. Switch to a real model
Section titled “4. Switch to a real model”For a cloud or OpenAI-compatible starter:
cp .env.example .env# Add your credential and model configuration to .env, then:npm run devAn Ollama starter uses your local Ollama service instead and needs no cloud API key. The scaffolder never downloads a model for you. See Providers for environment variables, compatible endpoints, and local tool-calling guidance.
Add OMA to an existing project
Section titled “Add OMA to an existing project”If you already have a TypeScript backend, install the library directly:
npm install @open-multi-agent/coreThen define a small team and give it a goal:
import { OpenMultiAgent, type AgentConfig } from '@open-multi-agent/core'
const model = process.env.OMA_MODEL ?? 'gpt-5.4'const agents: AgentConfig[] = [ { name: 'researcher', model, systemPrompt: 'Find the important facts.' }, { name: 'writer', model, systemPrompt: 'Turn the facts into a concise brief.' },]
const oma = new OpenMultiAgent({ defaultProvider: 'openai', defaultModel: model })const team = oma.createTeam('brief-team', { name: 'brief-team', agents })const result = await oma.runTeam(team, 'Produce a launch brief for our new API.')
console.log(result.success)Built-in tools are default-deny. Grant only the tools each agent needs; see Tool configuration before adding filesystem or shell access.
Control what the scaffolder runs
Section titled “Control what the scaffolder runs”# Write files only; do not install dependencies or run the demo.npm create oma-app@latest my-oma -- --no-install
# Install dependencies, but do not run the demo.npm create oma-app@latest my-oma -- --no-runMigrating from @jackchen_me/open-multi-agent? That package is deprecated; install @open-multi-agent/core instead.
Where next
Section titled “Where next”- Choose a Run Mode to decide between
runAgent(),runTeam(), andrunTasks(). - Examples for complete workflows you can run or adapt.
- Providers to configure hosted, OpenAI-compatible, or local models.