/crosmos-recall and /crosmos-save skills for on-demand lookups and explicit notes.
Use this plugin when you want Claude Code to remember project decisions, preferences, and prior work without managing memory by hand. If you only need callable memory tools, use MCP instead.
Prerequisites
- Claude Code
- Node.js 18 or later
- A Crosmos API key from the Crosmos Console
- At least one Crosmos memory space
csk_ prefix.
Install
Run these inside Claude Code:node_modules to manage.
Authentication
The plugin reads your API key from~/.crosmos/credentials.json — the same file the Crosmos CLI and Console use, so if you have set up Crosmos anywhere it works without extra steps. Set it up in your terminal, not in the Claude session:
~/.crosmos/credentials.json or export CROSMOS_API_KEY. Your key is entered in the terminal, never in the Claude conversation.
Verify
How it works
Two lifecycle hooks run a single bundled script on Claude Code events. Everything runs in-process through thecrosmos SDK, secrets never leave your machine, and the hooks fail open, so memory being unavailable never blocks your session.
| Hook | When it runs | What it does |
|---|---|---|
SessionStart | A session starts or resumes | Recalls the most relevant memories for your project and injects them silently. |
Stop | At the end of each turn | Captures new conversation turns and saves them. |
/crosmos-recall— ask Claude to look something up on demand./crosmos-save— ask Claude to save a specific note when you want to be explicit.
Configuration
Configure the plugin with environment variables.| Environment variable | Purpose |
|---|---|
CROSMOS_API_KEY | API key. Overrides the credentials file. |
CROSMOS_API_BASE_URL | API base URL. Defaults to https://api.crosmos.dev. |
CROSMOS_SPACE_ID | Pin a memory space by ID. |
CROSMOS_SPACE_NAME | Resolve and pin a memory space by name. |
CROSMOS_DEBUG | Write a debug log to <tmp>/crosmos-claude.log. |
CROSMOS_SPACE_ID nor CROSMOS_SPACE_NAME is set, the plugin uses the first available memory space.
Troubleshooting
Recall or capture is not running
Check your status:No API key is configured
SetCROSMOS_API_KEY or run setup in your terminal:
No memory space is available
Create a memory space in the Crosmos Console. You can pin a specific space withCROSMOS_SPACE_ID or CROSMOS_SPACE_NAME.
Debug hook behavior
Enable debug logging:<tmp>/crosmos-claude.log.
Uninstall
Open the plugin manager in Claude Code and remove the crosmos plugin:Next steps
MCP
Connect Crosmos memory tools to AI clients.
Memory tools
See the callable memory tool schemas.