A local MCP that captures every word of your AI conversations on this machine — Claude Code, Cowork, OpenClaw, Cursor, Telegram — into one searchable index.
Copy the prompt → paste into Claude Code, Cursor, Cline, Continue or Zed → AI installs everything itself.
You discuss something important in one AI, continue in another, and a month later it just disappears. Even without bans, AI forgets every session.
В феврале 2026 Anthropic одним указом отключил всех юзеров OpenClaw. В мае — целые компании overnight. Country policy блокирует компании с >50% владения RU/CN/IR/KP. IP проверяется на каждый запрос — VPN не спасает.
Claude Code писал каждую сессию на твой диск в ~/.claude/projects/. Когда отключают API — файлы остаются. Memex вытащит их и отдаст через MCP любому локально доступному AI.
Your year of work isn't lost. Just the access channel.
One folder. One database. Any agent can ask.
Even ChatGPT Memory, Claude Memory (Pro/Max) and CLAUDE.md leave structural holes. memex closes all five.
memex_search takes an optional project filter — by default it can search wide, when you scope it, it stays inside. The boundary is your choice on every query.
Daemon watches your Claude Code and Cowork directories via FSEvents. Every new session captured within ~1.5 seconds.
Server-side instructions teach any connecting agent to call memex first — for any topic, name, or decision the user references.
Discussion in Cowork? Cursor sees it. Conversation in Claude Code? Continue can read it. Telegram chat with your AI bot? All searchable.
Cowork sessions spawn helper subagents. Their transcripts captured separately and linked to parent.
Anthropic decides when Claude Memory disappears. memex doesn't. The SQLite file on your laptop doesn't care about TOS updates.
MCP server (passive memory) installs with npm. Auto-capture daemon (live updates) installs separately. You decide.
Common questions about scope, devices, and privacy.
Memex живёт на одной машине — daemon ловит локальные файлы, SQLite строится локально. Три паттерна для multi-device сегодня:
~/.memex/data/memex.db — обычный файл, реплицируй через iCloud / Syncthing / rsync. Daemon пишет на основной машине, остальные читают через свой локальный memex MCP. Один writer, много readers.
~/.memex/inbox/ основной машины.
iCloud setup на macOS:
export MEMEX_DIR="$HOME/Library/Mobile Documents/com~apple~CloudDocs/memex"
⚠ Только один writer. Auto-capture daemon (memex-sync) запускай ровно на одной машине, остальные только читают. Параллельные writer'ы через filesystem sync могут корраптнуть WAL.
✅ Что memex делает: Живёт только на твоей машине, никуда не звонит, без API-ключей, без network access. OS-level права — читает только твой user.
❌ Что не делает: Не шифрует БД, не редактирует секреты которые ты вставлял в чаты, нет пароля на сам memex.
📦 Не добавляет риск — концентрирует. Твоя AI-история уже на диске в plain text (Claude Code JSONL, Cursor state.vscdb, Cowork files, Obsidian markdown, Telegram local DB). Memex консолидирует в один SQLite. Те же данные, в одном месте вместо пяти.
🛡️ Топ-рекомендация: FileVault. На macOS: System Settings → Privacy & Security → FileVault → Turn On. Full-disk AES-256 на уровне OS — закрывает ~80% реалистичных угроз (украденный ноут, кража backup, malware без root). На Linux то же делает LUKS.
Сегодня: memex ловит только то что на твоём ноуте. Phone-based AI (ChatGPT mobile, Claude iOS) и web-only сессии (Claude.ai web, ChatGPT в браузере) не пишут файлы тебе на диск — memex'у нечего читать.
Workaround'ы: Для Telegram-ботов — ручной export → дроп в inbox. Для ChatGPT — export данных через Settings, парсер в roadmap'е.
Roadmap: Telegram-бот (код написан в bot/) для mobile capture — пересылаешь мысли и сообщения с телефона, индексируется автоматически на ноуте.
Да. ~/.memex/data/memex.db — обычный SQLite-файл. Три команды на старом ноуте, три на новом — вся история переезжает вместе с FTS5-индексом. Точные команды — в README → Миграция между устройствами.
Memex не зависит от твоего provider-аккаунта — читает файлы которые уже на твоём диске. Даже после бана твои Claude Code сессии в ~/.claude/projects/ остаются на месте. Memex индексирует их и отдаёт через MCP любому локально доступному AI (Llama, Qwen, или Claude через другой аккаунт). Твоя работа переживает канал доступа.
The memory market in 2026 is large and divided. Each product is good at its own thing.
| memex | Mem0 | claude-mem | ChatGPT Memory | Anthropic Memory | |
|---|---|---|---|---|---|
| Audience | AI power user, own archive | Devs building AI agents | Solo dev in Claude Code | Every ChatGPT user | Every Claude user |
| What's stored | Verbatim (raw) | Extracted facts | AI-compressed obs | Vendor-controlled | Filesystem |
| Where | On your laptop | Cloud / complex self-host | On your laptop | Vendor's cloud | Vendor's cloud |
| Sources | 5 (incl. Telegram) | AI chats only | Claude Code only | ChatGPT only | Claude only |
| API key needed | ✗ Not needed | ✓ + billing | ✗ Not needed | bundled | bundled |
| Recovery after ban | ✓ Reads from disk | ✗ if cloud | ~ Claude Code only | ✗ | ✗ |
| Cost | $0 forever | $19–249/mo | $0 | bundled | bundled |
| Open source | ✓ MIT | ✓ Apache 2.0 | ✓ MIT | ✗ | ✗ |
memex is MIT-licensed and not VC-funded. The code on GitHub IS the product — forkable, runnable forever, and impossible to quietly kill via acquihire.
Rewind/Limitless got bought by Meta and shut down their Mac app on December 19, 2025. Local-first tools die when their owners cash out.
Memex can't — there's no central owner to buy.
Two paths. Pick the one that fits.
Already chatting with a CLI agent (Claude Code / Cursor / Cline / Continue / Zed) on your laptop? It installs memex in 2 minutes — clones the repo, wires the MCP config, turns on auto-capture. Web agents (ChatGPT, Claude.ai) can't do this — for them, use the manual install below.
Install memex on this machine. Memex is a local-first AI memory tool — it captures my AI conversations across Claude Code, Cowork (including subagents), Cursor, Obsidian, and Telegram exports into a searchable SQLite index that any MCP-compatible agent can query through 11 standard tools. Repo: https://github.com/parallelclaw/memex-mvp
⚠ Prerequisite: this prompt only works if you are running INSIDE an AI agent that has direct access to my laptop's shell (terminal) — i.e. one of: Claude Code (CLI), Cursor, Cline, Continue, or Zed. Web-based agents (ChatGPT in browser, Claude.ai web, Claude Desktop without tools, etc.) cannot execute git/npm/file operations on my machine — for those, point me to the manual install at https://memex.parallelclaw.ai/#quickstart instead. If you are NOT a CLI-based agent with shell access, stop now and tell me to use the manual install path.
Do these five steps in order. Show each command before you run it. Stop and ask if anything fails or looks wrong.
1. Clone and install
- Suggest a parent directory (default: ~/Documents). Confirm with me.
- cd into that directory
- git clone https://github.com/parallelclaw/memex-mvp
- cd memex-mvp
- npm install
Verify: server.js exists; npm install completed without fatal errors.
2. Wire memex into my MCP client
- You're running inside one of: Claude Code, Cursor, Cline, Continue, Zed.
Tell me which one you've inferred and which config file you'll edit.
Common locations:
Claude Code → ~/.claude/config.json (or platform-specific equivalent)
Cursor → ~/.cursor/mcp.json
Cline → VS Code settings.json (cline.mcpServers)
Continue → ~/.continue/config.json
Zed → ~/.config/zed/settings.json (context_servers)
If unclear, ask me.
- Read the existing config (if present). Show me a diff before saving.
- First, get the ABSOLUTE path to the node binary — GUI apps (Cursor, Cline, Claude Desktop) on macOS often don't inherit shell PATH, so a bare "command": "node" fails with `spawn node ENOENT`. Especially true for nvm users (node lives at ~/.nvm/versions/node/<ver>/bin/node). Run:
which node
Capture that path. If it's a shim (e.g. ~/.asdf/shims/node) — also run `realpath $(which node)` to resolve to the real binary.
- MERGE this entry into mcpServers — never overwrite other servers I have:
{
"mcpServers": {
"memex": {
"command": "<absolute node path from which node>",
"args": ["<absolute path to memex-mvp/server.js>"]
}
}
}
Both paths must be absolute. Get the memex-mvp path from `pwd` inside the cloned directory.
- If the config file doesn't exist, create the parent directory and write a minimal valid file with just memex.
Verify: re-read the file after save; confirm memex entry is present and both `command` and `args[0]` are absolute paths.
3. Turn on live auto-capture (recommended)
- From the memex-mvp directory: npx memex-sync install
- Then npx memex-sync status — should print "daemon installed", "running (PID …)", "watching N sessions".
Verify: status output shows a non-zero PID.
4. Backfill existing history (recommended on first install)
- The daemon only catches NEW sessions going forward. To index everything already on disk, run:
npx memex-sync scan
- This walks ~/.claude/projects/, Cowork sessions, Cursor state.vscdb, and any configured Obsidian vaults once, ingesting whatever exists.
- Optionally also: npx memex-sync backfill-projects — tags older conversations with their project_path so memex_list_projects works on them.
Verify: after scan, npx memex-sync status shows a non-zero "ingested" count.
5. Tell me what to do next
- Tell me to fully quit and reopen the MCP client (Cmd+Q on macOS) so it picks up the new memex tools.
- After restart, suggest I try any of these:
• "show me what memex has in memory" — triggers memex_overview
• "what projects has memex captured" — triggers memex_list_projects
• "search memex for [recent topic I worked on]" — triggers memex_search
These confirm everything works end-to-end.
Safety rules — read these before starting:
- If `node` or `npm` aren't installed, stop and tell me to install Node.js (recommend nvm.sh). Don't try to install Node yourself.
- Never run rm, sudo, or anything destructive without explicit confirmation from me.
- Show every command before running it. If I say "no" or "stop", halt and explain.
- If a step fails, do NOT auto-retry or auto-fix — tell me what failed and ask how to proceed.
- When editing my MCP config, always preserve existing entries. If you can't merge cleanly, abort and tell me.
Begin by greeting me, asking which directory to clone into, and confirming which MCP client I'm using.
Установи memex на этой машине. Memex — это local-first AI memory tool: захватывает мои разговоры с AI в Claude Code, Cowork (включая субагентов), Cursor, Obsidian и Telegram-экспорты в поисковый SQLite-индекс, доступный любому MCP-совместимому агенту через 11 стандартных тулзов. Репо: https://github.com/parallelclaw/memex-mvp
⚠ Условие: этот промпт работает только если ты запущен ВНУТРИ AI-агента с прямым доступом к терминалу моего ноутбука — то есть Claude Code (CLI), Cursor, Cline, Continue или Zed. Web-агенты (ChatGPT в браузере, Claude.ai web, Claude Desktop без тулзов и т.п.) не могут выполнять git/npm/файловые операции на моей машине — для них направь меня к ручной установке на https://memex.parallelclaw.ai/#quickstart. Если ты НЕ CLI-агент с доступом к shell — остановись прямо сейчас и скажи мне использовать manual install.
Сделай эти пять шагов по порядку. Показывай каждую команду перед запуском. Останавливайся и спрашивай если что-то падает или выглядит не так.
1. Клонирование и установка
- Предложи parent-директорию (по умолчанию: ~/Documents). Подтверди со мной.
- cd в эту директорию
- git clone https://github.com/parallelclaw/memex-mvp
- cd memex-mvp
- npm install
Проверь: server.js существует; npm install прошёл без фатальных ошибок.
2. Подключи memex к моему MCP-клиенту
- Ты запущен в одном из: Claude Code, Cursor, Cline, Continue, Zed.
Скажи в каком ты и какой config-файл будешь править.
Стандартные локации:
Claude Code → ~/.claude/config.json (или platform-specific эквивалент)
Cursor → ~/.cursor/mcp.json
Cline → VS Code settings.json (cline.mcpServers)
Continue → ~/.continue/config.json
Zed → ~/.config/zed/settings.json (context_servers)
Если неясно — спроси меня.
- Прочитай существующий config (если есть). Покажи мне diff перед сохранением.
- Сначала определи АБСОЛЮТНЫЙ путь к node-бинарнику — GUI-приложения (Cursor, Cline, Claude Desktop) на macOS часто не наследуют PATH из shell'а, поэтому голое "command": "node" падает с `spawn node ENOENT`. Особенно если node поставлен через nvm (живёт в ~/.nvm/versions/node/<ver>/bin/node). Запусти:
which node
Запомни этот путь. Если это shim (например ~/.asdf/shims/node) — дополнительно выполни `realpath $(which node)` чтобы получить реальный бинарник.
- СМЕРДЖИ эту запись в mcpServers — никогда не перетирай другие серверы которые у меня есть:
{
"mcpServers": {
"memex": {
"command": "<абсолютный путь к node из which node>",
"args": ["<абсолютный путь к memex-mvp/server.js>"]
}
}
}
Оба пути должны быть абсолютными. Путь к memex-mvp получи через `pwd` внутри склонированной директории.
- Если config-файла нет — создай parent-директорию и запиши минимальный валидный файл только с memex.
Проверь: перечитай файл после сохранения; убедись что memex-запись на месте и оба пути (`command` и `args[0]`) абсолютные.
3. Включи live auto-capture (рекомендуется)
- Из директории memex-mvp: npx memex-sync install
- Потом npx memex-sync status — должен напечатать "daemon installed", "running (PID …)", "watching N sessions".
Проверь: status показывает не-нулевой PID.
4. Backfill существующей истории (рекомендуется при первой установке)
- Daemon ловит только НОВЫЕ сессии. Чтобы проиндексировать всё что уже на диске:
npx memex-sync scan
- Это один раз обходит ~/.claude/projects/, Cowork-сессии, Cursor state.vscdb, и любые сконфигурированные Obsidian-vaults, ингестируя что есть.
- Опционально также: npx memex-sync backfill-projects — простит project_path старым conversation'ам чтобы memex_list_projects работал и на них.
Проверь: после scan npx memex-sync status показывает не-нулевой "ingested" счётчик.
5. Скажи мне что делать дальше
- Скажи мне полностью закрыть и переоткрыть MCP-клиент (Cmd+Q на macOS) чтобы он подхватил новые memex-тулзы.
- После рестарта предложи попробовать любое из:
• «покажи что memex видит в моей истории» — вызовет memex_overview
• «какие проекты memex захватил» — вызовет memex_list_projects
• «найди в memex [недавняя тема]» — вызовет memex_search
Это подтверждает что всё работает end-to-end.
Правила безопасности — прочитай перед началом:
- Если `node` или `npm` не установлены — остановись и скажи мне поставить Node.js (рекомендую nvm.sh). Не пытайся ставить Node сам.
- Никогда не запускай rm, sudo или что-либо деструктивное без явного подтверждения от меня.
- Показывай каждую команду перед запуском. Если я говорю «нет» или «стоп» — останавливайся и объясняй.
- Если шаг падает — НЕ авто-ретрай, НЕ авто-фикс. Скажи что упало и спроси как продолжать.
- При редактировании моего MCP-config'a всегда сохраняй существующие записи. Если не можешь смерджить чисто — прерывайся и говори мне.
Начни с приветствия, спроси в какую директорию клонировать, и подтверди в каком MCP-клиенте я тебя запустил.
Each step shows where it happens. You only do this once.
git clone https://github.com/parallelclaw/memex-mvp
cd memex-mvp
npm install
The third command prints a lot of text — that's normal, wait until it finishes.
Still in Terminal, get two absolute paths — memex location and your node binary location:
pwd # → your-memex-path
which node # → your-node-path
Open ~/.claude/config.json and paste — replace both placeholders with the actual paths:
{
"mcpServers": {
"memex": {
"command": "your-node-path",
"args": ["your-memex-path/server.js"]
}
}
}
Why absolute node path? GUI apps (Cursor, Cline, Claude Desktop) on macOS often don't see your shell PATH, so a bare "node" fails with spawn node ENOENT — especially with nvm. Always use the path from which node. Cursor, Cline, Continue, Zed have similar config files — same JSON shape.
npx memex-sync install
Small background process — catches every new Claude Code / Cowork session within ~1.5 seconds. Install once, forget it.
npx memex-sync status
Should print daemon running (PID …), watching N sessions. Restart the MCP client (Cmd+Q + reopen). Ask: «show me what memex has in memory» — that triggers memex_overview.