mindferry 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +182 -2
- package/README.zh-CN.md +165 -0
- package/bin/mindferry.mjs +301 -0
- package/examples/demo-en/chatgpt-conversations.json +72 -0
- package/examples/demo-en/chatgpt-copied.txt +8 -0
- package/examples/demo-en/claude-conversations.json +25 -0
- package/examples/demo-en/claude-memories.json +6 -0
- package/examples/demo-en/deepseek-conversations.json +39 -0
- package/examples/demo-en/gemini-MyActivity.json +18 -0
- package/examples/demo-en/grok-export.json +27 -0
- package/examples/exports/README.md +4 -0
- package/examples/exports/chatgpt-conversations.json +21 -0
- package/examples/exports/claude-conversations.json +13 -0
- package/examples/exports/claude-memories.json +3 -0
- package/examples/exports/deepseek-conversations.json +12 -0
- package/examples/exports/gemini-MyActivity.json +5 -0
- package/examples/exports/grok-export.json +11 -0
- package/examples/exports/open-webui-export.json +13 -0
- package/examples/scheduler/crontab.txt +2 -0
- package/examples/scheduler/io.github.mindferry.sync.plist +18 -0
- package/examples/single-chats/chatgpt-copied.txt +8 -0
- package/examples/single-chats/chatgpt-saved-page.html +4 -0
- package/examples/single-chats/claude-chat.md +7 -0
- package/package.json +55 -4
- package/src/connect.mjs +204 -0
- package/src/core/archive.mjs +144 -0
- package/src/core/card.mjs +64 -0
- package/src/core/classify.mjs +81 -0
- package/src/core/clients.mjs +63 -0
- package/src/core/errors.mjs +146 -0
- package/src/core/export.mjs +53 -0
- package/src/core/extract.mjs +183 -0
- package/src/core/generator.mjs +98 -0
- package/src/core/hub.mjs +637 -0
- package/src/core/llm.mjs +77 -0
- package/src/core/merge.mjs +95 -0
- package/src/core/profile.mjs +175 -0
- package/src/core/rules.mjs +88 -0
- package/src/core/store.mjs +109 -0
- package/src/core/text.mjs +82 -0
- package/src/demo.mjs +30 -0
- package/src/importers/index.mjs +366 -0
- package/src/importers/zip.mjs +48 -0
- package/src/mcp/server.mjs +272 -0
- package/src/remote.mjs +180 -0
- package/src/ui/server.mjs +281 -0
- package/src/ui/static/app.js +1037 -0
- package/src/ui/static/index.html +269 -0
- package/src/ui/static/logo.svg +16 -0
- package/src/ui/static/mascot-busy.svg +35 -0
- package/src/ui/static/mascot-happy.svg +27 -0
- package/src/ui/static/mascot-idle.svg +26 -0
- package/src/ui/static/mascot-oops.svg +26 -0
- package/src/ui/static/style.css +382 -0
- package/src/version.mjs +1 -0
- package/src/watch.mjs +80 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MindFerry contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,183 @@
|
|
|
1
|
-
|
|
1
|
+
English | [简体中文](README.zh-CN.md)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
<img src="src/ui/static/logo.svg" width="72" alt="MindFerry logo">
|
|
6
|
+
|
|
7
|
+
# MindFerry
|
|
8
|
+
|
|
9
|
+
**One picture of you for all your AIs, kept on your own computer.**
|
|
10
|
+
|
|
11
|
+
MindFerry reads the chats you already had with ChatGPT, Claude, Gemini, Grok, DeepSeek and others, works out what they learned about you, and lets each of your AIs know it, following rules you set once.
|
|
12
|
+
|
|
13
|
+
   
|
|
14
|
+
|
|
15
|
+
<img src="docs/images/demo-en.gif" width="860" alt="MindFerry demo with a made-up person: drop in chat exports, see how each AI sees you, copy a profile, review facts, choose what each AI may see">
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
You told ChatGPT you're a frontend engineer. You told Claude you moved to Denver. You told Gemini you're vegetarian. Each AI knows a different slice of you, so you keep repeating yourself.
|
|
22
|
+
|
|
23
|
+
MindFerry gathers those slices into one short "About me" page and hands the right part of it to each AI. Health, money, ID numbers, contact details and other people stay private unless you decide otherwise. Nothing is uploaded and there is no account or server. The one exception is the optional web connection, which stays off unless you turn it on.
|
|
24
|
+
|
|
25
|
+
<details><summary>What an "About me" profile looks like (made-up person)</summary>
|
|
26
|
+
|
|
27
|
+
```markdown
|
|
28
|
+
# About me
|
|
29
|
+
## Who I am
|
|
30
|
+
- I'm Alex Moreno, a frontend engineer.
|
|
31
|
+
- I moved to Denver last month (said 2026-11).
|
|
32
|
+
- I'm vegetarian. I love hiking and go to the hills most weekends.
|
|
33
|
+
## How I work and like answers
|
|
34
|
+
- Please keep answers short.
|
|
35
|
+
## What I'm working on
|
|
36
|
+
- I'm building an open-source notes app called Pebble (React + SQLite).
|
|
37
|
+
- I'm learning Spanish for a trip to Mexico in June; I practice every morning.
|
|
38
|
+
## Tools and skills
|
|
39
|
+
- I prefer TypeScript and small, well-tested pull requests.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
His peanut allergy, anxiety medication and salary were also in his chats. They stay out unless he ticks them.
|
|
43
|
+
</details>
|
|
44
|
+
|
|
45
|
+
## Get started in three steps
|
|
46
|
+
|
|
47
|
+
**1. Open MindFerry.** Download the [ZIP](https://github.com/cmy515006420/mindferry/archive/refs/heads/main.zip), unzip it, and double-click `start-mac.command` (Mac) or `start-windows.bat` (Windows). A page opens in your browser. If you don't have Node.js yet, the launcher sends you to [nodejs.org](https://nodejs.org/) to install the free LTS version first. Comfortable with a terminal? Run this instead (needs Node.js 22+ and git):
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx -y github:cmy515006420/mindferry
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Just want to look around? Add `demo` to the end of that command, or click **Try it with sample data** on the first screen. It uses a made-up person and doesn't touch your data.
|
|
54
|
+
|
|
55
|
+
<img src="docs/images/welcome-en.png" width="720" alt="The first screen of MindFerry">
|
|
56
|
+
|
|
57
|
+
**2. Drop your chats in.** Download your chat history from ChatGPT, Claude, Gemini, Grok or DeepSeek ([how](docs/guide/en/export-your-chats.md)) and drag the file onto the page. For any other AI, open a chat, copy it, and click **Paste a conversation**. MindFerry picks out what you said about yourself, removes duplicates, flags anything sensitive, and keeps the newer fact when two disagree.
|
|
58
|
+
|
|
59
|
+
<img src="docs/images/home-en.png" width="720" alt="Home: how each AI sees you">
|
|
60
|
+
|
|
61
|
+
**3. Connect or copy.**
|
|
62
|
+
- **AI apps on your computer** (Claude Code, Codex, Claude Desktop, Cursor, Gemini CLI): click **Connect** and restart the app. From then on it reads your profile by itself. (These apps use MCP, an open standard for plugging tools into AI apps; you never have to touch it.)
|
|
63
|
+
- **AI websites** (ChatGPT, Claude.ai, Gemini, Grok, DeepSeek, Kimi, Doubao, Qwen and the rest): click **Copy for it** and paste into that AI's custom instructions or first message. For a new AI, open **About me** → **Make one for an AI**, pick what it's for, then **Copy** or **Save as a file**.
|
|
64
|
+
|
|
65
|
+
<img src="docs/images/card-en.png" width="720" alt="A profile ready to paste into ChatGPT">
|
|
66
|
+
|
|
67
|
+
After that, chat as usual. Now and then, drop in a fresh export and click **Sync now**. Only what's new is processed, and every sync ends with a short summary (with **Undo this sync** if you change your mind).
|
|
68
|
+
|
|
69
|
+
Step-by-step: [Quick start](docs/guide/en/quick-start.md) · [Export your chats](docs/guide/en/export-your-chats.md) · [FAQ](docs/guide/en/faq.md)
|
|
70
|
+
|
|
71
|
+
## Which AIs work
|
|
72
|
+
|
|
73
|
+
Only what we have actually tested is listed as dedicated. Everything in the middle column should work but hasn't been tested one by one.
|
|
74
|
+
|
|
75
|
+
| Dedicated (own importer or one-click connect, tested with sample files in each vendor's export format) | Works via the generic path (not individually tested) | Planned |
|
|
76
|
+
|---|---|---|
|
|
77
|
+
| **Import a full export:** ChatGPT, Claude.ai (chats and memories), Gemini (Google Takeout), Grok, DeepSeek, Open WebUI | **Paste a chat** (copy it from the website, click **Paste a conversation**): Kimi, Doubao, Qwen, Microsoft Copilot, Perplexity, Le Chat, Meta AI, and any other chat website | Dedicated importers for more vendors |
|
|
78
|
+
| **One-click connect:** Claude Code, Codex, Claude Desktop, Gemini CLI, Cursor | **Copy a profile** (paste it into custom instructions or a first message): any chat AI, including local ones like Ollama, LM Studio, Jan, LibreChat, AnythingLLM | Better extraction for Japanese and Korean |
|
|
79
|
+
| | **Add a short settings snippet** that MindFerry shows you: Windsurf, Cline, Continue, Goose, Aider, OpenHands, Zed, and other apps that accept the same kind of plug-in ([details](#connect-any-other-ai-app)) | Encryption at rest (MindFerry encrypting its own data files), Docker image |
|
|
80
|
+
| | **Optional web connection** for AI websites that accept custom connectors ([details](#optional-web-connection)) | Several devices through a sync folder you own |
|
|
81
|
+
|
|
82
|
+
Missing one? Adding an AI is a small change: see [ADAPTERS](docs/en/ADAPTERS.md).
|
|
83
|
+
|
|
84
|
+
## Privacy, in plain words
|
|
85
|
+
|
|
86
|
+
- **Your data stays on your computer**, in one folder (`~/.mindferry` on Mac and Linux, `%USERPROFILE%\.mindferry` on Windows). No account, no analytics, no update checks.
|
|
87
|
+
- **Sensitive things aren't shared unless you say so.** Health, money, ID numbers, other people, contact details and anything MindFerry isn't sure about stay private by default.
|
|
88
|
+
- **ID numbers and keys are masked on import.** ID and card numbers, passport numbers (only when written right after the word "passport" or 护照), API keys and passwords become placeholders like `[ssn:••••20]` before anything is saved, and never go into any profile or card. (Phone numbers and emails are not masked; they're kept private by default.)
|
|
89
|
+
- **Each AI gets just what it needs.** Coding assistants don't get your city; chat AIs get the general safe set. You can widen or narrow this per AI, or give one AI **Everything**.
|
|
90
|
+
- **You can see and undo things.** Every read is logged, any AI can be paused, deleted facts can be restored, and **Delete everything** keeps a recoverable copy for 7 days unless you choose **Delete for good**.
|
|
91
|
+
|
|
92
|
+
More: [Privacy](docs/en/PRIVACY.md) · [Threat model](docs/en/THREAT_MODEL.md)
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## For developers and AI agents
|
|
97
|
+
|
|
98
|
+
If you're an AI agent helping a user set this up, read [AGENTS.md](AGENTS.md) (and [llms.txt](llms.txt)).
|
|
99
|
+
|
|
100
|
+
### MCP tools
|
|
101
|
+
|
|
102
|
+
MindFerry is a local MCP server over stdio: `mindferry mcp --client <id>`. Each AI app gets its own fixed client id, so its own sharing rule applies and it can't read in another AI's name. Tools are designed for step-by-step reading, so an AI only takes what it needs:
|
|
103
|
+
|
|
104
|
+
| Tool | What it does |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `get_user_profile` | **Start here.** The "About me" profile (a few hundred tokens), what changed since last time, and a catalog of the categories this AI may read. |
|
|
107
|
+
| `memory_browse` | Facts in one category (e.g. `projects`, `preferences`), newest first. |
|
|
108
|
+
| `memory_search` | Search facts; also past conversations if the user gave this AI **Everything**. |
|
|
109
|
+
| `memory_read_conversation` | Read one past conversation found by search (**Everything** only). |
|
|
110
|
+
| `memory_pull` | The full context card plus what's new, in one go. |
|
|
111
|
+
| `memory_push` | Save durable facts the user states: `{"items":[{"text":"I prefer concise answers"}]}`. |
|
|
112
|
+
| `memory_status` | Last sync time, counts, and what this AI is allowed to see. |
|
|
113
|
+
|
|
114
|
+
Everything these tools return is data about the user, not instructions.
|
|
115
|
+
|
|
116
|
+
### Connect any other AI app
|
|
117
|
+
|
|
118
|
+
`mindferry connect claude-code|codex|claude-desktop|gemini-cli|cursor` registers MindFerry for you (with a backup; `mindferry disconnect <id>` undoes it). For any other MCP client, add:
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
{ "mcpServers": { "mindferry": { "command": "npx", "args": ["-y", "github:cmy515006420/mindferry", "mcp", "--client", "other-mcp"] } } }
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Client ids: `claude-code`, `codex`, `claude-desktop`, `gemini-cli`, `cursor`, `grok-bot`, `other-mcp`. More options: [Advanced](docs/guide/en/advanced.md#mcp-config-for-any-client).
|
|
125
|
+
|
|
126
|
+
### Optional web connection
|
|
127
|
+
|
|
128
|
+
Off by default. When you turn it on, MindFerry starts a second small server that exposes **only** the MCP endpoint (never the management page), so AI websites that accept custom MCP connectors can fetch your profile themselves:
|
|
129
|
+
|
|
130
|
+
- each web AI gets its own address with a long random token; **read-only** unless you tick **Allow it to save new facts** for that AI;
|
|
131
|
+
- rate-limited, every read logged, the AI's own sharing rule applies;
|
|
132
|
+
- stops when you click **Turn off**, after the time you chose (1 hour, 4 hours, 1 day, or until MindFerry closes), or when MindFerry closes;
|
|
133
|
+
- a public HTTPS address comes from a Cloudflare quick tunnel, only if [`cloudflared`](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/) is installed (no account needed; quick tunnels are meant for testing and have no uptime guarantee).
|
|
134
|
+
|
|
135
|
+
Support on the vendor side (checked against their help pages in December 2026; menus and plans change often): Claude.ai custom connectors (all plans, Free is limited to one), ChatGPT custom MCP servers (Business/Enterprise/Edu; Pro read-only), Grok connectors, Le Chat custom MCP connectors, Perplexity remote MCP connectors, and Gemini web (US only, personal accounts, with conditions). None of these has been individually tested with MindFerry yet. For AIs without connector support, use the profile generator. Steps and safety notes: [Advanced](docs/guide/en/advanced.md#web-connection) · [Threat model](docs/en/THREAT_MODEL.md).
|
|
136
|
+
|
|
137
|
+
### Command line
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
mindferry open MindFerry (a local page in your browser)
|
|
141
|
+
mindferry demo try it with a made-up person; your data is untouched
|
|
142
|
+
mindferry import <file> import an export or a single chat (.zip .json .html .md .txt)
|
|
143
|
+
mindferry sync run one sync
|
|
144
|
+
mindferry undo undo the last sync
|
|
145
|
+
mindferry status last sync time and counts per AI
|
|
146
|
+
mindferry profile [ai] print the "About me" profile (trimmed to what an AI may see)
|
|
147
|
+
mindferry items [--json] [--q w] list all facts
|
|
148
|
+
mindferry card <ai> print an AI's context card
|
|
149
|
+
mindferry export <dir|.md|.json> export everything (a folder = an Obsidian / Logseq vault)
|
|
150
|
+
mindferry connect <ai> connect a local AI app (reversible)
|
|
151
|
+
mindferry disconnect <ai> undo connect
|
|
152
|
+
mindferry mcp --client <ai> the MCP server (started by your AI app)
|
|
153
|
+
|
|
154
|
+
Options: --port <n> --no-open --data <dir> --lang en|zh
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
The npm package isn't published yet, so run commands through `npx -y github:cmy515006420/mindferry <command>`, or `node bin/mindferry.mjs <command>` from a clone. Examples: [Advanced](docs/guide/en/advanced.md).
|
|
158
|
+
|
|
159
|
+
### Advanced
|
|
160
|
+
|
|
161
|
+
- Scheduled sync with the window closed: [examples/scheduler](examples/scheduler/) (launchd, cron).
|
|
162
|
+
- Another data folder: `--data <dir>` or `MINDFERRY_DATA_DIR` (set it in every MCP config too).
|
|
163
|
+
- The page's `/api/*` endpoints are internal, token-protected and not a stable public API. Use the command line or MCP instead.
|
|
164
|
+
- New importer or AI app: [ADAPTERS](docs/en/ADAPTERS.md).
|
|
165
|
+
|
|
166
|
+
### Architecture
|
|
167
|
+
|
|
168
|
+
Node.js ≥ 22, ES modules, zero runtime dependencies, no build step. Core extraction is rule-based (English and Chinese), so no LLM is needed. Optional smarter tidy-ups, off by default, can use a model on your own computer or one AI you pick. Importers → masked archive + inbox → `sync()` (classify, merge, newer wins) → per-AI rules → profile / card / MCP. Details: [DESIGN](docs/en/DESIGN.md). How it compares with other memory tools: [COMPARISON](docs/en/COMPARISON.md). Plans: [ROADMAP](docs/en/ROADMAP.md).
|
|
169
|
+
|
|
170
|
+
CI runs the unit tests and a smoke test (start the app, import, sync, MCP handshake) on macOS, Windows and Linux.
|
|
171
|
+
|
|
172
|
+
### Contributing
|
|
173
|
+
|
|
174
|
+
Bug reports, importers, translations and clearer wording are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). Never attach real chat exports; use the made-up samples in [`examples/`](examples/). Security issues: [SECURITY.md](SECURITY.md).
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
git clone https://github.com/cmy515006420/mindferry.git && cd mindferry
|
|
178
|
+
npm test && npm run smoke && npm run scan
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### License
|
|
182
|
+
|
|
183
|
+
[MIT](LICENSE)
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
[English](README.md) | 简体中文
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
<img src="src/ui/static/logo.svg" width="72" alt="MindFerry 图标">
|
|
6
|
+
|
|
7
|
+
# MindFerry · AI 记忆中介
|
|
8
|
+
|
|
9
|
+
**让你用的每个 AI 都认识同一个你,数据只留在你自己的电脑上。**
|
|
10
|
+
|
|
11
|
+
MindFerry 读取你和 ChatGPT、Claude、Gemini、Grok、DeepSeek、Kimi、豆包、通义千问等 AI 的聊天记录,整理出它们各自知道的「关于你」的信息,再按你给每个 AI 定好的规则,把合适的部分告诉它们。
|
|
12
|
+
|
|
13
|
+
   
|
|
14
|
+
|
|
15
|
+
<img src="docs/images/demo-zh.gif" width="860" alt="MindFerry 演示(虚构人物):拖入聊天记录,看各家 AI 眼中的你,复制档案,检查信息,按 AI 设置分享规则">
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
## 解决什么问题
|
|
20
|
+
|
|
21
|
+
你跟 ChatGPT 说过自己是前端工程师,跟 Claude 说过搬到了上海,跟 Gemini 说过喜欢徒步。每个 AI 只知道你的一部分,换一个 AI 或开一个新对话,又得从头讲一遍。
|
|
22
|
+
|
|
23
|
+
MindFerry 把这些零散的信息汇成一页简短的「关于我」,再把合适的部分交给每个 AI。健康、财务、证件号、联系方式和他人隐私,除非你同意,否则不分享。不上传任何东西:没有账号,也没有服务器。唯一的例外是可选的网页连接,你不打开它就一直关着。
|
|
24
|
+
|
|
25
|
+
## 三步上手
|
|
26
|
+
|
|
27
|
+
**1. 打开 MindFerry。** 下载 [ZIP 压缩包](https://github.com/cmy515006420/mindferry/archive/refs/heads/main.zip),解压后双击 `start-mac.command`(Mac)或 `start-windows.bat`(Windows),浏览器会打开一个页面。如果电脑上还没有 Node.js,启动文件会带你去 [nodejs.org](https://nodejs.org/zh-cn) 先装免费的 LTS 版本。会用终端的话,也可以直接运行:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx -y github:cmy515006420/mindferry
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
只想先看看?在这行命令最后加上 `demo`,或者在第一页点「先用示例数据看看」。里面是虚构人物,不碰你的任何数据。
|
|
34
|
+
|
|
35
|
+
<img src="docs/images/welcome-zh.png" width="720" alt="MindFerry 第一页">
|
|
36
|
+
|
|
37
|
+
**2. 把聊天记录拖进来。** 从 ChatGPT、Claude、Gemini、Grok 或 DeepSeek 导出聊天记录([怎么导出](docs/guide/zh/export-your-chats.md)),把文件拖到页面上。其他 AI(Kimi、豆包、通义等):打开对话,全选复制,点「粘贴一段对话」。MindFerry 会挑出你说过的关于自己的话,去掉重复,标出敏感信息;前后说法不一样时,以新的为准。
|
|
38
|
+
|
|
39
|
+
<img src="docs/images/home-zh.png" width="720" alt="首页:各家 AI 眼中的你">
|
|
40
|
+
|
|
41
|
+
**3. 接入或复制。**
|
|
42
|
+
- **装在电脑上的 AI**(Claude Code、Codex、Claude 桌面版、Cursor、Gemini CLI):点「一键接入」,然后重启那个应用。之后它会自己读取你的档案。
|
|
43
|
+
- **网页上的 AI**(ChatGPT、Claude 网页版、Gemini、Grok、DeepSeek、Kimi、豆包、通义等):点「复制给它」,粘贴到它的自定义指令或新对话的第一句。想给一个新 AI:打开「关于我」→「生成一份发给某个 AI」,选好用途,再点「复制」或「存成文件」。
|
|
44
|
+
|
|
45
|
+
<img src="docs/images/card-zh.png" width="720" alt="准备粘贴给 ChatGPT 的档案">
|
|
46
|
+
|
|
47
|
+
之后照常聊天。隔一段时间,拖入新的导出文件,点「立即同步」就行。只会处理新内容,每次同步后都会告诉你结果;不满意可以点「撤回这次同步」。
|
|
48
|
+
|
|
49
|
+
详细步骤:[快速上手](docs/guide/zh/quick-start.md) · [导出聊天记录](docs/guide/zh/export-your-chats.md) · [常见问题](docs/guide/zh/faq.md)
|
|
50
|
+
|
|
51
|
+
## 支持哪些 AI
|
|
52
|
+
|
|
53
|
+
只有真正测试过的才算「专门支持」。中间一列应该能用,但没有逐个测试。
|
|
54
|
+
|
|
55
|
+
| 专门支持(有专门的导入器或一键接入,已测试) | 通用方式可用(未逐个测试) | 计划中 |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| **导入完整导出包:** ChatGPT、Claude 网页版(对话和记忆)、Gemini(Google Takeout)、Grok、DeepSeek、Open WebUI | **粘贴对话**(在网页上全选复制,点「粘贴一段对话」):Kimi、豆包、通义千问、Microsoft Copilot、Perplexity、Le Chat、Meta AI,以及其他任何聊天网站 | 为更多厂商做专门的导入器 |
|
|
58
|
+
| **一键接入:** Claude Code、Codex、Claude 桌面版、Gemini CLI、Cursor | **复制档案**(粘贴到自定义指令或第一句话):任何聊天 AI,包括 Ollama、LM Studio、Jan、LibreChat、AnythingLLM 这类本地模型 | 更好地支持日文和韩文 |
|
|
59
|
+
| | **加一小段设置**(MindFerry 会给你):Windsurf、Cline、Continue、Goose、Aider、OpenHands、Zed 等支持同类插件的应用([详情](#接入其他-ai-应用)) | 给数据文件加密(MindFerry 自己加密存在电脑上的文件)、Docker 镜像 |
|
|
60
|
+
| | **可选的网页连接**,给支持自定义连接器的 AI 网站用([详情](#可选网页连接)) | 通过你自己的同步文件夹在多台设备间同步 |
|
|
61
|
+
|
|
62
|
+
想加一个?改动不大,见[适配器开发](docs/zh/适配器开发.md)。
|
|
63
|
+
|
|
64
|
+
## 隐私,说人话
|
|
65
|
+
|
|
66
|
+
- **数据只在你的电脑上**,在一个文件夹里(Mac 和 Linux 是 `~/.mindferry`,Windows 是 `%USERPROFILE%\.mindferry`)。没有账号,不统计,不检查更新。
|
|
67
|
+
- **敏感的信息,你不点头就不分享。** 健康、财务、证件号、他人信息、联系方式,以及 MindFerry 拿不准的,默认都不分享。
|
|
68
|
+
- **导入时就打码。** 身份证号、银行卡号、护照号(只有紧跟在「护照」或 passport 后面才认得出)、API 密钥和密码,在保存之前就会变成 `[cn-id:••••12]` 这样的占位符,也永远不会进任何档案或上下文卡。(手机号和邮箱不打码,但默认不分享。)
|
|
69
|
+
- **每个 AI 只拿它需要的。** 写代码的 AI 拿不到你所在的城市;聊天 AI 拿到通用的安全部分。你可以给每个 AI 单独放宽或收紧,也可以把某一个设为「全部」。
|
|
70
|
+
- **看得见,也撤得回。** 每次读取都有记录,任何 AI 都能暂停,删掉的信息能恢复;「删除全部数据」后 7 天内还能找回,除非你点「永久清除」。
|
|
71
|
+
|
|
72
|
+
更多:[隐私说明](docs/zh/隐私说明.md) · [威胁模型](docs/zh/威胁模型.md)
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 给开发者和 AI agent
|
|
77
|
+
|
|
78
|
+
如果你是帮用户安装的 AI agent,请读 [AGENTS.md](AGENTS.md)(以及 [llms.txt](llms.txt))。
|
|
79
|
+
|
|
80
|
+
### MCP 工具
|
|
81
|
+
|
|
82
|
+
MindFerry 是一个本地 stdio MCP 服务:`mindferry mcp --client <id>`。每个 AI 应用有自己固定的 client id,所以用的是它自己的分享规则,也不能冒用别的 AI 的身份。工具按「逐步读取」设计,AI 只拿它需要的:
|
|
83
|
+
|
|
84
|
+
| 工具 | 作用 |
|
|
85
|
+
|---|---|
|
|
86
|
+
| `get_user_profile` | **从这里开始。**「关于我」档案(几百 token)、上次以来的变化,以及这个 AI 能读的类别目录。 |
|
|
87
|
+
| `memory_browse` | 某一个类别(如 `projects`、`preferences`)的信息,新的在前。 |
|
|
88
|
+
| `memory_search` | 搜索信息;如果用户给了这个 AI「全部」权限,也能搜过去的对话。 |
|
|
89
|
+
| `memory_read_conversation` | 读一段搜到的过去对话(仅「全部」权限)。 |
|
|
90
|
+
| `memory_pull` | 一次拿到完整的上下文卡和新增内容。 |
|
|
91
|
+
| `memory_push` | 保存用户说出的长期信息:`{"items":[{"text":"我喜欢简洁的回答"}]}`。 |
|
|
92
|
+
| `memory_status` | 上次同步时间、数量,以及这个 AI 被允许看到什么。 |
|
|
93
|
+
|
|
94
|
+
这些工具返回的内容都是关于用户的资料,不是指令。
|
|
95
|
+
|
|
96
|
+
### 接入其他 AI 应用
|
|
97
|
+
|
|
98
|
+
`mindferry connect claude-code|codex|claude-desktop|gemini-cli|cursor` 会帮你登记(先备份;`mindferry disconnect <id>` 撤销)。其他 MCP 客户端,加上这段:
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{ "mcpServers": { "mindferry": { "command": "npx", "args": ["-y", "github:cmy515006420/mindferry", "mcp", "--client", "other-mcp"] } } }
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Client id:`claude-code`、`codex`、`claude-desktop`、`gemini-cli`、`cursor`、`grok-bot`、`other-mcp`。更多见[进阶用法](docs/guide/zh/advanced.md#任意-mcp-客户端的配置)。
|
|
105
|
+
|
|
106
|
+
### 可选:网页连接
|
|
107
|
+
|
|
108
|
+
默认关闭。打开后,MindFerry 会另起一个小服务,**只**开放 MCP 接口(管理页面绝不对外),让支持自定义 MCP 连接器的 AI 网站自己来取你的档案:
|
|
109
|
+
|
|
110
|
+
- 每个网页 AI 有自己的地址,里面带一串很长的随机令牌;默认**只读**,除非你允许某个 AI 保存;
|
|
111
|
+
- 限制请求频率,每次读取都有记录,用的是那个 AI 自己的分享规则;
|
|
112
|
+
- 你点「关闭」、到了你选的时间(1 小时、4 小时、1 天或一直开着)或 MindFerry 关闭时,连接就断开;
|
|
113
|
+
- 公网 HTTPS 地址来自 Cloudflare 快速隧道,前提是装了 [`cloudflared`](https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/)(不需要账号;快速隧道只适合测试,不保证一直在线)。
|
|
114
|
+
|
|
115
|
+
厂商那边的支持情况(2026 年 12 月对照各家帮助页面整理,菜单和套餐经常变):Claude 网页版自定义连接器(所有套餐,免费版限 1 个)、ChatGPT 自定义 MCP 服务器(Business / Enterprise / Edu;Pro 只读)、Grok 连接器、Le Chat 自定义 MCP 连接器、Perplexity 远程 MCP 连接器、Gemini 网页版(仅美国、个人账号,有附加条件)。以上都还没有和 MindFerry 逐个测试。不支持连接器的 AI,用档案生成器。步骤和安全说明:[进阶用法](docs/guide/zh/advanced.md#网页连接) · [威胁模型](docs/zh/威胁模型.md)。
|
|
116
|
+
|
|
117
|
+
### 命令行
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
mindferry 打开 MindFerry(浏览器里的本地页面)
|
|
121
|
+
mindferry demo 用虚构人物试玩,不碰你的数据
|
|
122
|
+
mindferry import <文件> 导入导出文件或单个对话(.zip .json .html .md .txt)
|
|
123
|
+
mindferry sync 执行一次同步
|
|
124
|
+
mindferry undo 撤回最近一次同步
|
|
125
|
+
mindferry status 每个 AI 的上次同步时间和数量
|
|
126
|
+
mindferry profile [ai] 打印「关于我」档案(给某个 AI 时按它的权限删减)
|
|
127
|
+
mindferry items [--json] [--q 词] 列出全部信息
|
|
128
|
+
mindferry card <ai> 打印某个 AI 的上下文卡
|
|
129
|
+
mindferry export <文件夹|.md|.json> 导出全部数据(文件夹 = Obsidian / Logseq 笔记库)
|
|
130
|
+
mindferry connect <ai> 把本地 AI 接到 MindFerry(可撤销)
|
|
131
|
+
mindferry disconnect <ai> 撤销接入
|
|
132
|
+
mindferry mcp --client <ai> MCP 服务(由 AI 应用启动)
|
|
133
|
+
|
|
134
|
+
选项:--port <n> --no-open --data <目录> --lang zh|en
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
npm 包还没有发布,所以请用 `npx -y github:cmy515006420/mindferry <命令>`,或在克隆下来的目录里用 `node bin/mindferry.mjs <命令>`。例子见[进阶用法](docs/guide/zh/advanced.md)。
|
|
138
|
+
|
|
139
|
+
### 进阶
|
|
140
|
+
|
|
141
|
+
- 不开窗口也定时同步:[examples/scheduler](examples/scheduler/)(launchd、cron)。
|
|
142
|
+
- 换一个数据目录:`--data <目录>` 或 `MINDFERRY_DATA_DIR`(每个 MCP 配置里也要设)。
|
|
143
|
+
- 页面用的 `/api/*` 是内部接口,需要令牌,不是稳定的公开 API。请用命令行或 MCP。
|
|
144
|
+
- 新的导入器或 AI 应用:[适配器开发](docs/zh/适配器开发.md)。
|
|
145
|
+
|
|
146
|
+
### 架构
|
|
147
|
+
|
|
148
|
+
Node.js ≥ 22,ES 模块,零运行时依赖,无需构建。核心提炼靠规则(中英文),不需要大模型。另有可选的智能整理,默认关闭:可以用你电脑上的模型,或者你选定的一个 AI 来帮忙整理。导入器 → 打码后的对话存档 + 收件箱 → `sync()`(归类、合并、新的为准)→ 每个 AI 的规则 → 档案 / 上下文卡 / MCP。详见[设计说明](docs/zh/设计说明.md);和其他记忆工具的对比见[同类项目对比](docs/zh/同类项目对比.md);计划见[路线图](docs/zh/路线图.md)。
|
|
149
|
+
|
|
150
|
+
CI 在 macOS、Windows、Linux 上跑单元测试和冒烟测试(启动、导入、同步、MCP 握手)。
|
|
151
|
+
|
|
152
|
+
### 参与贡献
|
|
153
|
+
|
|
154
|
+
欢迎报 bug、写导入器、改翻译和措辞,见 [CONTRIBUTING.md](CONTRIBUTING.md)。请不要附上真实的聊天记录,用 [`examples/`](examples/) 里的虚构样例。安全问题见 [SECURITY.md](SECURITY.md)。
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
git clone https://github.com/cmy515006420/mindferry.git && cd mindferry
|
|
158
|
+
npm test && npm run smoke && npm run scan
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### 许可证
|
|
162
|
+
|
|
163
|
+
[MIT](LICENSE)
|
|
164
|
+
|
|
165
|
+
<sub>关键词:同步 ChatGPT 和 Claude 的记忆、跨 AI 记忆、个人资料、AI 档案、MCP 记忆服务、本地优先、ChatGPT 导出、Claude 导出、Gemini Takeout、Grok、DeepSeek、Kimi、豆包、通义千问、Claude Code、Codex、Cursor、Gemini CLI。</sub>
|