Claude Code + agimem
Give Claude Code persistent memory across projects, sessions, and machines.
Claude Code is Anthropic's coding agent. With agimem, it can store your conventions, architecture decisions, and debugging notes in a hosted memory that follows you between machines — and that your other AI tools can use too. Connect agimem as an MCP server with a single command.
Setup in 4 steps
Create a Capsule on agimem
Sign up at agimem.dev and create a Capsule from the dashboard. Each Capsule is an isolated memory space — create one per project or one for all your work.
Generate an API key
Click your Capsule and generate an API key. It starts with agm_ — copy it now, you won't see it again.
Add the MCP server to Claude Code
Run the command below with your API key. It saves the configuration without checking the key, so confirm the connection in the next step.
Start using memory
Run /mcp in a Claude Code session to confirm agimem is connected. Then ask Claude to remember something and verify it persists in a new session.
Fastest way: paste a prompt
Give this prompt to your Claude Code agent and it will configure everything automatically:
Agent prompt
Set up agimem as my memory server: https://agimem.dev/setup
Manual configuration
Run this command with your API key. The user scope makes agimem available in all your projects:
Terminal
claude mcp add --transport http --scope user agimem https://agimem.dev/api/mcp --header "Authorization: Bearer agm_your_api_key"
What your agent can do with agimem
- Store and recall coding conventions
- Remember project architecture across sessions
- Share context between multiple agents
- Keep research notes and findings persistent
- Track preferences and writing style
- Maintain state for long-running automations
- Organize memories with tags
- Set time-to-live for temporary data
Frequently asked questions
Can my team share the setup?
Yes. Add agimem to a .mcp.json file in your project root with "type": "http" and an Authorization header of Bearer ${AGIMEM_API_KEY}. Commit the file, and each teammate sets that variable to their own key on the same Capsule.
Can I use a different Capsule per project?
Yes. Run the command from that project with --scope local and that Capsule's API key. Local scope takes precedence over user scope.
Does this share config with Claude Desktop?
No, each is set up separately. Connect both to the same Capsule, ideally with a separate API key for each, and they share the same memory.
How is this different from CLAUDE.md?
CLAUDE.md holds instructions kept with your project. agimem gives your agent read-write memory that it can update as it works, and that follows you across machines and other MCP clients.
Ready to get started?
Create a free Capsule and connect Claude Code.