CLI

The unison CLI - auth, search, context recall, document and knowledge-graph commands, and admin operations, grouped for humans and shell agents.

unison-brain

The unison CLI is the complete brain surface, grouped for humans and shell-capable agents.

Install

npm i -g @unisonlabs/cli   # or: pnpm add -g / bun add -g / npx @unisonlabs/cli
unison auth login          # email OTP, no browser

Runs on Node or Bun — the published binary is plain compiled JS, nothing to build. Auth is terminal-only (email OTP). For CI/headless, set UNISON_TOKEN=usk_live_... instead of logging in.

Everyday commands

unison context "what did we decide about auth" --json
unison search "queue migration" -k 5
unison get /workspace/decisions/queue.md
unison write /private/notes/today.md -m "switched to pgmq" --tag infra
unison ingest --conversation session.json --source-ref session-42
unison remember --session ~/.claude/projects/.../session.jsonl   # curate a whole session
unison status

Command groups

GroupCommands
recallcontext, search, grep, get (alias cat), ls, tree, find, neighbors
writewrite, rm, tag, share, ingest, remember
graphentity ls/resolve/get/set, fact ls/add/correct/rm, timeline, links, link
adminreview ls/merge/distinct/merges/undo, jobs ls/stats/retry
authauth login/logout/status, auth keys create, invitations, workspaces

Useful flags everywhere: --json for machine consumption, --as-of for time-travel reads, --path-prefix to scope recall, --actor <id> (or UNISON_ACTOR) for delegation, --if-match for safe writes.

Point at a different backend with UNISON_API_URL or unison auth login --api-url <url>.

On this page