Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/jsagir/mindrian-os-plugin/llms.txt

Use this file to discover all available pages before exploring further.

MindrianOS is configured through two files that work in tandem: ~/.claude/settings.json controls what Claude Code is permitted to do on your behalf, and ~/.mindrian.env (or the project-level .env.brain file) holds the environment variables that connect MindrianOS to the Brain API and tell it where to find your rooms. Neither file is required to get started — MindrianOS installs sensible defaults — but understanding both gives you precise control over permission prompts, the Brain connection, and session behavior.

The two config files

~/.claude/settings.json

Claude Code permission matchers that govern what MindrianOS hooks and scripts are allowed to do: file writes, shell commands, and web fetches.

~/.mindrian.env

Environment variables for the Brain API key, plugin root override, and the Phase 198 MCP-first flag. Chmod 600 — this file holds your key.

settings.json — permission matchers

Claude Code asks for approval each time a hook or script tries to do something new. On a first install you will see 10 or more prompts. You have two options:

~/.mindrian.env — environment variables

Create ~/.mindrian.env (or copy .env.brain.template from the plugin) and fill in the values you need. The file is loaded by lib/core/resolve-brain-key.cjs at every session start.
chmod 600 ~/.mindrian.env
The /mos:setup brain command writes this file for you when you configure the Brain.

Key environment variables

VariableDescriptionDefault
MINDRIAN_BRAIN_KEYYour Brain API key. Authenticates requests to the Brain with Authorization: Bearer <key>. Request a key at mindrian-os.com/brain-access.(unset — Brain disabled)
MINDRIAN_OS_ROOTOverride the plugin root directory. Use when developing a local clone of the plugin instead of the marketplace-installed copy.Resolved automatically from CLAUDE_PLUGIN_ROOT
MINDRIAN_MCP_FIRSTPhase 198 MCP-first flag. Set to 'cli' to route the sessionstart-coordinator and statusline through the MCP daemon, or 'all' to include stop-gate enforcement. Leave unset (the default) for fully local behavior.(unset — local mode)
MINDRIAN_BRAIN_URLOverride the Brain API endpoint. Defaults to https://mindrian-brain.onrender.com (moving to https://brain.mindrian.ai).https://mindrian-brain.onrender.com

Brain connection variables (advanced / legacy MCP path)

The HTTP path requires only MINDRIAN_BRAIN_KEY. The variables below are only needed if you are running the bundled mcp-server-brain or connecting to your own Neo4j/Pinecone infrastructure directly.
VariableDescription
SUPABASE_URLSupabase project URL hosting the Brain key/auth DB
SUPABASE_KEYSupabase service-role key (never share publicly)
NEO4J_URINeo4j connection URI (bolt:// or neo4j+s://)
NEO4J_USERNAMENeo4j username
NEO4J_PASSWORDNeo4j password
PINECONE_API_KEYPinecone API key for semantic search

Room location

MindrianOS stores your rooms and session state in two places:
1

Room artifacts — ~/MindrianRooms/

The default root for all rooms. Each room is a folder: ~/MindrianRooms/my-project/. You can open, edit, back up, and version-control these folders like any other directory. Run /mos:rooms to list all rooms registered on this machine.
2

Session state — ./.mindrian/

Per-project session state written to the current working directory. This includes the session binding, intent cache, and hook side-channel files. It is scoped to the project you started Claude Code from.
3

Local knowledge graph — room/.room-graph/room.db

A SQLite database inside each room folder. The entire local knowledge graph — nodes, typed edges, artifact metadata — lives here. It never leaves your machine.
Run mindrian-os doctor --all from the command line (outside Claude Code) to diagnose environment drift: missing keys, wrong workspace, stale hooks, and install-cache mismatches. Inside a session, use /mos:doctor or /mos:doctor --brain-smoke for a Brain-specific connectivity probe.

Build docs developers (and LLMs) love