Skip to content
Logo

Commands

The claude-second-brain CLI creates and manages brains registered in ~/.claude-second-brain/config.toml.

Usage

Run it without installing anything:

Global install

Install it globally to get the shorter csb alias. Every page in this reference uses csb; substitute npx claude-second-brain if you haven't installed it.

Available commands

ls is also available as list, rm as remove, and use as default or switch.

Display info

-h, --help

Show usage. Works on its own, after any command, or as csb help <command>.

csb --help
csb rm --help
csb help qmd

Environment variables

VariableDescription
CSB_AGENTSAgents to install skills for, comma-separated or all. Used by csb and csb skills when --agent is not passed.
CSB_USE_MISESet to 1 to always fetch node and pnpm with mise, even if pnpm 10+ is on your PATH.
CSB_ICONSnerd, emoji or none: icons in the git-remote picker. Nerd Font logos are on by default in Ghostty, WezTerm and kitty.
CSB_SKIP_SKILL_UPDATESSet to 1 to update outdated global skills without prompting.
CLOUDFLARE_API_TOKENAPI token with Artifacts Read and Edit. Used instead of your wrangler login.
CLOUDFLARE_ACCOUNT_IDCloudflare account to use when your login can see more than one.
CLAUDE_CONFIG_DIRWhere Claude Code reads its config. Skills for Claude Code go in its skills/ folder.

Exit status

Every command exits non-zero on failure (an unknown brain name, a missing config, a failed doctor check, a remote that could not be created) and writes the error to stderr.

Pressing Ctrl-C (or Esc) at a prompt cancels the whole command, prints Cancelled. and exits 130, the shell's usual code for an interrupt. Answering "no" to a confirm is not a cancel: csb rm then removes nothing and exits 0.