Al Buddy Memory
Governed local memory for AI agents: facts are retired not overwritten, calls are audited
Al Buddy Memory is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 0.12.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add al-buddy-memory --env AL_BUDDY_MEMORY_AUDIT_KEY='<AL_BUDDY_MEMORY_AUDIT_KEY>' -- npx -y al-buddy-memoryAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"al-buddy-memory": {
"command": "npx",
"args": [
"-y",
"al-buddy-memory"
],
"env": {
"AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"al-buddy-memory": {
"command": "npx",
"args": [
"-y",
"al-buddy-memory"
],
"env": {
"AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"al-buddy-memory": {
"command": "npx",
"args": [
"-y",
"al-buddy-memory"
],
"env": {
"AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"al-buddy-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"al-buddy-memory"
],
"env": {
"AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add al-buddy-memory --env AL_BUDDY_MEMORY_AUDIT_KEY='<AL_BUDDY_MEMORY_AUDIT_KEY>' -- npx -y al-buddy-memoryOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.al-buddy-memory]
command = "npx"
args = ["-y", "al-buddy-memory"]
env = { AL_BUDDY_MEMORY_AUDIT_KEY = "<AL_BUDDY_MEMORY_AUDIT_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"al-buddy-memory": {
"command": "npx",
"args": [
"-y",
"al-buddy-memory"
],
"env": {
"AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }Or run: gemini mcp add -s user -e AL_BUDDY_MEMORY_AUDIT_KEY='<AL_BUDDY_MEMORY_AUDIT_KEY>' al-buddy-memory npx -- -y al-buddy-memory
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "al-buddy-memory": { "command": "npx", "args": [ "-y", "al-buddy-memory" ], "env": { "AL_BUDDY_MEMORY_AUDIT_KEY": "<AL_BUDDY_MEMORY_AUDIT_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
AL_BUDDY_MEMORY_DBThe SQLite memory file. A leading ~ is expanded.AL_BUDDY_MEMORY_OWNERWhose memory this is; the owner's policy applies to every call.AL_BUDDY_MEMORY_AUDITOptional JSONL file for the audit chain instead of the database's own table. One writing process per file.AL_BUDDY_MEMORY_AUDIT_KEYOptional HMAC key for the audit chain. Keep it away from the trail.AL_BUDDY_MEMORY_SEMANTICSet to off for keyword-only recall; the on-device embedding model is then never downloaded.AL_BUDDY_MEMORY_MODEL_CACHEWhere the on-device embedding model (about 90 MB, downloaded once) is kept.AL_BUDDY_MEMORY_INDEX_LIMITMost facts embedded in the background per start (0 skips it).
About Al Buddy Memory
Al Buddy Memory stores an agent's memory in a local SQLite file shared across clients. Its distinguishing rule is that facts are never edited. When something stops being true, it is invalidated, and the old fact stays queryable with provenance showing who asserted it: user input, AI inference, guardian or system. Raw text is the source of truth and embeddings are a disposable, model-tagged cache.
The design supports two time questions: what was true at a point in time, and what the store believed at a point in time. Erasure runs through a policy and is audited, with an optional HMAC key for the audit chain. Everything exports to one documented, versioned JSON format, so the memory can move between runtimes.
Run npx -y al-buddy-memory init and it creates the database and wires Claude Code, Codex and Cursor. Quick start uses keyword recall, while optional semantic recall downloads a roughly 90 MB on-device model once. No account, API key or metered service is needed. The README compares itself with Letta, Mem0, Zep and others, which is the author's own reading.
What it does
- Invalidate, don't overwrite
- Superseded facts are retired and remain queryable.
- Provenance
- Every node and edge records who asserted it.
- Time travel
- Ask what was true at one time or believed at another.
- Audited calls
- Every call is logged, with an optional HMAC-keyed audit chain.
- Portable export
- One versioned JSON export with a published schema.
- Local and keyless
- SQLite on disk with optional on-device embeddings.
Good for
- Keep one agent memory shared by Claude Code, Codex and Cursor
- Record that a past fact is no longer true while keeping history
- Audit what an agent remembered and why
- Export memory to move between runtimes
Pricing
Open source
Free, local, no account.
Al Buddy Memory FAQ
Does Al Buddy Memory need an account or API key?
No. The memory is a local SQLite file.
Does Al Buddy Memory download a model?
Only if semantic recall is on; it downloads about 90 MB once, and keyword-only mode avoids it.
Where is the data stored?
By default in ~/.al-buddy-memory/brain.db, configurable with AL_BUDDY_MEMORY_DB.
How do I set Al Buddy Memory up?
Run npx -y al-buddy-memory init with Node.js 22 or later.
Is Al Buddy Memory free?
Yes. Al Buddy Memory is open source, so you can use and self-host it for free.
How do I add Al Buddy Memory to Claude Code?
Run this command in your terminal: claude mcp add al-buddy-memory --env AL_BUDDY_MEMORY_AUDIT_KEY='<AL_BUDDY_MEMORY_AUDIT_KEY>' -- npx -y al-buddy-memory
What are the best alternatives to Al Buddy Memory?
The closest alternatives to Al Buddy Memory are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.



