Skip to content

Quick start ​

Five minutes from nothing to an agent that remembers. You need Node 22 or newer on the machine where your agent runs.

1. Get a server ​

Carrybrain is a server your agents talk to. Pick one:

  • Hosted app. Open the Carrybrain app you were given access to and sign in. Its address is your server URL.

  • Self-hosted. Start your own in a few commands, then open the setup link it prints in its log:

    sh
    git clone https://github.com/tanishq-khandelwal/carrybrain && cd carrybrain
    cp .env.example .env          # set POSTGRES_PASSWORD (openssl rand -hex 24)
    docker compose -f infra/docker-compose.yml up -d --build
    docker compose -f infra/docker-compose.yml logs server   # the setup link is here

    Details, TLS and Cloudflare are in Self-hosting and Deploy to Cloudflare. A local server is at http://localhost:8787.

2. Create an API key ​

In the dashboard open Settings, API keys and create a key. Name it after where it will be used (laptop, codespaces-api, ci-readonly). The full key (cb_...) is shown once. Use a read-only key for CI and anything that should read memory without changing it.

3. Install on your machine ​

sh
npx carrybrain install claude --url https://memory.example.com --key cb_your_key

This checks the key, saves it to ~/.config/carrybrain/config.json (mode 600), registers the Carrybrain MCP server with Claude Code and adds the SessionStart and SessionEnd hooks. Your key is not written into Claude's config: Claude Code asks the CLI for the header each time it connects.

Using another agent, or several? Install for each, or let the CLI detect them:

sh
npx carrybrain install codex  --url https://memory.example.com --key cb_your_key
npx carrybrain install cursor
npx carrybrain install gemini
npx carrybrain install --all --yes   # Claude Code, plus Codex, Cursor and Gemini if their config dirs exist

For laptops, npm i -g carrybrain first gives hooks a stable path. The npx form is fine to try it out. For containers, CI and cloud agents see Environments.

4. Check it ​

sh
carrybrain doctor

Each line is a check with a fix when it fails: Node version, where the URL and key come from, server reachable, key valid, hooks, MCP registration, skills folders. Critical failures make the command exit with code 1.

5. Bring in what you already have ​

If you already keep rules or skills in CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules or personal skills, import them as your personal rules and skills:

sh
carrybrain import --dry-run     # preview, writes nothing
carrybrain import               # rules, skills and memories; asks before writing
carrybrain import --only memories   # or any of rules,skills,memories

import looks for these files on the current machine:

SourceRulesSkillsMemories
claude~/.claude/CLAUDE.md~/.claude/skills/*/SKILL.md~/.claude/projects/*/memory/*.md
codex~/.codex/AGENTS.md~/.agents/skills/*/SKILL.mdnone
gemini~/.gemini/GEMINI.mdnonenone
cursor~/.cursor/rules/*.md and *.mdcnonenone

Rules are split by heading into keyed user rules, skills are saved at user scope, carrybrain-* skill folders (synced from the server) are skipped, and nothing existing is overwritten unless you pass --overwrite. Claude Code memories are imported as private memories (only you see them); a project's memories are linked to its git repo, so agents recall them in that repo. Duplicates are skipped, so running it again is safe. Review the result in the dashboard under Rules, Skills and Memories. All flags are in the CLI reference.

6. Use it ​

Start a new agent session. You should see your rules injected and the carrybrain tools available. Try:

text
Remember that our integration tests need the local database running.
text
What do you know about how we run tests?

From a terminal you can do the same with carrybrain remember "..." and carrybrain recall "...".

Next steps ​

  • Rules: set a rule once, get it everywhere.
  • MCP: every tool the server offers, and setup for other clients.
  • Environments: dev containers, Codespaces, CI and cloud agents.

Carrybrain is open source under the MIT license.