al-buddy-memory

v0.12.0
io.github.flytomoon/al-buddy-memory Checked 1 hour ago Published 1 month ago

Governed local memory for AI agents: facts are retired, not overwritten, and every call is audited.

Values you need

VariableWhat it is
AL_BUDDY_MEMORY_DBoptional The SQLite memory file. A leading ~ is expanded. Default: ~/.al-buddy-memory/brain.db
AL_BUDDY_MEMORY_OWNERoptional Whose memory this is; the owner's policy applies to every call. Default: owner
AL_BUDDY_MEMORY_AUDIToptional Optional JSONL file for the audit chain instead of the database's own table. One writing process per file.
AL_BUDDY_MEMORY_AUDIT_KEYoptional secret Optional HMAC key for the audit chain. Keep it away from the trail.
AL_BUDDY_MEMORY_SEMANTICoptional Set to off for keyword-only recall; the on-device embedding model is then never downloaded. Default: on
AL_BUDDY_MEMORY_MODEL_CACHEoptional Where the on-device embedding model (about 90 MB, downloaded once) is kept. Default: ~/.al-buddy-memory/models
AL_BUDDY_MEMORY_INDEX_LIMIToptional Most facts embedded in the background per start (0 skips it). Default: 5000

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add al-buddy-memory -- npx -y al-buddy-memory@0.12.0 mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "al-buddy-memory": {
      "args": [
        "-y",
        "al-buddy-memory@0.12.0",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "al-buddy-memory": {
      "args": [
        "-y",
        "al-buddy-memory@0.12.0",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "al-buddy-memory": {
      "args": [
        "-y",
        "al-buddy-memory@0.12.0",
        "mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.al-buddy-memory]
command = "npx"
args = ["-y", "al-buddy-memory@0.12.0", "mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: remember, recall, history, explain, mental_model, define_mental_model, invalidate, pin, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json