# LLMemory > LLMemory is a local-first AI chat vault. It captures conversations from browser chat sites (ChatGPT, Claude, Gemini, Perplexity, Grok) via a Chrome extension, and imports coding-agent sessions from CLI harnesses (Claude Code, Codex CLI, Cursor, OpenCode, Aider, T3 Chat) via an npm CLI. Everything is stored on the user's device and synced to storage they own (Google Drive or GitHub) — there is no LLMemory server and the company never sees any conversation data. The vault is searchable, exportable in open formats, and can be served to any AI agent through a built-in MCP server. LLMemory is not just a chat-sync app: it is harness- and CLI-sync capable. Browser chats and terminal coding sessions live in the same vault. ## Install (CLI) - npm: `npm install -g llmemory-cli` (requires Node.js 22+; binary is `llmemory`) - One-liner: `curl -fsSL https://llmemory.xyz/install.sh | sh` - Package page: https://www.npmjs.com/package/llmemory-cli ## Quick start - `llmemory init` — create the local vault - `llmemory import claude-code` — import Claude Code sessions - `llmemory import codex` — import OpenAI Codex CLI sessions - `llmemory import cursor` / `opencode` / `aider` / `t3` — other harnesses - `llmemory serve` — browse the vault locally in a web UI - `llmemory watch` / `llmemory daemon` — keep importing automatically - `llmemory doctor` — diagnose problems ## MCP server (for agents) - `llmemory connect-claude` — registers the MCP server with Claude Code and Claude Desktop in one step - `llmemory mcp` — stdio MCP server for any other MCP-capable client - Tools exposed: `search_chats`, `get_conversation`, `get_context_pack`, `list_recent`, `list_sources` ## Pages - [Home](https://llmemory.xyz/): product overview — one private vault for every AI conversation - [CLI & Agents](https://llmemory.xyz/cli): install guide, supported harnesses, MCP setup, instructions for AI agents - [Docs](https://docs.llmemory.xyz): full command reference for every CLI command and MCP tool - [Supported sites & harnesses](https://llmemory.xyz/supported): full coverage matrix plus a form to request new sites or harnesses - [Privacy policy](https://llmemory.xyz/privacy.html): no-server architecture — data syncs browser-to-user-storage only - [Terms](https://llmemory.xyz/terms.html) - [Contact](https://llmemory.xyz/contact): hello@llmemory.xyz ## Guides - [Recover Deleted ChatGPT Chats — What Actually Works](https://llmemory.xyz/guides/recover-deleted-chatgpt-chats): Your ChatGPT history disappeared? Here's what causes it, what recovery actually looks like, and how to make sure it never happens again — free, automatic backup to your own storage. - [How to Export Your Full ChatGPT History](https://llmemory.xyz/guides/export-chatgpt-history): The official ChatGPT export gives you a one-time JSON dump. Here's how it works, what it's missing, and how to keep an automatic, searchable, always-current copy instead. - [How to Back Up Your Claude.ai Conversations](https://llmemory.xyz/guides/backup-claude-chats): Claude.ai's account export is a manual, occasional snapshot. Here's how it works, how it differs from Claude Code session files, and how to back up both automatically for free. - [How to Save Your Google Gemini Conversations](https://llmemory.xyz/guides/save-gemini-conversations): Gemini chats vanishing from the sidebar is one of the most common AI complaints on Reddit. Here's where they actually live, and how to keep your own permanent copy. - [How to Export Perplexity and Grok Chat History](https://llmemory.xyz/guides/export-perplexity-grok): Perplexity and Grok both offer thinner export options than ChatGPT or Gemini. Here's what's available natively, and a free way to back up both automatically. - [Convert ChatGPT Exports to Markdown](https://llmemory.xyz/guides/chatgpt-to-markdown): ChatGPT's official export is a single nested JSON file. Here's how to turn it into clean, per-conversation Markdown files for Obsidian, Notion, or plain note-taking — free. - [Feed Your ChatGPT History to Claude Code, Cursor & Other AI Agents via MCP](https://llmemory.xyz/guides/chatgpt-history-to-mcp): Your coding agent doesn't have to start from zero every session. Here's how to pipe your past ChatGPT, Claude, and Gemini conversations into Claude Code, Cursor, or any MCP client as live context. - [Give Cursor Memory of Your Past ChatGPT and Claude Conversations](https://llmemory.xyz/guides/cursor-remember-past-conversations): Cursor forgets everything outside the current codebase. Here's how to connect it, via MCP, to a searchable vault of your past ChatGPT, Claude, and Gemini conversations. - [Give Aider Memory of Your Past AI Chat History](https://llmemory.xyz/guides/aider-remember-past-conversations): Aider works entirely from your local repo and terminal session. Here's how to connect it to a searchable vault of your ChatGPT, Claude, and Gemini conversations via MCP. - [Give OpenCode Memory of Your Past AI Chat History](https://llmemory.xyz/guides/opencode-remember-past-conversations): OpenCode sessions and your browser chat history live in completely separate places. Here's how to bridge them with LLMemory's MCP server. - [Give OpenAI Codex CLI Memory of Your Past AI Chat History](https://llmemory.xyz/guides/codex-remember-past-conversations): Codex CLI sessions don't know what you discussed in ChatGPT's web app or any other assistant. Here's how to connect the two via LLMemory's MCP server. - [Give T3 Chat Memory of Your Past ChatGPT and Claude Conversations](https://llmemory.xyz/guides/t3-chat-remember-past-conversations): T3 Chat sessions don't automatically include what you discussed in ChatGPT, Claude, or Gemini. Here's how to bridge that with LLMemory's MCP server. ## FAQ ### Recover Deleted ChatGPT Chats — What Actually Works Q: Can I recover deleted ChatGPT chats? A: No official recovery tool exists. Check Archived chats first — most "deleted" chats are only archived. If it's truly gone, OpenAI support can occasionally restore very recent deletions, with no guarantee. Q: Why did my ChatGPT chat history disappear? A: Most often it was archived, not deleted. Other causes: a sync failure after an update, Temporary Chat mode (never saved), or an account-level issue like a ban. Q: Does ChatGPT save chats automatically? A: Yes, by default, unless Temporary Chat mode is on. That auto-save is also the single point of failure — if it breaks, the chat looks gone even though you didn't delete anything. Q: How do I stop losing ChatGPT chats for good? A: Back up outside ChatGPT's own storage. LLMemory captures every conversation automatically into your own Google Drive or GitHub as you chat, free. Q: Is there a free way to back up ChatGPT conversations? A: Yes — LLMemory. No server of its own, no account database, writes directly to storage you control. ### How to Export Your Full ChatGPT History Q: How do I export my ChatGPT chat history? A: Settings → Data controls → Export data, then download the ZIP link OpenAI emails you. It contains a conversations.json file with every chat. Q: What format does the ChatGPT export use? A: A single nested conversations.json file built for re-import, not reading — no titles-first index, no search. Q: Can I automate ChatGPT exports? A: Not officially — each export is a manual, one-time request. LLMemory captures every chat automatically into your own Drive or GitHub as you chat, free. Q: Is there a way to search exported ChatGPT chats? A: Not in the raw JSON. LLMemory indexes every captured conversation with full-text search via its dashboard, CLI, and MCP server. ### How to Back Up Your Claude.ai Conversations Q: How do I back up my Claude.ai chats? A: Request a full data export from Claude.ai's settings; Anthropic emails a download link. It's a one-time snapshot, not continuous. Q: Does Claude have an automatic export feature? A: No. LLMemory captures every Claude.ai conversation automatically as you chat, free, into your own Drive or GitHub. Q: Is backing up Claude Code different from backing up Claude.ai chats? A: Yes — Claude Code sessions are local JSONL files, not browser data. LLMemory covers both: browser extension for Claude.ai, `llmemory import claude-code` for Claude Code. Q: Is there a free way to back up Claude conversations? A: Yes — LLMemory, for both Claude.ai and Claude Code, with no server of its own. ### How to Save Your Google Gemini Conversations Q: Where are my Gemini chats actually saved? A: In your Google Account activity at myactivity.google.com under Gemini Apps Activity — separate from the visible chat sidebar. Q: Why did my Gemini chat history disappear from the sidebar? A: A widely reported sidebar/sync issue; the conversation may still be logged in My Activity even when the sidebar list is empty. Q: How do I export my Gemini conversations? A: Google Takeout can include My Activity data, but it's bundled with all Google activity, not a clean per-chat export. Q: Is there a free way to keep a permanent, searchable copy of Gemini chats? A: Yes — LLMemory captures each conversation automatically into your own Drive or GitHub as you chat, free. ### How to Export Perplexity and Grok Chat History Q: Can I export my Perplexity threads? A: No bulk export — Perplexity's Library lets you revisit threads individually, not download them all at once. Q: Does Grok let you export chat history? A: No dedicated bulk-export tool exists for Grok chat history at this time. Q: Is there a free way to back up Perplexity and Grok chats? A: Yes — LLMemory captures both automatically as you chat into your own Drive or GitHub, free. ### Convert ChatGPT Exports to Markdown Q: How do I convert ChatGPT's JSON export to Markdown? A: Capture or import the conversation with LLMemory, then run `llmemory export --format md` to get a clean Markdown file. Q: Can I get my ChatGPT chats into Obsidian or Notion? A: Yes — export as Markdown with LLMemory's CLI, then drop the files into your Obsidian vault or import them into Notion. Q: Is there a free tool to convert ChatGPT history to Markdown? A: Yes — LLMemory exports Markdown or JSON directly from its free CLI, with source data stored in your own Drive or GitHub. ### Feed Your ChatGPT History to Claude Code, Cursor & Other AI Agents via MCP Q: What is MCP and how does it relate to ChatGPT history? A: MCP lets agents like Claude Code query external tools for live context. LLMemory's MCP server lets an agent search and read your captured ChatGPT, Claude, and Gemini chats on demand. Q: Can Claude Code read my past ChatGPT conversations? A: Yes, once captured into LLMemory's vault. Run `llmemory connect-claude`, then Claude Code can call search_chats and get_conversation. Q: How do I give my coding agent my chat history as context? A: Connect live via MCP (`llmemory connect-claude` or `llmemory mcp`), or generate a one-off briefing with `llmemory pack`. ### Give Cursor Memory of Your Past ChatGPT and Claude Conversations Q: Can Cursor access my ChatGPT or Claude chat history? A: Not natively. Connect LLMemory's MCP server (`llmemory mcp`) as an MCP tool in Cursor's settings, and Cursor can search and read your captured conversations on demand. Q: How do I add an MCP server to Cursor? A: Cursor Settings → MCP → Add new server, pointing at the `llmemory mcp` stdio command after installing llmemory-cli. Q: Does this work for Claude, Gemini, Perplexity and Grok too, not just ChatGPT? A: Yes — LLMemory's extension captures all five, and Cursor can query across all of them through the same MCP server. ### Give Aider Memory of Your Past AI Chat History Q: Can Aider see my ChatGPT or Claude conversation history? A: Not by default — Aider only reads your repo and current session. Connect LLMemory's MCP server, or hand it a context pack generated with `llmemory pack`. Q: Does LLMemory import local Aider sessions too? A: Yes — `llmemory import aider` imports local Aider session history alongside Claude Code, Codex, Cursor, OpenCode, and T3 Chat. ### Give OpenCode Memory of Your Past AI Chat History Q: Can OpenCode read my past ChatGPT or Claude chats? A: Not natively. Connect LLMemory's MCP server (`llmemory mcp`) so OpenCode can search and read captured conversations. Q: Does LLMemory import existing OpenCode session history? A: Yes — `llmemory import opencode` imports local OpenCode sessions into the same vault as your browser-captured chats. ### Give OpenAI Codex CLI Memory of Your Past AI Chat History Q: Does Codex CLI automatically know my ChatGPT web chat history? A: No — they're separate products with separate storage, even though both are from OpenAI. Q: How do I connect Codex CLI to my ChatGPT web history? A: Capture ChatGPT web chats with LLMemory's extension, import Codex CLI sessions with `llmemory import codex`, then run `llmemory mcp` and register it as an MCP server. ### Give T3 Chat Memory of Your Past ChatGPT and Claude Conversations Q: Does T3 Chat know what I discussed in ChatGPT or Claude? A: No — it's a separate product with its own session storage. LLMemory bridges this by capturing all of them into one vault. Q: Can I import my existing T3 Chat history into LLMemory? A: Yes — `llmemory import t3` imports local T3 Chat sessions alongside Claude Code, Codex, Cursor, OpenCode, and Aider. ## Optional - [Web app](https://app.llmemory.xyz): the hosted vault UI (reads the user's own storage) - [Installer script](https://llmemory.xyz/install.sh): POSIX sh installer that checks Node 22+ and runs npm install