🧠the-brain

Reference

Technical reference for the-brain — CLI, configuration, API, and tools

Complete reference for every command, config option, API endpoint, and tool in the-brain.

CLI Reference

All CLI commands with every flag and option. 18 commands including init, daemon, consolidate, inspect, train, switch-context, health, wiki, dashboard, context, timeline, backend, docs, plugins, mcp, agent, user, and ext.

→ CLI Reference

Configuration Schema

JSON schema reference for ~/.the-brain/config.json. Every field documented with types, defaults, and environment variable overrides.

→ Configuration Schema

HTTP API

Daemon REST API at localhost:9420. Health, stats, timeline, consolidate, train, file ingest, and team-mode user management endpoints.

→ HTTP API

MCP Tools

26 Model Context Protocol tools across 4 phases. Memory CRUD, graph operations, brain management, training, pipeline, and meta-harness integration.

→ MCP Tools

Environment Variables

All environment variables: THE_BRAIN_HOME, THE_BRAIN_MLX_MODEL, THE_BRAIN_MLX_DEPS, remote mode vars, LibSQL config.

→ Environment Variables

Content Cleaner

Signal extraction from memory content. Removes XML wrappers, normalizes whitespace, handles edge cases in stored memory data.

→ Content Cleaner

Benchmarks

SPM Curator evaluation results (WildChat), Graph Memory detection accuracy, LoRA training convergence metrics.

→ Benchmarks

On this page