CLI Reference

Every npx vektor command — from first-run setup to the interactive memory browser, REM cycle, and morning briefing.

All Commands

npx vektor setupFirst-run wizard. Walks through licence activation, memory test, and integration configuration. Run this once on a new machine.
npx vektor activateActivate your Polar licence key on this machine. Caches the result to ~/.vektor/licence.json — you won't be prompted again.
npx vektor deactivateFree up this machine's activation slot. Use this before moving to a new machine if you've hit the 3-machine limit.
npx vektor statusFull system health check — Node version, licence cache, DB path, Playwright, ONNX runtime, Cloak vault.
npx vektor testQuick smoke test. Boots the memory engine, stores a test memory, recalls it, runs briefing, and cleans up. Confirms everything is working.
npx vektor mcpStart the Claude MCP server. Exposes vektor_recall, vektor_store, vektor_graph, vektor_delta tools to Claude Desktop.
npx vektor tuiLaunch the interactive terminal memory browser. Navigate, search, add, delete, and inspect memories. Requires a TTY — run in a real terminal.
npx vektor remRun the REM dream cycle on your memory database. Compresses up to 50 fragments into 3 core insights. Safe to run while your agent is idle.
npx vektor briefingGenerate a morning briefing from the last 24 hours of memory. Outputs a structured summary to stdout — inject into your agent's system prompt.
npx vektor helpPrint the command reference with examples.

setup

Runs the full first-time configuration wizard. Activates your licence, tests the memory engine, and optionally configures Claude Desktop MCP integration.

bash
npx vektor setup

Run this once on each new machine. If you skip it, you can run individual commands manually (activate, test) instead.

activate · deactivate

Activates your Polar licence key on this machine. Once activated, the key is cached for 30 days at ~/.vektor/licence.json — no internet required for subsequent runs within that window.

bash
npx vektor activate

To activate non-interactively, set VEKTOR_LICENCE_KEY before running:

bash
# Windows PowerShell
$env:VEKTOR_LICENCE_KEY="0509B6D1-7D21-43E7-9840-F74A10207531"
npx vektor activate

# Unix / macOS
export VEKTOR_LICENCE_KEY="0509B6D1-7D21-43E7-9840-F74A10207531"
npx vektor activate

Each licence supports 3 machine activations. Free up a slot before switching machines:

bash
npx vektor deactivate

Hit the 3-machine limit? Manage your activations directly at polar.sh → your customer portal. Enterprise licences (10 seats) available at [email protected].

status

Prints a full system health report. Run this first when troubleshooting.

bash
npx vektor status
output
  SYSTEM STATUS

  Node.js       ✓ v20.20.1
  Licence cache ✓ found  (~/.vektor/licence.json)
  Licence env   ✓ VEKTOR_LICENCE_KEY set
  Memory DB     ✓ ~/vektor-slipstream-memory.db
  Cloak vault   ✓ found
  Playwright    ✓ installed
  ONNX runtime  ✓ installed

  vektor-slipstream v1.3.6

test

Runs a quick end-to-end smoke test. Confirms the engine boots, stores a memory, recalls it correctly, generates a briefing, and cleans up after itself.

bash
npx vektor test
output
  [##############################] 100% Done
  ✓ Memory engine booted
  ✓ Stored memory (id: 1)
  ✓ Recalled 1 result(s) — top score: 0.9741
  ✓ Briefing generated
  ✓ Test database cleaned up

  ✓ All tests passed. VEKTOR is working correctly.

If test fails with better-sqlite3 error: run npm rebuild better-sqlite3 in your project directory. This happens when Node.js is updated after installation.

mcp

Starts the Claude MCP server in stdio mode. Used by Claude Desktop to connect to your local memory database. See the DXT guide for the one-click install — use npx vektor mcp only if configuring manually via claude_desktop_config.json.

bash
npx vektor mcp
claude_desktop_config.json
{
  "mcpServers": {
    "vektor": {
      "command": "npx",
      "args": ["vektor", "mcp"],
      "env": {
        "VEKTOR_LICENCE_KEY": "YOUR-KEY-HERE",
        "VEKTOR_DB_PATH": "C:/Users/you/vektor-memory.db"
      }
    }
  }
}

tui

Launches the interactive terminal memory browser. Navigate your MAGMA graph, search memories, add new entries, adjust importance scores, and run briefings — all without writing code.

bash
npx vektor tui

Keyboard shortcuts

↑ ↓Navigate memory list
e or EnterOpen selected memory detail
AAdd a new memory
DDelete selected memory
EIncrease importance score
/Search memories
BGenerate briefing
TSwitch tab
QQuit

Windows: run in Windows Terminal or PowerShell. If you see garbled characters, run [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 first.

rem

Runs the 7-phase REM dream cycle on your memory database. Compresses up to 50 raw fragments into 3 distilled core insights. Safe to run at any time — designed to run while your agent is idle.

bash
npx vektor rem

Schedule it as a nightly cron job:

cron
# Run REM every night at 3am
0 3 * * * cd /path/to/project && npx vektor rem >> ~/vektor-rem.log 2>&1

Or trigger programmatically:

javascript
const memory = await createMemory({ ... });
const result = await memory.dream();
console.log(result); // { compressed: 47, retained: 3, ratio: '15.7:1' }

briefing

Generates a morning briefing from the last 24 hours of memory. Structured output — inject directly into your agent's system prompt at session start.

bash
npx vektor briefing
output
  ── MEMORY BRIEFING ──────────────────────────────────

  Yesterday: 12 new memories stored across 3 topics.
  Key decisions: TypeScript migration approved, API rate
  limits increased to 1000/min, deploy blocked on staging.
  Active projects: data-pipeline, auth-refactor, docs-v2.
  User preferences updated: prefers async/await over .then()

  ─────────────────────────────────────────────────────

Inject into an agent system prompt:

javascript
const memory = await createMemory({ ... });
const brief = await memory.briefing();

const systemPrompt = `You are a helpful assistant.
${brief ? 'MEMORY BRIEFING:\n' + brief : ''}`;

Environment Variables

VEKTOR_LICENCE_KEYYour Polar licence key. Set this to skip the interactive prompt on first run. Recommended: store in .env and load with dotenv.
VEKTOR_DB_PATHAbsolute path to your SQLite memory database. Defaults to ~/vektor-slipstream-memory.db. Use a project-relative path for per-project memory.
VEKTOR_AGENT_IDAgent identifier string. Used to namespace memories when multiple agents share a database. Defaults to default.
← Back to Docs DXT — Claude Desktop →