Install
Three install paths. Pick one. Mix later if needed.1. Run with an agent platform (recommended)
Already running OpenClaw or Hermes?skills/RESOLVER.md once per request, routes intent to the right skill, executes. New entity mentions create new pages. Daily cron runs enrichment overnight.
Scaffolded skills are first-class files in your agent repo — edit freely. To pull upstream modusbrain improvements later, modusbrain skillpack reference <name> diffs your local copy vs the bundle. The legacy skillpack install managed-block model was retired in v0.36.0.0; if you’re upgrading from an older release, run modusbrain skillpack migrate-fence once to strip the legacy fence and keep your existing skill rows.
To upgrade later: modusbrain upgrade runs schema migrations + post-upgrade prompts (chunker bumps, the v0.36.2.0 ZeroEntropy switch). Always TTY-only; non-TTY upgrades skip prompts with informational stderr lines.
2. CLI standalone
No agent platform, just shell + MCP-aware editor.IfThe init flow detects your repo size and suggests Supabase for brains > 1000 markdown files. To switch later:bun install -ghits a postinstall error (Bun blocks postinstall hooks in some environments), the CLI prints a recovery hint pointing at #218. Runmodusbrain doctorto diagnose, thenmodusbrain apply-migrations --yesmanually. The deterministic fallback isgit clone https://github.com/thebuildceo/modusbrain.git ~/modusbrain && cd ~/modusbrain && bun install && bun link.
~/.modusbrain/config.json (file plane) or env vars (OPENAI_API_KEY, ZEROENTROPY_API_KEY, VOYAGE_API_KEY, ANTHROPIC_API_KEY). Set via CLI:
modusbrain serve as a stdio subprocess against your local brain. Full walkthrough (both this local path and connecting to a remote brain), plus the brain-first protocol to paste into CLAUDE.md / AGENTS.md: Give your coding agent a memory.
3. MCP server (any MCP client)
modusbrain connect prints a paste-ready setup block, or
--install runs it and smoke-tests the token.
docs/mcp/:
docs/mcp/CLAUDE_CODE.mddocs/mcp/CODEX.mddocs/mcp/CLAUDE_DESKTOP.mddocs/mcp/CHATGPT.mddocs/mcp/PERPLEXITY.mddocs/mcp/DEPLOY.md— production deploy patterns
/admin, an SSE activity feed at /admin/events, DCR-style client registration, scope-gated read/write/admin access, and rate limiting.
Thin-client mode
Connect to someone else’s brain without running a local engine:docs/architecture/topologies.md.
Verifying the install
modusbrain doctor names the fix command in the message. Most issues are missing API keys or stale schema (modusbrain upgrade --force-schema).