Back to home

The Brain

Open-source workflow orchestrator for developers. Self-hosted, MIT-licensed, runs on your machine. v1.0 released 2026-06-15.

Get it on GitHub   Read the launch post

What it is

A workflow orchestrator with persistent run history. You define a workflow as a Python file — a sequence of named steps. The Brain runs it on whichever of the four triggers you registered, persists every step's result to a single Postgres database, and stops on the first failure with a clear error. brain history shows what ran. brain show <run-id> shows the per-step detail. brain diagnose produces a redacted zip ready to attach to a bug report.

It runs entirely on your machine. No SaaS account. No telemetry. No cloud lock-in. docker compose --profile api up -d and it's running.

The biggest thing about The Brain is what it deliberately doesn't do: it doesn't decide anything on its own. Workflows are scripted Python. The LLM step transforms text. The workflow file is the agent; The Brain is the runtime that runs it.

What v1.0 does

Quick start

docker pull ghcr.io/mihaibuilds/the-brain:latest

git clone https://github.com/MihaiBuilds/the-brain
cd the-brain
cp .env.example .env
docker compose --profile api up -d

Open http://localhost:8001 for the HTTP API. Run brain run examples/hello.py from the CLI.

Architecture

One Postgres database for run history, webhook secrets, and scheduler state — no Redis, no queue. Three processes (CLI, HTTP API daemon, watcher daemon) share that database; Compose profiles let you run any subset. Per-step subprocess spawn for shell and MCP steps means a crashing step never takes the runner down. Workflows are trusted Python files, not a YAML DSL — full editor support, full type checking, the workflow file is part of your trust boundary. The full architectural decisions are in the v1.0 launch post and the ARCHITECTURE.md in the repo.

Ecosystem composition

Memory Vault is the substrate that stores and retrieves. The Brain is the engine that runs workflows. Both run independently; both compose together via the derive-pattern — you write a Dockerfile that derives FROM ghcr.io/mihaibuilds/the-brain:1.0 and installs the MCP servers you want available, and the workflow's McpToolStep spawns them as per-step subprocesses. The same shape works for Memory Vault's MCP server, GitHub's, Sentry's, or your own. The Brain ships zero MCP servers in the stock image — composition is opt-in and explicit.

Honest limitations

Honest gaps documented up front build more trust than feature bullets that fall apart when someone actually tries them.

Open-core model

The Brain is and will always be MIT-licensed. The free tier — the runner, all four step types, all four trigger types, the HTTP API, the CLI, the scheduler and watcher daemons, structured logging, the diagnose bundle, the multi-arch Docker images — is the full runtime, not a crippled demo. A paid PRO tier is planned for teams: multi-user with workspace isolation, a hosted scheduler, a secrets vault, conflict resolution for shared workflow repos, additional integrations. v1.x stays free forever. Open-core, not bait-and-switch.

Build journey

The Brain was built in public over five weeks across five locked milestones, starting May 18 2026. Each milestone shipped with a blog post explaining the technical decisions and trade-offs:

Try it

→ Read the full v1.0 launch writeup