Carry your brain everywhere.

Self-hosted memory, rules and skills for every coding agent, on every machine.

Example queries
  1. pnpm test needs the local db. team github.com/example/api
  2. Server tests hit a real Postgres, never mocks. team
  3. CI runs lint, typecheck, migrate, then test. org
Sample memories, placed by meaning. Hover a point or ask; this sketch matches words, the server compares meaning.

Every machine starts from zero

Claude Code memory and your personal rules live on one disk. Your containers, cloud environments, Cursor and Codex never see them.

Memory stays on the laptop. Containers and cloud environments start empty.

What lives on the server

Memories, searched by meaning

Agents remember and recall over MCP: private, team or org, in Postgres with pgvector.

MCP tools
remember("pnpm test needs the local db",
         visibility: "team", repo: "github.com/example/api")
recall("how do I run the tests?")

Rules, merged by key

The most specific rule wins. A SessionStart hook injects them every session.

SessionStart hook
carrybrain hook claude-session-start
# prints additionalContext: the merged rules
# and syncs shared skills to ~/.claude/skills/

One repo, every machine

A repo is its git remote, so every machine matches it. Other tools sync or call get_rules.

Repo identity and sync
# 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

An admin dashboard, and skills that follow you

The server hosts a dashboard at its root URL. Upload a skill once; every machine gets it.

The Carrybrain dashboard overview in dark mode: counts of memories, rules, skills, teams and users, recent memories and recent rule changes. The Carrybrain dashboard overview in light mode: counts of memories, rules, skills, teams and users, recent memories and recent rule changes.
Search memories, edit rules per scope, lock policies, preview the effective rules for a repo, read the history. Invites, teams and personal API keys live here too.

SessionStart hook: carrybrain hook claude-session-start

Synced on every session start. The same name resolves user over team over org, and skills you remove disappear from disk.

Toggle a rule, read the merge

One rule per key reaches the model. Lock org secrets and the override is refused.

org
team
repo example/api
user
user_repo
Show

Turn on scripting to run the merge.

    Same rules in every tool

    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

    Run one server for the company

    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>"