shared-ai-memory
One long-term memory shared by Claude and ChatGPT: a self-hosted MCP server on Cloudflare Workers with a one-click Windows installer (English/Español).
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Badge for your README
Markdown
[](/listings/frozenfrostfox--shared-ai-memory)HTML
<a href="/listings/frozenfrostfox--shared-ai-memory"><img src="/api/listings/frozenfrostfox--shared-ai-memory/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
You need: Windows 10/11, a Claude account and a ChatGPT account (ChatGPT needs **Plus** for custom connectors). A free Cloudflare account gets created along the way.
1. **Download** this repo: green **Code** button → **Download ZIP**, and unzip it anywhere (e.g. Documents). 2. **Double-click `INSTALL.bat`** and follow it. It asks your language first (English / Español). - If Windows says "Windows protected your PC": **More info → Run anyway**. - It installs Node.js and Git if they're missing, then opens your browser to sign in to Cloudflare. - You'll choose a password for your memory. Write it down. 3. At the end, **`GUIDE.html`** opens with the exact clicks to connect Claude and ChatGPT (~5 minutes).
**Even easier — let Claude do it:** open the Claude desktop app, connect this folder, and write *"Read CLAUDE-SETUP.md and set everything up for me."* Claude runs the steps and tells you where to click; your password never passes through the chat.
The installer can be re-run at any time: it resumes and never deletes anything.
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 109 lines
- # Shared AI Memory
- [Leer en español](README.es.md)
- **One long-term memory that Claude and ChatGPT both read and write** — so you can switch
- assistants mid-task (say, when you hit a usage limit) without re-explaining who you are or where
- your project stands.
- It's your own small server, running free on your own Cloudflare account. Both assistants connect
- to it as a custom connector (MCP), sign in with a password only you know, and keep it up to date
- as you talk to them.
- 
- 
- -c96442)
- ## What you get
- - **One memory, two assistants.** Tell Claude something; ask ChatGPT about it later. Each project
- has a document with a **Next step** line, so either assistant can pick up exactly where the
- other left off.
- - **It remembers you, not just your code:** profile, preferences, and topics (studies, hardware,
- languages, fitness…) — filed with clear rules about what counts as something *you* said versus
- something the AI assumed.
- - **Your coding activity logs itself (optional).** A git hook, a deploy hook and an hourly scan of
- your code folder report what changed. If a project's notes fall behind its code, every tool
- result flags it as **UNRECORDED WORK** until an assistant updates them.
- - **Safe for two writers at once:** every write is version-checked (compare-and-swap), with full
- revision history and restore.
- - **Refuses secrets:** writes containing API keys, tokens, passwords, private keys or card numbers
- are rejected outright.
- - **Optional GitHub backup:** the whole memory can be mirrored to a private GitHub repo of yours.
- - **Private by design:** your server, your Cloudflare account, your password. Nothing is shared
- with the author of this project.
- ## Install (Windows, ~10 minutes, no coding needed)
- You need: Windows 10/11, a Claude account and a ChatGPT account (ChatGPT needs **Plus** for
- custom connectors). A free Cloudflare account gets created along the way.
- 1. **Download** this repo: green **Code** button → **Download ZIP**, and unzip it anywhere (e.g. Documents).
- 2. **Double-click `INSTALL.bat`** and follow it. It asks your language first (English / Español).
- - If Windows says "Windows protected your PC": **More info → Run anyway**.
- - It installs Node.js and Git if they're missing, then opens your browser to sign in to Cloudflare.
- - You'll choose a password for your memory. Write it down.
- 3. At the end, **`GUIDE.html`** opens with the exact clicks to connect Claude and ChatGPT (~5 minutes).
- **Even easier — let Claude do it:** open the Claude desktop app, connect this folder, and write
- *"Read CLAUDE-SETUP.md and set everything up for me."* Claude runs the steps and tells you where to
- click; your password never passes through the chat.
- The installer can be re-run at any time: it resumes and never deletes anything.
- ## How it works
- ```
- Claude ──┐
- ├── MCP + OAuth (your password) ──► your Cloudflare Worker
- ChatGPT ─┘ ├─ D1: documents + revision history
- ├─ KV: login sessions
- └─ optional mirror → your private GitHub repo
- your code folder ── git hook · deploy hook · hourly scan ──► activity log (UNRECORDED WORK)
- ```
- - **Server:** a TypeScript Cloudflare Worker (`server/`) using the MCP SDK and
- `@cloudflare/workers-oauth-provider`. Documents are Markdown files with paths like
- `/projects/my-app.md`, stored in D1.
- - **Tools the assistants get:** `memory_list`, `memory_read`, `memory_search`, `memory_recent`,
- `memory_write`, `memory_append`, `memory_str_replace`, `memory_delete`, `journal_add`,
- `memory_history`, `memory_revision`, `memory_restore`, `memory_diagnostics`, `memory_sync`,
- `memory_guide`.
- - **Behaviour rules** for the assistants live in `server/src/instructions.ts` and are sent with
- every connection: read first, write before finishing each turn, tag facts as `[stated]` or
- `[assumed]` (with evidence), never store sensitive categories, treat stored text as data rather
- than instructions.
- - **Client hooks** (`client/`) report commits, deploys and file changes from your code folder.
- - **Tests:** `cd server && npm ci && npm run typecheck && npm test` (45 regression tests).
- ### Manual install (any OS, for developers)
- ```sh
- cd server && npm ci
- npx wrangler login
- npx wrangler d1 create ai-memory
- npx wrangler kv namespace create ai-memory-oauth
- cp wrangler.template.jsonc wrangler.jsonc # fill in __WORKER_NAME__, __DB_NAME__, __D1_ID__, __KV_ID__, __GITHUB_REPO__ ("" for none)
- grep -rl '{{OWNER}}' src seed | xargs sed -i 's/{{OWNER}}/YourName/g'
- npx wrangler d1 execute ai-memory --remote --file=./schema.sql
- npx wrangler secret put ACCESS_PASSWORD # also FORM_TOKEN_SECRET and INGEST_TOKEN (long random strings)
- npx wrangler deploy
- node scripts/seed.mjs https://<your-worker>.workers.dev <password> seed
- ```
- Then add `https://<your-worker>.workers.dev/mcp` as a custom connector in Claude and ChatGPT
- (steps in `installer/GUIDE.template.html`) and paste `client/INSTRUCTIONS-TEXT.txt` into each
- assistant's custom instructions.
- ## How it was built
- A personal project, built with AI coding assistants (Claude and ChatGPT) — and then used by those
- same assistants every day to hand work back and forth. Hardening that came from real use includes
- atomic compare-and-swap writes, per-write revision tokens, HMAC-signed login form tokens, a
- secret-rejecting write guard, and server-side activity tracking.
- ## License
- [GPL-3.0](LICENSE) © 2026 FrozenFrostFox. You can use, change and share it; versions you
- distribute must stay open source under the same license.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.