Introduction
Carrybrain is memory, rules and skills for AI coding agents, kept on a server you control and delivered to every machine and every tool you use. Claude Code memory and personal rules normally live on one disk. Your dev containers, cloud environments, Cursor and Codex never see them. Carrybrain moves them to one place and brings them back everywhere.
What it gives you
- Memories. Facts and decisions agents save with
rememberand find again withrecall, searched by meaning (Postgres with pgvector). Each memory is private, team or org visible, and can be tagged with a repo. See Memories. - Rules. Short, keyed instructions merged across
org,team,repo,useranduser_reposcopes. The most specific scope wins per key, you keep personal overrides, and admins can lock a key so nothing below it can change. A SessionStart hook injects the merged rules every session. See Rules. - Skills.
SKILL.mdplaybooks shared at org, team, repo or personal scope, installed where each agent looks for them and served over MCP to agents that have no native skills. See Skills. - A dashboard. The server also serves a web app for browsing and editing memories, rules and skills, managing users, teams and API keys, and reading the audit log.
- Self-hostable. Run it with Docker Compose or deploy it to Cloudflare. One deployment per company, or one for just you (personal mode).
How agents reach it
Every agent talks to the same server over MCP at https://your-server/mcp, authenticated with a personal API key. For Claude Code the CLI also installs a SessionStart hook that injects your rules, recent memories and a catalog of skills at the start of each session. Repos are identified by their normalized git remote (github.com/acme/api), so a repo matches on every machine whatever folder it is cloned into.
Who wins when instructions conflict
Rules come from different people, so the injected text states a trust order. Highest first:
- Locked company policy. Locked
orgorteamrules set by admins override everything. - Your own rules.
useranduser_reporules, written by you, override the repo's ownCLAUDE.mdorAGENTS.mdwhere they conflict. This is the point of personal overrides that follow you across machines. - The repo's
CLAUDE.md/AGENTS.md. - Team suggestions. Unlocked rules written by teammates are followed unless one of the above says otherwise.
Your direct request in a session always wins, and text inside a rule that tells an agent to ignore rules, reveal secrets or run commands is not followed. Memories are data, never instructions.
Where to go next
- New here? Follow the Quick start.
- Connecting a specific tool or a cloud agent? See MCP and Environments.
- Running your own server? See Self-hosting or Deploy to Cloudflare.
- Source and issues: github.com/tanishq-khandelwal/carrybrain. The CLI is on npm as
carrybrain.