An open-source visual runtime for building, inspecting, and running multi-agent AI workflows. Turn one plain-English brief into a graph of specialists that reason, collaborate, and deliver.
Describe a task. The Composer selects specialists, places them on a canvas, and connects their inputs and outputs. You can edit the graph before running it and inspect each node's output during execution.
"Review this feature, challenge it from security and performance,
then publish a recommendation with the findings."
This creates a review graph with an architect, independent critics, and a synthesizer. Each specialist runs as a separate step.
| Generic AI workflow | Modular9 |
|---|---|
| One opaque context window | A visible graph of specialists |
| AI bolted onto a rule-based pipeline | AI-native reasoning at every node |
| Hidden orchestration | Inspectable fan-out, fan-in, filters, and live state |
| One fixed system prompt | Stackable skills and declarative reasoning contracts |
| Provider lock-in | Bring your own keys across eleven providers |
Modular9 executes the canvas as a directed acyclic graph. Independent branches run in parallel. Multiple parents can converge without overwriting one another. Look-ahead filters decide whether work should continue, using plain English instead of another rule builder.
Included workflow patterns:
- Adversarial verification: one specialist proposes, independent critics attack, one synthesizer resolves.
- Tournament selection: several specialists produce candidates, judges advance the strongest, one champion emerges.
- Grounded research: a knowledge base retrieves evidence before downstream specialists reason over it.
- Operational automation: specialist output moves directly into GitHub, Slack, Notion, email, webhooks, and 40+ other connectors.
Each plugin has a defined identity, domain expertise, typed configuration, and an optional public COVENANT.md contract. Specialists span engineering, security, data, operations, growth, content, media, SEO, and creative work across 13 curated packs.
A modifier changes how a specialist approaches the job while keeping its base identity intact. Add an OWASP focus to Code Review. Add Executive Summary Mode to any specialist. Stack several, reorder them, and control the exact injection sequence.
Attach a LOGIC.md contract to declare the reasoning strategy, input and output schemas, and quality gates. Modular9 supports chain-of-thought, ReAct, tree-of-thoughts, plan-and-execute, and graph-of-thoughts strategies through one typed specification.
Bring provider keys from Anthropic, OpenAI, Gemini, OpenRouter, Groq, Mistral, Cerebras, Together, DeepInfra, Hugging Face, or NVIDIA. Credentials are encrypted at rest and masked in the browser. Self-host the full stack with Docker when the workflow cannot leave your infrastructure.
| Layer | What ships today |
|---|---|
| Compose | Plain-English workflow generation, visual editing, templates |
| Reason | Specialist plugins, ordered skill modifiers, LOGIC.md contracts, quality gates |
| Execute | Parallel DAG engine, fan-in, look-ahead filters, retries, cancellation, live events |
| Ground | PDF, DOCX, Markdown, text, and URL ingestion with pgvector retrieval |
| Connect | 46 native connectors for development, data, communication, growth, media, and operations |
| Choose models | Live per-tenant model catalog across eleven providers, provider-aware fallback |
| Operate | Vercel web tier, BullMQ worker, Redis event stream, Docker self-hosting |
| Extend | Filesystem plugins, Zod-validated manifests, public COVENANT contracts |
- Node.js 22+
- pnpm 10+
- PostgreSQL
- Redis for queued execution, or inline execution for local development
git clone https://github.com/SingularityAI-Dev/modular9.git
cd modular9
corepack enable
pnpm install
cp .env.example .env.local
pnpm devOpen http://localhost:3001. To run workflows locally without Redis, set FORCE_INLINE_EXECUTION=true in .env.local.
Core environment variables
| Variable | Required | Purpose |
|---|---|---|
DATABASE_URL |
Yes | PostgreSQL connection string |
AUTH_SECRET |
Yes | Auth.js secret, generate with openssl rand -base64 32 |
REDIS_URL |
Cloud | BullMQ queue and event transport |
| Provider API key | Execution | At least one supported model provider key |
| OAuth credentials | Optional | Google or GitHub sign-in |
See .env.example for the complete configuration surface.
cp .env.example .env
docker compose up -dThe stack includes the app, worker, PostgreSQL, Redis, and Caddy.
The browser never waits on a serverless request while a workflow reasons. The web tier validates and enqueues, the worker executes without a serverless timeout, and Redis carries live events back to the canvas. Local inline execution uses the same DAG engine, so transport choices do not fork execution behavior.
| Layer | Technology |
|---|---|
| Web | Next.js 16, React 19, TypeScript, Tailwind CSS v4 |
| Canvas | React Flow, Zustand |
| Data | PostgreSQL, Drizzle ORM, pgvector |
| Runtime | BullMQ, Redis, Server-Sent Events |
| Auth | Auth.js v5 |
| AI | Vercel AI SDK, provider-native and OpenAI-compatible gateways |
| Contracts | LOGIC.md, COVENANT.md, Zod |
Read ARCHITECTURE.md for the full system design.
Modular9 is open source and in public beta. The core product is live and usable today. The project is moving quickly, so interfaces may still evolve before a stable 1.x release.
- Visual workflow Composer and editable React Flow canvas
- Parallel specialist execution with fan-out, fan-in, filters, cancellation, and live state
- 165 specialist plugins across 13 packs
- 46 native connectors plus Knowledge Base retrieval
- Live model catalogs and BYOK execution across eleven providers
- LOGIC.md reasoning contracts and COVENANT.md plugin contracts
- Local, Vercel/Render, and Docker deployment paths
- Lint, typecheck, coverage, and production-build quality gates
- Shareable workflows and team collaboration
- Workflow version history and run comparison
- Public API and expanded event triggers
- Labeled fan-in input slots for richer judge and synthesizer graphs
- More native connectors, including Linear, Jira, and Salesforce
- A smoother community plugin publishing and discovery path
Roadmap priorities are shaped in public. If one of these matters to you, open an issue with the problem you want solved and the workflow it unlocks.
Contributions are welcome, including bug reports, plugins, templates, tests, and documentation.
You can make a meaningful contribution without learning the whole runtime:
- Build a specialist: add a focused plugin under
src/plugins/. - Connect a tool: add a typed connector and auth test.
- Publish a workflow: contribute a reusable template that solves a real job.
- Strengthen the engine: improve execution, observability, security, or test coverage.
- Teach the next user: tighten docs, examples, onboarding, or accessibility.
Start with CONTRIBUTING.md. For substantial changes, open an issue first so we can agree on the shape before you invest the work.
pnpm lint
pnpm typecheck
pnpm test:coverage
pnpm buildEvery pull request should explain what changed, why it matters, and how it was verified.
Modular9 was created and is maintained by Rainier Potgieter, an independent founder and engineer in Durban, South Africa.
Try a workflow and tell us what worked or what broke. Reproducible bug reports help us improve the app.
Modular9 is available under the MIT License.
Please report vulnerabilities privately. Do not open a public security issue. See SECURITY.md for the reporting process and implemented controls.