Anamnesis – Local archive of your AI chats, searchable by any agent Anamnesis, a command-line tool from developer devhaitham481, archives every AI conversation locally in SQLite and exposes the archive to Claude Code, Codex, Gemini CLI and Cursor over the Model Context Protocol (MCP), so any connected tool can search prior work done in another. The tool collects history in the background from session files the tools already write, searches by keyword and meaning locally in about a tenth of a second using a 70 MB local model, and requires no account, API keys or telemetry; it also offers `anam keep` to stop Claude Code deleting sessions after 30 days. Anamnesis installs via a curl script that provisions Python through uv, supports importing ChatGPT, claude.ai and Gemini exports, and lets users deploy a self-hosted "node" to sync machines and connect web apps as an MCP connector. Never lose an AI conversation again. Every conversation with every AI tool, kept on your computer and searchable by all of them. AI tools forget. Claude Code deletes sessions after 30 days, and none of your tools knows what you worked out in the others. Anamnesis keeps a permanent, word-for-word archive of all of them on your computer and gives it back to every tool over MCP https://modelcontextprotocol.io . Ask Claude Code "what did we decide about auth?" and it finds the answer, even if you worked it out in ChatGPT months ago. - Keeps every conversation, even after the tool itself deleted it. - Collects in the background, from the history your tools already write. - Searches by keyword and meaning, locally, in about a tenth of a second. - Stays yours: local SQLite and a small local model. No account, no API keys, no telemetry. It never calls an AI model itself. Anamnesis Greek ἀνάμνησις means "recollection": in Plato, learning as remembering what you already knew; in medicine, a patient's history, taken so nobody starts from scratch. curl -LsSf https://devhaitham481.github.io/anamnesis/install.sh | sh macOS or Linux Windows: WSL . Nothing to preinstall: the script https://devhaitham481.github.io/anamnesis/install.sh brings its own Python via uv https://docs.astral.sh/uv/ , then runs anam setup , which finds your AI tools, archives their history, and asks before it connects them or changes anything. Then restart your AI tools. That's it. Other ways, updating, uninstalling, troubleshooting Without the script: uv tool install anamnesis-cli or pipx install anamnesis-cli , then anam setup . Update: run the install command again; setup is safe to re-run. Uninstall: anam disconnect all remove Anamnesis from your AI tools' configs uv tool uninstall anamnesis-cli rm -rf ~/.anamnesis your memory; skip this to keep it Troubleshooting - anam: command not found : open a new terminal. - A tool doesn't use the memory: restart it. If anam status shows it as outdated , run anam setup . - Semantic search is off: the 70 MB model downloads on first run and needs internet once. Keyword search always works. Just keep working. Connected tools archive new conversations in the background and search the memory when earlier work comes up. anam status what's archived per tool, and what's missing anam auth decision search from the shell anam browse everything in the terminal vim keys, / to filter anam import chatgpt.zip add a ChatGPT, claude.ai or Gemini export anam keep stop Claude Code deleting sessions after 30 days | Tool | How | |---|---| | Claude Code, Codex, Gemini CLI, Cursor | automatic their session files, read-only | | ChatGPT | export: Settings → Data controls → Export data, then anam import | | claude.ai / Claude Desktop | export: Settings → Privacy → Export data, then anam import | | Gemini web | Google Takeout → My Activity → Gemini Apps , format JSON , then anam import | Only what you and the assistant said is kept; tool output, reasoning and injected system context are skipped. Re-importing is safe. Web apps can't reach your laptop, so you run a node : your own always-on copy of the memory, on a server you control. There is no Anamnesis cloud. It also keeps your computers in sync. anam node deploy fly 1. deploy once and link this computer or Docker, below anam node link https://your-node 2. on each other computer; you choose what it uploads anam connect claude-web 3. prints the steps also: chatgpt-web In the app you add https://your-node/mcp as a custom connector and sign in with the node password needs a paid claude.ai or ChatGPT plan; Gemini doesn't support connectors . anam node status and anam node activity show who used it; anam node revoke cuts an app off. Docker, security, cost Any server with Docker VPS, NAS, home server ; point a domain at it first: curl -O https://raw.githubusercontent.com/devHaitham481/anamnesis/main/docker-compose.yml printf 'ANAMNESIS DOMAIN=memory.example.com\nANAMNESIS NODE PASSWORD=%s\n' "$ openssl rand -base64 18 " .env docker compose up -d HTTPS via Caddy - Security: HTTPS plus end-to-end encryption AES-256-GCM of synced data, with a key only your computers and your node hold. Apps get revocable OAuth tokens, never the password. Wrong passwords are rate-limited. - Cost: one small machine. On Fly.io: 1 shared CPU, 1 GB memory and volume, stopped when idle. - Updates: docker compose pull && docker compose up -d , or re-run anam node deploy fly --app