A browser extension that saves your chats from AI web interfaces—Gemini, Google AI Studio, ChatGPT, Claude, and Grok—and connects them to pluggable memory engines like Mem0, AgentMemory, Hindsight, and Cognee, or safely preserves them client-side in a zero-retention local archive.
If you turn off history or activity tracking on services like Gemini (for example, to stop providers from retaining your data or training models on it), their web apps stop saving your past chats.
This extension keeps a copy saved locally on your own machine. You get the privacy benefits of turning off cloud history without losing track of your conversations.
If you also configure a memory engine (such as Local Mem0, Mem0 Cloud, AgentMemory, Hindsight, or Cognee), it sends the dialogue turns there too, so you can search past memories and inject them into future prompts.
- Keeps a local history: Saves your chats in your browser (
chrome.storage.local). You can read past sessions, search transcripts, and export them to Markdown or JSON anytime. - Works with memory engines: Pluggable support for Local Mem0 (default), Mem0 Cloud, AgentMemory, Hindsight, Cognee, or standalone Local Archive Only.
- Supports popular AI chats:
- Google Gemini (
gemini.google.com) - Google AI Studio (
aistudio.google.com) - ChatGPT (
chatgpt.com,chat.openai.com) - Claude (
claude.ai) - Grok (
grok.com)
- Google Gemini (
- Memory recall: Search your memories from the popup and queue relevant notes to prepend to your next prompt.
- Per-site toggles: Turn auto-save on or off for each site independently.
- Clone or download this repo (
git clone https://github.com/ChillingWombat/webai-memory.git). - Open
chrome://extensionsin Chrome, Brave, Edge, or any Chromium browser. - Turn on Developer mode (top right switch).
- Click Load unpacked and select this project folder.
Click the extension icon and open the Settings tab:
- Local Mem0 (Default):
- Connects automatically to your local Mem0 server/console at
http://localhost:8000with zero configuration needed.
- Connects automatically to your local Mem0 server/console at
- Mem0 Cloud:
- Select Mem0 Cloud, leave the endpoint as
https://api.mem0.ai/v1, and paste your API key.
- Select Mem0 Cloud, leave the endpoint as
- AgentMemory:
- Connects to a local loopback daemon (
http://localhost:3111). Enter your bearer secret if configured.
- Connects to a local loopback daemon (
- Hindsight:
- Connects to a local Hindsight agent memory service at
http://localhost:8888.
- Connects to a local Hindsight agent memory service at
- Cognee:
- Connects to a local Cognee knowledge graph memory service at
http://localhost:8000.
- Connects to a local Cognee knowledge graph memory service at
- Local Archive Only:
- Even if no memory daemon is running, full conversation turns are safely archived client-side in your browser for zero-retention privacy.
Click Save & Test Connection to verify.
- Chat as usual: Open Gemini, Google AI Studio, ChatGPT, Claude, or Grok. Once the assistant finishes its reply, the exchange is saved.
- Review past chats: Click the extension icon and open Local History. Click any conversation to view the full dialogue, or search keywords across all past sessions.
- Bring past context into a prompt:
- In the popup, go to Memories and search a topic.
- Select the notes you want and click Queue for next prompt.
- Back in your chat tab, your selected context will be added to your input box before sending.
- Your conversation archive stays in your browser's local storage.
- If you use a local engine (Local Mem0, AgentMemory, Hindsight, or Cognee), network calls only go to your local machine (
localhost/127.0.0.1). - If you use Mem0 Cloud, memories are sent to
api.mem0.aiusing your own API key. - The extension does not collect analytics or route your data through any third-party relay.
- DOM Selectors: These web interfaces update their layouts from time to time. If saving stops working on a site, check the selectors in
content/<site>.js. - Run tests:
Runs the built-in test suite (no extra npm packages needed).
npm test - Check syntax:
node --check service-worker.js node --check popup/popup.js