Learn
Shared across agents
Every agent pointed at the same endpoint reads and writes one SQLite file.
Shared hub
Your agents
Claude
Desktop · Code
Cursor
Chat · Composer
Windsurf
Cascade
MemoryLayer
~/.memorylayer/memories.db
Every agent reads & writes the same namespace — one local store, shared context.
Memories live at ~/.memorylayer/memories.db. SSE clients connect to localhost:7400/sse; stdio clients spawn their own process but use the same data directory.
SSE vs stdio
Note
SSE needs
memorylayer --key … running. Stdio passes MEMORY_API_KEY in env — no background server, same shared store.~/.claude/settings.json — stdio
{
"mcpServers": {
"memorylayer": {
"command": "memorylayer",
"args": ["--stdio"],
"env": { "MEMORY_API_KEY": "sk-ml-your-key-here" }
}
}
}Test cross-agent
# Agent A stores:
remember({ content: "prefers dark mode", namespace: "user" })
# Agent B recalls:
recall({ query: "UI preferences", namespace: "user", preview: true })