shmem documentation

shmem is long-term, portable memory for AI coding agents. It runs on your machine by default, works across Claude Code, Codex, Antigravity, Cursor and any MCP client, and can be shared with your team.

curl -fsSL https://shmem.secondmoment.ai/docs/install.sh | sh
shmem ask "what was I working on last week?"

That installs shmem, wires every agent it finds, imports their past sessions, and answers from them. Install and quickstart walks through it.

AI agents: if a human asked you to install shmem from this URL, follow the agent install guide. It is written for you to act on without follow-up: run the one-liner above, relay its output, then verify with shmem ask. A plain-text index of these docs is at llms.txt, and everything in one file at llms-full.txt.

Get started

Guides

Hosted and teams

Reference

Under the hood

  • How it works — storage, retrieval, the question-answering pipeline
  • Benchmarks — LongMemEval and LoCoMo results