Every npx vektor command — from first-run setup to the interactive memory browser, REM cycle, and morning briefing.
npx vektor setup | First-run wizard. Walks through licence activation, memory test, and integration configuration. Run this once on a new machine. |
npx vektor activate | Activate your Polar licence key on this machine. Caches the result to ~/.vektor/licence.json — you won't be prompted again. |
npx vektor deactivate | Free up this machine's activation slot. Use this before moving to a new machine if you've hit the 3-machine limit. |
npx vektor status | Full system health check — Node version, licence cache, DB path, Playwright, ONNX runtime, Cloak vault. |
npx vektor test | Quick smoke test. Boots the memory engine, stores a test memory, recalls it, runs briefing, and cleans up. Confirms everything is working. |
npx vektor mcp | Start the Claude MCP server. Exposes vektor_recall, vektor_store, vektor_graph, vektor_delta tools to Claude Desktop. |
npx vektor tui | Launch the interactive terminal memory browser. Navigate, search, add, delete, and inspect memories. Requires a TTY — run in a real terminal. |
npx vektor rem | Run 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 briefing | Generate 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 help | Print the command reference with examples. |
Runs the full first-time configuration wizard. Activates your licence, tests the memory engine, and optionally configures Claude Desktop MCP integration.
npx vektor setup
Run this once on each new machine. If you skip it, you can run individual commands manually (activate, test) instead.
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.
npx vektor activate
To activate non-interactively, set VEKTOR_LICENCE_KEY before running:
# 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:
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].
Prints a full system health report. Run this first when troubleshooting.
npx vektor status
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
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.
npx vektor test
[##############################] 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.
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.
npx vektor mcp
{
"mcpServers": {
"vektor": {
"command": "npx",
"args": ["vektor", "mcp"],
"env": {
"VEKTOR_LICENCE_KEY": "YOUR-KEY-HERE",
"VEKTOR_DB_PATH": "C:/Users/you/vektor-memory.db"
}
}
}
}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.
npx vektor tui
↑ ↓ | Navigate memory list |
e or Enter | Open selected memory detail |
A | Add a new memory |
D | Delete selected memory |
E | Increase importance score |
/ | Search memories |
B | Generate briefing |
T | Switch tab |
Q | Quit |
Windows: run in Windows Terminal or PowerShell. If you see garbled characters, run [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 first.
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.
npx vektor rem
Schedule it as a nightly cron job:
# Run REM every night at 3am 0 3 * * * cd /path/to/project && npx vektor rem >> ~/vektor-rem.log 2>&1
Or trigger programmatically:
const memory = await createMemory({ ... });
const result = await memory.dream();
console.log(result); // { compressed: 47, retained: 3, ratio: '15.7:1' }Generates a morning briefing from the last 24 hours of memory. Structured output — inject directly into your agent's system prompt at session start.
npx vektor briefing
── 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:
const memory = await createMemory({ ... });
const brief = await memory.briefing();
const systemPrompt = `You are a helpful assistant.
${brief ? 'MEMORY BRIEFING:\n' + brief : ''}`;VEKTOR_LICENCE_KEY | Your Polar licence key. Set this to skip the interactive prompt on first run. Recommended: store in .env and load with dotenv. |
VEKTOR_DB_PATH | Absolute path to your SQLite memory database. Defaults to ~/vektor-slipstream-memory.db. Use a project-relative path for per-project memory. |
VEKTOR_AGENT_ID | Agent identifier string. Used to namespace memories when multiple agents share a database. Defaults to default. |