~/.claude-mem/settings.json. The file is created automatically with defaults on first run. You can edit it directly or use the Context Settings Modal at http://localhost:37777 for live preview of changes.
Core settings
Available Claude models
Shorthand model names automatically resolve to the latest version:Skipping tools
You can control which tool executions are captured as observations. Edit~/.claude-mem/settings.json:
- Include
TodoWrite: Remove it from the skip list to track task planning in your memory - Include
AskUserQuestion: Remove it to capture decision-making conversations - Skip additional tools: Add tool names to reduce noise in your observations
Context injection settings
Claude Mem injects past observations into each new session. The Context Settings Modal athttp://localhost:37777 is the recommended way to configure these settings — it provides a live terminal preview showing exactly what will be injected at the start of your next session.
Accessing the Context Settings Modal
1
Open the web viewer
Navigate to
http://localhost:37777 in your browser.2
Open settings
Click the gear icon in the header. The settings panel opens on the right.
3
Adjust and preview
Change any setting and see the Terminal Preview on the left update in real time.
4
Auto-save
Settings are saved automatically as you make changes — no submit button needed.
Loading settings
Control how many observations are injected per session:Higher values give Claude more historical context but increase session startup time and token usage. The default of 50 observations from 10 sessions balances context richness with performance.
Filter settings
Control which observation types and concepts are included. Types — select any combination:
Concepts — select any combination:
Use the All or None buttons in the modal to quickly select or deselect all options.
Setting these manually in
~/.claude-mem/settings.json:
Display settings
Control how observations appear in the injected context:
The most recent N observations (set by Count) show their full narrative or facts. The remaining observations appear in a compact table format showing only title, type, and token counts.
Token economics toggles:
Advanced context settings
Full manual configuration example
Gemini provider settings
Use Google Gemini as the AI provider for observation processing. A free tier is available via Google AI Studio.
To activate Gemini:
OpenRouter provider settings
Use OpenRouter to access 100+ models for observation processing.
To activate OpenRouter:
System configuration
Data directory structure
Worker service management
The worker service is a background process managed by Bun. It starts automatically the first time you open a Claude Code session and continues running in the background.Custom worker port
If port37777 is already in use, configure a different port:
Debug logging
Enable verbose logging for the worker:Folder context files
Claude Mem can automatically generateCLAUDE.md files in your project folders containing activity timelines. This feature is disabled by default.
Enable it in
~/.claude-mem/settings.json:
Hooks configuration
Hooks are defined inplugin/hooks/hooks.json. They fire at each stage of the Claude Code session lifecycle.
Hook timeout recommendations
The
SessionStart smart-install step is fast (~10ms) when dependencies are already installed. It only runs the full install on version changes.Mode configuration
Modes configure the active workflow profile and language for observation processing.Version channel
Switch between stable and beta versions from the web viewer athttp://localhost:37777.
1
Open settings
Click the gear icon in the viewer header.
2
Find version channel
Locate the Version Channel section in the settings panel.
3
Switch versions
Click Try Beta (Endless Mode) for experimental features, or Switch to Stable to return to the production release.
Configuration best practices
Use defaults where possible
Use defaults where possible
The default configuration works well for most use cases. Start with defaults and only change settings when you have a specific reason.
Override selectively
Override selectively
Set only what you need in
~/.claude-mem/settings.json. Unset values automatically fall back to defaults.Restart worker after changes
Restart worker after changes
Most settings require a worker restart to take effect:Exception:
CLAUDE_MEM_SKIP_TOOLS changes take effect immediately on the next tool execution.Monitor logs after changes
Monitor logs after changes
After restarting the worker, check logs to confirm the configuration was applied correctly: