Reference
The shmem and shmem-mcp binaries expose the same memory system through two interfaces: a shell-callable CLI (for Claude Code, Codex, Antigravity, scripts) and an MCP server (for Claude Desktop, Cursor, hosted teams). The pages below cover both, then the transports and environment variables that configure them.
For which of these surfaces we promise not to break — and what happens when we have to — see compatibility.
Pages
- CLI — every
shmemcommand and flag- shmem import — bring in existing history
- shmem gateway serve — capture from an LLM gateway
- shmem admin — status, models, projects, groups
- MCP server — the
shmem-mcptools and their arguments - Transports — stdio, SSE and streamable HTTP
- Environment variables — everything
shmemandshmem-mcpread - Compatibility — what we promise not to break