Memories, searched by meaning
Agents remember and recall over MCP: private, team or org, in Postgres with pgvector.
Self-hosted memory, rules and skills for every coding agent, on every machine.
Claude Code memory and your personal rules live on one disk. Your containers, cloud environments, Cursor and Codex never see them.
Agents remember and recall over MCP: private, team or org, in Postgres with pgvector.
remember("pnpm test needs the local db",
visibility: "team", repo: "github.com/example/api")
recall("how do I run the tests?")
The most specific rule wins. A SessionStart hook injects them every session.
carrybrain hook claude-session-start
# prints additionalContext: the merged rules
# and syncs shared skills to ~/.claude/skills/
A repo is its git remote, so every machine matches it. Other tools sync or call get_rules.
# git@github.com:example/api.git is github.com/example/api
get_rules(repo: "github.com/example/api")
carrybrain sync cursor # .cursor/rules/carrybrain.mdc
The server hosts a dashboard at its root URL. Upload a skill once; every machine gets it.
SessionStart hook: carrybrain hook claude-session-start
One rule per key reaches the model. Lock org secrets and the override is refused.
Turn on scripting to run the merge.
| Tool | Rules arrive by | Memories through | Skills |
|---|---|---|---|
| Claude Code | SessionStart hook, every session | MCP: remember, recall, forget | Synced to ~/.claude/skills |
| Cursor | carrybrain sync cursor writes .cursor/rules |
MCP | Synced to Cursor’s skills folder |
| Codex | carrybrain sync codex writes AGENTS.override.md |
MCP | Synced to Codex’s skills folder |
| Any MCP client | The get_rules tool |
MCP | list_skills and get_skill tools |
Open source. One deployment per company, an API key for each person.
Postgres with pgvector and the server, embeddings on CPU.
git clone https://github.com/tanishq-khandelwal/carrybrain
cd carrybrain
cp .env.example .env # set POSTGRES_PASSWORD
docker compose -f infra/docker-compose.yml up -d
docker compose -f infra/docker-compose.yml logs server
# open the printed http://localhost:8787/setup?code=XXXX-XXXX-XXXX link,
# choose "Just me" or "My team"
Workers, Hyperdrive to your Postgres, Workers AI for embeddings. The dashboard ships as static assets.
git clone https://github.com/tanishq-khandelwal/carrybrain
cd carrybrain && pnpm install
# bindings, secrets and the deploy command: docs/deploy.md
# on the first request, wrangler tail prints the one-time setup link
Create an API key after setup, then on every laptop, container and cloud dev environment:
npx carrybrain install claude --url https://carrybrain.example.com --key <your API key>
# or only the MCP server, by hand
claude mcp add --transport http carrybrain https://carrybrain.example.com/mcp \
--header "Authorization: Bearer <your API key>"