Claude Code plugin for persistent memory through XMem.
This package is inspired by claude-supermemory, but talks directly to XMem:
- loads relevant project memory on
SessionStart - stores a redacted transcript tail on
Stop - provides
xmem-searchandxmem-saveskills - includes commands for indexing, config, session checks, and logout
From Claude Code, install this plugin from the local folder once it is published or linked by the plugin marketplace flow for this repo.
Use environment variables. Do not commit secrets.
export XMEM_API_KEY="xmem_..."
export XMEM_API_URL="https://api.xmem.in"
export XMEM_USER_ID="your-user-id"XMEM_API_URL defaults to https://api.xmem.in. XMEM_USER_ID falls back to the local OS username; production API keys scope requests to the authenticated key owner.
Optional project config can live at .claude/.xmem-claude/config.json:
{
"apiUrl": "https://api.xmem.in",
"userId": "your-user-id"
}Prefer environment variables for API keys.
/xmem-claude:index- explore the current repo and save a project summary/xmem-claude:project-config- show configuration options/xmem-claude:session- check whether memory is configured/xmem-claude:logout- remove project-local config
xmem-search- search prior XMem memoriesxmem-save- save durable project knowledge