For humans: one prompt
Paste this into your agent (Claude Code, Cursor, or any agent that can run commands and fetch a URL):memloom-setup (this runbook, condensed) and memloom-use (how to
use memloom well day to day).
For agents: ground rules
Everything below is yours to do autonomously, except two things that belong to the human:- The API key. Ask for
OPENROUTER_API_KEYwhen the step comes. If the human declines, continue in offline mode and tell them recall quality is degraded until a key is set. Never print the key into logs, chat, or command output. - Consent for capture and paid imports. Never run
memloom connect claude-codeor a non-dry-runmemloom importwithout the human naming the scope or approving the run.
Steps
1. Check Node
v20 or later. If older, stop and ask the human to upgrade Node first; npm will
silently skip the install otherwise.
2. Install and initialize
init creates ~/.memloom (store and config.env) and starts the daemon. Expect output
naming the config path and the daemon address http://127.0.0.1:4319.
3. Ask for the API key
Ask the human for their OpenRouter API key. With their key in hand, add this line to~/.memloom/config.env (on Windows: %USERPROFILE%\.memloom\config.env):
memloom stop, then
memloom reembed, then memloom init. See Configuration.
If the human declines the key, skip this step. Everything still works offline except
semantic recall quality, dedup, conflict detection, and entity indexing.
4. Register the MCP server
For Claude Code:npx -y @memloom/mcp
as a stdio server.
5. Connect Claude Code (consent required)
Ask the human which projects memloom may capture. Then:--project per project, or --all if the human explicitly approves capturing
everything. This installs two hooks in the Claude Code settings: session-end capture
(finished sessions are distilled into memories) and prompt-time recall (relevant memories
are injected into every prompt). Both edits merge with existing hooks and a one-time
backup is written first. See Automatic capture.
6. Import what already exists (consent required)
Bring in the memory files agents on this machine already keep:--dry-run. This import is free of
distillation calls.
Then session history, which does spend LLM calls:
--dry-run.
7. Verify
recall_memory with the same query and expect the same hit. Finish with: