2026-11-26 15:40 UTC

Anamnesis offers local AI-chat archiving and MCP search

state: watchingheat: mediumuncertainty: mediumrelevance: highagent-memory conversation-archiveHaitham

What is this?

Anamnesis is an MIT-licensed open-source project by Haitham (GitHub user devHaitham481). Its repository describes an available macOS/Linux tool that archives conversations from several AI products locally, searches them, and exposes memory tools to compatible agents through MCP. It reads local session files for some coding tools; web-chat histories require user exports. The project also documents optional encrypted syncing and a server the user controls for web-app access—so “local-first” does not mean every deployment is confined to one computer. The repository is the primary evidence; the supplied sources contain no independent verification of its performance, adoption, or security claims. A newer HN post describes Carry, a separate product with overlapping local chat-archiving and search goals.

Why it matters

A personal, portable archive could let users carry decisions and context between otherwise siloed AI tools, reducing repeated work and dependence on any one provider’s built-in memory. Anamnesis makes this concrete with local storage and an MCP interface; it also illustrates the trade-offs in making personal context portable, including setup, supported integrations, privacy and security. Carry’s later appearance suggests the problem is attracting more than one project, but the evidence does not establish adoption or a broader market shift.

Current assessment

What is new: Anamnesis is presented in its creator’s GitHub repository as an installable tool, not merely a future proposal. It stores conversation archives in local SQLite, offers keyword and semantic search, and provides MCP tools for compatible agents. The README lists automatic collection from local session files for Claude Code, Codex, Gemini CLI and Cursor; ChatGPT, Claude web/Desktop and Gemini web require exporting and importing history. It says only user/assistant messages are retained, with tool output, reasoning and injected system context skipped. The README claims search works locally, semantic search uses a 70 MB model downloaded on first run, and the tool does not call an AI model itself; these are project claims, not independently tested findings. For web-app access or cross-device use, the project documents optional syncing and a user-controlled server, with claimed end-to-end encryption and revocable access. The creator says setup asks before connecting tools or changing configurations. Significance: this could make personal AI context more portable across providers and agents, and give users control over an archive rather than leaving continuity solely to each service. Limits and uncertainties: integrations differ, web histories require manual exports, and the sources do not independently validate reliability, security, privacy in practice, or uptake. On Nov. 25, a separate HN post for Carry described saving chats from Gemini, ChatGPT, Claude and Grok as Markdown in a local folder, with search and handoff; its post supplies only a brief description and no linked technical documentation here. This is evidence of a related effort, not confirmation of Anamnesis features or adoption. Search results also surface unrelated projects named Anamnesis, so identity should be checked before combining coverage.

Measured heat

now 0 pts/hpeak 7 pts/hcomments 0/hpeers p21momentum: steady2 platformsage 196h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-18 12:23 (minted)⭐ origin echo-reconstructedThe GitHub repository is the primary artifact linked from the HN post; its README presents the project directly: “Never lose an AI conversat
Haitham (GitHub user devHaitham481) on github (echo) · attributed from hn.story.50544831 · published time unknown
—
11-18 11:12first on hacker news · published · lag ?Anamnesis – Local archive of your AI chats, searchable by any agent
devHaitham481
—
11-18 11:12amplified on hacker newshn.story.50544831
devHaitham481
peak 1 · 0 comments · 2% of case engagement
11-25 03:19amplified on hacker news 👑hn.story.50637995
iankit17
peak 29 · 19 comments · 98% of case engagement
11-18 12:20our radar first saw it · lag ?discovery anchor: hn.story.50544831—
pace: p67 vs 2096 stories at the 168h mark (now 196h old) — ahead of agent-skills-marketplace-launch (1.0x), behind drifted-sand-table-claude-integration (1.0x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAnamnesis – Local archive of your AI chats, searchable by any agent
Retrieved article excerpt

Open article · Retrieved 2026-11-18T12:21:36.301349+00:00

# [Anamnesis](https://raw.githubusercontent.com/devHaitham481/anamnesis/main/docs/logo.svg)

**Never lose an AI conversation again.**  
Every conversation with every AI tool, kept on your computer and searchable by all of them.

[PyPI](https://pypi.org/project/anamnesis-cli/)
[CI](https://github.com/devHaitham481/anamnesis/actions/workflows/ci.yml)
[License: MIT](https://github.com/devHaitham481/anamnesis/blob/main/LICENSE)
[Website](https://devhaitham481.github.io/anamnesis/)

[Claude Code](https://camo.githubusercontent.com/578504413a1efdfd4bd7b2d2382a27b186bf4196449c2650f18024418f99f9eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436c617564655f436f64652d6439373735373f6c6f676f3d636c61756465266c6f676f436f6c6f723d7768697465)
[Codex](https://camo.githubusercontent.com/0183890f639bc821fc172f5008a2df4ef4adf41ce5c554f51152d0cd4a36a5d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6465782d3030303030303f6c6f676f3d6f70656e6169266c6f676f436f6c6f723d7768697465)
[Cursor](https://camo.githubusercontent.com/e5906310f2fc54ea7c0d3b6cb0fef11dd13d88205e0f2d5f114e006e6f7983a1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f437572736f722d3030303030303f6c6f676f3d637572736f72266c6f676f436f6c6f723d7768697465)
[Gemini CLI](https://camo.githubusercontent.com/db8034b2c0986174380471a8fcaf1597f7a596cff7570eb4e3879a3186517ade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f47656d696e695f434c492d3865373562323f6c6f676f3d676f6f676c6567656d696e69266c6f676f436f6c6f723d7768697465)
[ChatGPT](https://camo.githubusercontent.com/2a8ca34a124a9e55a878ee5d160e1886646dfb98e3886b268a200fa8b4dce5b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436861744750542d3130613337663f6c6f676f3d6f70656e6169266c6f676f436f6c6f723d7768697465)
[claude.ai](https://camo.githubusercontent.com/f6020444744b9df7818b8dbbcc7620ca122887d79d8281490ae672b076e113b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636c617564652e61692d6439373735373f6c6f676f3d636c61756465266c6f676f436f6c6f723d7768697465)
[Gemini](https://camo.githubusercontent.com/14783f011b2c1776c52df26979e4fbca1011be5c8c35a85b270d4e5f370c6050/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f47656d696e692d3865373562323f6c6f676f3d676f6f676c6567656d696e69266c6f676f436f6c6f723d7768697465)

[Demo: anam status shows the archive across AI tools, anam searches it from the shell, and the terminal UI filters, opens and searches conversations with vim keys](https://raw.githubusercontent.com/devHaitham481/anamnesis/main/docs/demo.gif)

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.

## Install

```
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.

## Using it

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.

[anam status, then Claude Code answering a question from a decision made in ChatGPT](https://raw.githubusercontent.com/devHaitham481/anamnesis/main/docs/status.svg)

## In claude.ai, ChatGPT and on your phone

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 <name>`.

Only need your computers in sync? Use a folder

`anam share` on the first computer prints a pairing code; `anam join <code>` on the others. The default folder is `iCloud Drive/Anamnesis`; pass a path for Dropbox, Syncthing or anything else. Everything in it is end-to-end encrypted.

## Reference

All commands

```
anam setup                guided setup; safe to re-run
anam                      terminal memory browser
anam QUERY | search QUERY search from the shell  [--source chatgpt]
anam status               archive per tool, what's missing, connected tools
anam sync [--watch]       import new local history now (or keep watching)
anam import FILE...       import ChatGPT / claude.ai / Gemini Takeout exports
anam keep                 stop Claude Code deleting its sessions after 30 days
anam connect [TOOL|all]   claude-code, claude-desktop, cursor, gemini-cli, codex
anam disconnect TOOL|all
anam share | join | devices | unshare      sync computers through a folder
anam node deploy fly | link URL | status | activity | revoke | scope | wipe
anam connect claude-web   use your memory in claude.ai (also chatgpt-web)
anam mcp                  the MCP server (connected tools start it for you)
```

`connect` merges into each tool's config and writes a `.bak` first. MCP tools: `search_memory`, `recent_conversations`, `get_conversation`, `remember`.


Terminal UI keys


| Key | Action |
| --- | --- |
| `j` `k` · `g` `G` · `Ctrl+D` `Ctrl+U` | Move and scroll |
| `l` / `h` | Open a conversation / back to the list |
| `/` | Fuzzy-filter the list as you type; Enter searches every message |
| `Esc` | Clear the box, then back to the list |
| `/history [source]`, `/sync`, `/rename`, `/delete`, `/help` | Commands in the box |
| `Ctrl+Q` | Quit |


Web UI, API and configuration

`anam-web`, then open <http://127.0.0.1:8000>. Endpoints: `GET /api/sources`, `/api/threads`, `/api/threads/{id}/messages`, `/api/search?q=&source=`, `PATCH`/`DELETE /api/threads/{id}`, and `WS /ws` for live updates. To reach it from other devices, set `ANAMNESIS_HOST=0.0.0.0`, `ANAMNESIS_ALLOWED_HOSTS` and `ANAMNESIS_AUTH_TOKEN`.

Nothing needs configuring. Settings come from the environment or `.env` (see [`.env.example`](https://github.com/devHaitham481/anamnesis/blob/main/.env.example)). Data and logs live in `~/.anamnesis`.

## Contributing

Issues and PRs are welcome, especially importers for tools that aren't covered yet (Antigravity, Cursor's agent CLI).

```
git clone https://github.com/devHaitham481/anamnesis && cd anamnesis
uv venv -p 3.13 .venv && uv pip install -p .venv -e ".[dev]"
.venv/bin/pytest -q && .venv/bin/ruff check . && .venv/bin/mypy src
```

Code is in `src/anamnesis/`: `ingest/` (one parser per tool), `memory_mcp/`, `core/` (storage, search, sync), `node/`, `cli/` and `web/`.

## License

[MIT](https://github.com/devHaitham481/anamnesis/blob/main/LICENSE)
devHaitham48110
🟧 echo.github ⭐The GitHub repository is the primary artifact linked from the HN post; its README presents the project directly: “Never lose an AI conversatHaitham (GitHub user devHaitham481)——
🟧 hnShow HN: Carry – Save every AI conversations as Markdown, in a folder you Owniankit172919

Interpretation history

Decision trace