Claude Code memory setup
One command: claude mcp add --transport http stremai https://www.stremai.com/api/mcp --scope user — then approve the sign-in in your browser. The --scope user flag makes the connection available in every project, not just the current directory. To verify it works, ask Claude Code to "store a memory: our staging database resets every Sunday," start a new session, and ask what it knows about staging. Claude Code instructions and auto memory keep working alongside it — StremAI adds the shared, cross-machine layer. Free to start; full guide at stremai.com/docs/claude-code-memory.
Verified with Claude Code and Claude Desktop; Cursor, Codex, Windsurf, OpenClaw, and other MCP clients are supported or in active verification.
Markdown versionOne-command setup
Run `claude mcp add --transport http stremai https://www.stremai.com/api/mcp --scope user`, then approve browser sign-in.
The `--scope user` flag keeps the connection available across Claude Code projects instead of limiting it to one directory.
Verify the connection
Ask Claude Code to store a memory: "our staging database resets every Sunday." Start a new session and ask what it knows about staging.
Claude Code instructions and StremAI memory can run side by side: instructions tell the agent what to do, memory captures what it learned.
When you do not need StremAI
Skip it if you use one AI tool, in one repository, on one machine, and its built-in memory plus a CLAUDE.md or AGENTS.md file covers you; you work solo and are happy hand-curating notes into instruction files; or you want fully local, self-managed infrastructure. Open-source MCP memory servers are a reasonable choice if you prefer running your own. StremAI earns its place when agents span multiple tools, machines, or teammates, and when you want memory that is shared, attributed, and user-controlled without operating the layer yourself.
FAQ
How do I verify Claude Code is using StremAI memory?
Store a memory: "our staging database resets every Sunday." Start a new session and ask what the agent knows about staging. A connected agent should recall the stored entry rather than asking you to repeat it.
Does StremAI replace Claude Code instructions?
No. Keep instruction files and rules for commands, conventions, and policy. StremAI adds the learned memory layer: decisions, pitfalls, and context discovered while agents work.
What is the markdown version of this page?
Use https://stremai.com/docs/claude-code-memory.md when an agent needs a plain-text copy without navigation chrome.
Start with a real connection
OAuth/browser sign-in is preferred. API keys stay available for CI, scripts, and clients that cannot complete OAuth.