Local-first, shared long-term memory for AI agents: one SQLite database for Claude Code, omp and any MCP client
pip install agentmemdb==0.1.0 Copy PIP instructions
Getting started · Examples · Configuration · Tools · Architecture
AI agents forget everything when a session ends, and different agents never see what the others learned. agentmemdb gives them one long-term memory: a local SQLite file, exposed as 16 MCP tools, that every agent on your machine reads and writes.
You → Claude Code We're moving billing-api from MySQL to Postgres 17 for row-level security. Remember that. save_memory {"topic": "billing-api: move from MySQL to Postgres 17", "category": "decision", "importance": "high", …} ← {"status": "saved", "id": 1, "tags": "billing,database", "auto_tags_added": ["database"]} You → omp (next day) Why are we moving billing to Postgres? search_memory {"query": "why are we moving billing to postgres"} ← {"count": 1, "results": [{"id": 1, "topic": "billing-api: move from MySQL to Postgres 17", "snippet": "…we need row-level security to isolate merchants, which MySQL does not offer…"}]} The examples walk through the full session: appending from a second agent, attribution, duplicate warnings, threads and entities, with real responses.
Install it with any of these (macOS or Linux, Python 3.10+):
brew install harsh-gulhane/tap/agentmemdb # Homebrew pipx install agentmemdb # or: pip install agentmemdb uvx agentmemdb --check # or run it without installing, with uv agentmemdb --check shows where the database and config will live. Then connect your agents, using the server name memory everywhere so tool names match across clients (with uv, replace agentmemdb with uvx agentmemdb):
# Claude Code claude mcp add memory -s user -- agentmemdb // omp: ~/.omp/agent/mcp.json { "mcpServers": { "memory": { "type": "stdio", "command": "agentmemdb" } } } Claude Desktop, Cursor, VS Code, Codex and HTTP setups are in getting started. To have agents save and search without being asked, add the memory policy prompt to your CLAUDE.md or AGENTS.md.
{ "db_path": "~/.local/share/agentmemdb/memory.db", "auto_tags": { "database": "postgres|mysql|sqlite", "incident": "incident|outage" }, "instructions": "Search memory before answering questions about past work." } Environment variables, path resolution, sharing and backups: configuration.
git clone https://github.com/harsh-gulhane/agentmemdb && cd agentmemdb make install # uv sync: editable install plus dev tools make check # ruff, mypy --strict, pytest See CONTRIBUTING.md for the project layout and workflow.
agentmemdb stores memories unencrypted in a local file and makes no network calls. Read SECURITY.md for the security model, and report vulnerabilities privately through GitHub security advisories.
All 2 files in this release have provenance metadata.
mcp mcp-server ai-memory agent-memory sqlite local-first claude-code llm
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




