Quick Start

One command installs shmem and sets it up. It wires every AI agent it finds (Claude Code, Codex, Gemini CLI, OpenCode), imports their past sessions, and picks an LLM to answer with. It asks no questions, and everything stays on your machine.

1. Install

curl -fsSL https://shmem.secondmoment.ai/docs/install.sh | sh

Works on macOS, Linux and Windows/WSL, on amd64 and arm64. By installing and using shmem you agree to the Self-Hosted Software Terms of Use.

2. Ask

shmem ask "what was I working on last week?"

You get real answers from your own past work, because setup already imported your agent history. From here on, new sessions in every wired agent are captured automatically.

To answer questions, shmem uses an API key already in your environment (Anthropic, OpenAI, Gemini, OpenRouter), a local Ollama model, or your signed-in Claude Code or Codex. If it finds none, setup says how to add one.

3. Use it from your agent

Your agents now have shmem's memory tools. Try asking one:

What did we decide about the auth architecture?

Let your agent do it

Prefer to hand this to your agent? Paste this prompt and it will install shmem, relay what was set up, and verify it works.

Install shmem: https://shmem.secondmoment.ai/docs/

Agents: the step-by-step guide written for you is the agent install guide.

Next steps

  • Other machines and teammates. shmem login puts this memory on your other machines and shares it with your team. See Hosted shmem.
  • Things to try. Prompts that show what memory changes: Things to try.
  • Choose your LLM. LLM providers covers local models and bring-your-own keys.
  • Everything else. The docs cover projects, sharing, the CLI and the MCP tools.