diff --git a/README.md b/README.md
index 8c8dc73b4..8d6881d68 100644
--- a/README.md
+++ b/README.md
@@ -268,7 +268,7 @@ Find them under Plugins › Discover › Gateway middleware. See [Gateway middle
## Privacy
-Your prompts, replies, keys and accounts go only to the providers you use. Once a day a released magpie tells us it is in use: a random id, its version and system, and which agents, providers and models it is used with, by magpie's own ids (a provider you added yourself is only `custom`), and for each partner listed first in the add sheet, how many times a day it was shown, opened and added (counts only). No names, URLs, accounts, keys, prompts or usage. Turn part or all of it off in **Settings → Privacy**, or with `DO_NOT_TRACK=1`. A partner's website and key links go through `usemagpie.ai/go/…`, which counts the click, and usemagpie.ai counts fetches of the partner list; the server sees these whatever the settings, and keeps no id or address. Icons named by a plugin, an import link or the library are fetched through `usemagpie.ai/api/icon`, so their hosts see Cloudflare's address, not yours; the server only passes the picture on, and counts and keeps nothing. [What is sent, exactly](docs/reference.md#counting-users).
+Your prompts, replies, keys and accounts go only to the providers you use. Once a day a released magpie tells us it is in use: a random id, its version and system, and which agents, providers and models it is used with, by magpie's own ids (a provider you added yourself is only `custom`), and for each partner listed first in the add sheet, how many times a day it was shown, opened and added (counts only). No names, URLs, accounts, keys, prompts or usage. Turn part or all of it off in **Settings → Privacy**, or with `DO_NOT_TRACK=1`. A partner's website and key links go through `usemagpie.ai/go/…`, which counts the click, and usemagpie.ai counts fetches of the partner list; the server sees these whatever the settings, and keeps no id or address. Icons named by a plugin, an import link or the library are fetched through `usemagpie.ai/api/icon`, so their hosts see Cloudflare's address, not yours; the server only passes the picture on, and counts and keeps nothing. The [Privacy page](https://usemagpie.ai/docs/privacy) lists everything magpie sends by itself, with an example and every switch; the [reference](docs/reference.md#counting-users) has the rules.
## Community
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 02a228343..551b050b7 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -268,7 +268,7 @@ magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}}
## 隐私
-你的提示词、回复、密钥和账号只发给你用的供应商。正式版 magpie 每天告诉我们一次它在用:一个随机 ID、版本和系统,以及用了哪些 agent、供应商和模型,只用 magpie 自己的 ID(你自己添加的供应商只记作 `custom`),以及添加供应商页里排在最前的合作伙伴每天被展示、打开和添加的次数(只有次数)。不发送名称、URL、账号、密钥、提示词和用量。可以在 **设置 → 隐私** 里关掉一部分或全部,也可以设 `DO_NOT_TRACK=1`。合作伙伴的官网和获取 Key 链接经 `usemagpie.ai/go/…` 跳转并计一次点击,usemagpie.ai 也统计合作伙伴列表的拉取次数;这是服务器本身看到的,不受设置影响,不记录 ID 和 IP。插件、导入链接和库里的图标经 `usemagpie.ai/api/icon` 获取,图标所在的服务器只看到 Cloudflare 的地址,看不到你的 IP;这台服务器只转发图片,不计数也不记录。[具体发送哪些内容](docs/reference.md#counting-users)。
+你的提示词、回复、密钥和账号只发给你用的供应商。正式版 magpie 每天告诉我们一次它在用:一个随机 ID、版本和系统,以及用了哪些 agent、供应商和模型,只用 magpie 自己的 ID(你自己添加的供应商只记作 `custom`),以及添加供应商页里排在最前的合作伙伴每天被展示、打开和添加的次数(只有次数)。不发送名称、URL、账号、密钥、提示词和用量。可以在 **设置 → 隐私** 里关掉一部分或全部,也可以设 `DO_NOT_TRACK=1`。合作伙伴的官网和获取 Key 链接经 `usemagpie.ai/go/…` 跳转并计一次点击,usemagpie.ai 也统计合作伙伴列表的拉取次数;这是服务器本身看到的,不受设置影响,不记录 ID 和 IP。插件、导入链接和库里的图标经 `usemagpie.ai/api/icon` 获取,图标所在的服务器只看到 Cloudflare 的地址,看不到你的 IP;这台服务器只转发图片,不计数也不记录。[隐私页](https://usemagpie.ai/docs/zh/privacy)列出了 magpie 自己发出的所有内容,附示例和每个开关;规则见[参考文档](docs/reference.md#counting-users)。
## 社区
diff --git a/docs/reference.md b/docs/reference.md
index 0b4b1e533..0cc983686 100644
--- a/docs/reference.md
+++ b/docs/reference.md
@@ -2469,12 +2469,16 @@ MAGPIE_GITHUB_MIRROR=https://gh.example magpie serve
- `~/.config/magpie/stash.json` — values magpie replaced, restored on switch-back
- `~/.config/magpie/plugins.json`, `plugins/` — the plugins added, and their packages
- `~/.config/magpie/plugin-auth.json` — the plugins' sign-ins (0600)
+- `~/.config/magpie/install-id`, `stats-sent` — the [user count](#counting-users)'s
+ random id and the last day it went
- `~/.cache/magpie/bun//magpie-bun` — the Bun plugins run on, named
so that a proxy app's PROCESS-NAME rule can match it (`magpie-bun.exe` on
Windows)
- `~/.cache/magpie/models.json` — models.dev catalog (OpenCode's cache at
`~/.cache/opencode/models.json` is used when present)
- `~/.cache/magpie/models/.json` — model lists fetched from vendors
+- `~/.cache/magpie/partner-counts.json` — partner counts not yet sent (at most
+ 14 days)
`XDG_CONFIG_HOME` and `XDG_CACHE_HOME` are respected.
@@ -2482,8 +2486,10 @@ MAGPIE_GITHUB_MIRROR=https://gh.example magpie serve
Once a day, a running magpie (the app, or `magpie serve`) sends one event to
PostHog so we know how many people use it: a random id made up on your
-computer (`~/.config/magpie/install-id`), magpie's version, and your system
-and architecture.
+computer (`~/.config/magpie/install-id`, made the first time the event is
+sent), magpie's version, and your system and architecture. The day it last
+went is in `~/.config/magpie/stats-sent`, so a day is sent once; the
+event is tried at start and then every hour.
With it goes what magpie is used with, so we know which agents, providers
and models to look after first, by magpie's own ids only:
@@ -2502,14 +2508,17 @@ and models to look after first, by magpie's own ids only:
- for each partner (a sponsor listed first in the add sheet), by its id, how
many times a day the add sheet showed it, its row was opened, its key
page was opened and a provider was added from it (at most 20 of each,
- 5 adds), sent the day after as `magpie partner` events.
+ 5 adds), kept in `~/.cache/magpie/partner-counts.json` for at most 14
+ days and sent the day after as `magpie partner` events.
No names, base URLs, accounts, keys, prompts or usage go. Turn that part off
in Settings → Privacy → Share the agents, providers and models I use; the
day's event then has the id, version and system only. Turn it all off in
Settings → Privacy → Count me as a user, or with `DO_NOT_TRACK=1` or
`MAGPIE_NO_STATS=1`. Builds from source never send it. The code is
-[internal/stats](../internal/stats/stats.go).
+[internal/stats](../internal/stats/stats.go). Deleting `install-id` makes a
+new one at the next send. The [Privacy page](https://usemagpie.ai/docs/privacy)
+shows a whole batch and everything else magpie sends by itself.
Partners are also counted where usemagpie.ai sees them, whatever these
settings say, as any website sees its visits. The partner list
diff --git a/site/public/docs/docker.html b/site/public/docs/docker.html
index 5f17e7bf8..27fc9d0aa 100644
--- a/site/public/docs/docker.html
+++ b/site/public/docs/docker.html
@@ -48,6 +48,7 @@
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateReleases
@@ -215,6 +216,7 @@ docker logs magpie
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateGitHub
diff --git a/site/public/docs/import.html b/site/public/docs/import.html
index 559c09a1f..bbc87936c 100644
--- a/site/public/docs/import.html
+++ b/site/public/docs/import.html
@@ -48,6 +48,7 @@
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateReleases
@@ -259,6 +260,7 @@ href = "https://usemagpie.ai/import#" + urlencode({
PluginsRemote magpieDocker
+ PrivacyGitHubDiscordReleases
diff --git a/site/public/docs/integrate.html b/site/public/docs/integrate.html
index ab137e4ec..f9a984614 100644
--- a/site/public/docs/integrate.html
+++ b/site/public/docs/integrate.html
@@ -47,6 +47,7 @@
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateReleases
@@ -151,6 +152,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateGitHub
diff --git a/site/public/docs/intent.html b/site/public/docs/intent.html
index ec76f56c8..fe5119c2d 100644
--- a/site/public/docs/intent.html
+++ b/site/public/docs/intent.html
@@ -48,6 +48,7 @@
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateReleases
@@ -320,6 +321,7 @@ The number of its kind (0 for none):
PluginsRemote magpieDocker
+ PrivacyAdd to magpieIntegrateGitHub
diff --git a/site/public/docs/ja/docker.html b/site/public/docs/ja/docker.html
index bf8818d3e..b8ffa92f4 100644
--- a/site/public/docs/ja/docker.html
+++ b/site/public/docs/ja/docker.html
@@ -48,6 +48,7 @@
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携リリース
@@ -215,6 +216,7 @@ docker logs magpie
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携GitHub
diff --git a/site/public/docs/ja/import.html b/site/public/docs/ja/import.html
index 4377203ab..51ff07bed 100644
--- a/site/public/docs/ja/import.html
+++ b/site/public/docs/ja/import.html
@@ -48,6 +48,7 @@
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携リリース
@@ -259,6 +260,7 @@ href = "https://usemagpie.ai/import#" + urlencode({
プラグインリモート magpieDocker
+ プライバシーGitHubDiscordリリース
diff --git a/site/public/docs/ja/intent.html b/site/public/docs/ja/intent.html
index 960d1a4d7..3f06074b8 100644
--- a/site/public/docs/ja/intent.html
+++ b/site/public/docs/ja/intent.html
@@ -48,6 +48,7 @@
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携リリース
@@ -320,6 +321,7 @@ The number of its kind (0 for none):
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携GitHub
diff --git a/site/public/docs/ja/plugins.html b/site/public/docs/ja/plugins.html
index 4bd78ac4e..ffa638724 100644
--- a/site/public/docs/ja/plugins.html
+++ b/site/public/docs/ja/plugins.html
@@ -48,6 +48,7 @@
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携リリース
@@ -775,6 +776,7 @@ magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}}
プラグインリモート magpieDocker
+ プライバシーmagpie に追加アプリ連携GitHub
diff --git a/site/public/docs/ja/privacy.html b/site/public/docs/ja/privacy.html
new file mode 100644
index 000000000..f9b6d4d04
--- /dev/null
+++ b/site/public/docs/ja/privacy.html
@@ -0,0 +1,226 @@
+
+
+
+
+
+プライバシー · magpie ドキュメント
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
モデル:つないだエージェントに設定されたモデルを、プロバイダー ID とベンダーのモデル ID で(deepseek/deepseek-v4)。キーのプロバイダーで models.dev に載っていないモデル ID(ローカルモデル、ファインチューン)は <プロバイダー>/other、自分のプロバイダーのモデルは custom、ルーティンググループは group です。
Your prompts, replies, keys and accounts go only to the providers you use; magpie has no server of its own in that path. This page lists everything magpie sends by itself, beside those requests, and every switch that stops it. It is written from the code, which is linked in each section.
Once a day (UTC), a running release of magpie (the app, or magpie serve) sends one batch to PostHog, so we know how many people use it and which agents, providers and models to look after first. It is sent at start and then looked at every hour; a day already sent is skipped. Builds from source never send it.
+
The batch has one magpie active event with:
+
+
a random id made up on your computer (32 hex characters, tied to nothing about you or the machine), sent as distinct_id;
+
magpie’s version, kind (app or serve), your system ($os) and architecture;
+
how many agents, providers and models it is used with, and how many routing groups (left out when you turn off sharing what you use).
+
+
Unless you turn that part off, one magpie uses event follows for each agent, provider and model, by magpie’s own ids only (at most 50 of each):
+
+
agents connected to magpie: claude, codex. A WSL distro or an omp profile name is cut off (omp).
+
providers that are on: a preset’s id (deepseek), a subscription’s (codex, copilot), a known community plugin’s (plugin:kiro). A provider you added yourself is only custom; any other plugin only plugin.
+
models the connected agents are set to, as provider id and vendor model id (deepseek/deepseek-v4). On a key’s provider, a model id that models.dev doesn’t list (a local model, a fine-tune) is only <provider>/other; a model on your own provider is custom; a routing group is group.
+
+
With them go magpie partner events: for each partner listed first in the add sheet, by its id, how many times on a day that has ended the sheet showed it, its row was opened, its key page was opened, and a provider was added from it (what: shown, opened, keys, added; at most 20 a day each, 5 adds). Counts only, never a provider of your own.
+
Every event carries $process_person_profile: false, so PostHog keeps no person profile for the id. No names, base URLs, accounts, keys, prompts, replies or usage are sent. A whole batch looks like this:
Settings → Privacy → Count me as a user off, or "noStats": true in settings.json stops the whole daily count.
+
DO_NOT_TRACK=1 or MAGPIE_NO_STATS=1 in magpie’s environment (any value but empty, 0 or false) stops the whole daily count, whatever the settings say.
+
Settings → Privacy → Share the agents, providers and models I use off, or "noUsageStats": true leaves out the magpie uses and magpie partner events and the counts in magpie active; the id, version and system are still sent. Partner counts stop being kept too.
+
Settings → About → Automatic updates off, or "noAutoUpdate": true stops magpie asking usemagpie.ai for a newer version by itself (it asks every 6 hours otherwise). This is not part of the count.
+
+
A change in Settings takes effect at the next hourly look; no restart is needed. settings.json sits in magpie’s folder (see below):
The random id, made the first time the count is sent
+
stats-sent
The last day (UTC) the count went, so a day is sent once
+
partner-counts.json (in the cache folder)
Partner counts not yet sent, at most 14 days
+
+
install-id and stats-sent are in magpie’s folder: ~/.config/magpie on macOS and Linux, %USERPROFILE%\.config\magpie on Windows, $XDG_CONFIG_HOME/magpie when that is set, and the data folder of a portable magpie. partner-counts.json is in ~/.cache/magpie ($XDG_CACHE_HOME/magpie, or cache in a portable magpie’s data folder). You can delete any of them: a deleted install-id is replaced by a new random one at the next send, so you are counted as a new user; with the count off, none of them is written again.
magpie asks its own site for a few things, whatever the privacy settings say, as any app asks its update server. None of these requests carries the install id or an account.
+
+
/api/latest: the update feed, every 6 hours unless noAutoUpdate is on, with ?lang= for the notes in your language. /api/notes gives What’s new after an update.
+
/api/partners: the add sheet’s partner list, every 6 hours. One fetch in ten is counted as a magpie partners fetch event, with the country Cloudflare gives, while a partner is listed.
+
/go/<partner>/site and /go/<partner>/keys: a partner’s website and key-page links, opened in your browser, are counted (the partner, which link, a region, a country) as magpie partner go before you are sent on.
+
/api/icon?url=…: icons named by a plugin, an import link or the library are fetched through it, so their hosts see Cloudflare’s address, not yours. The worker passes the picture on and counts and keeps nothing.
+
+
The site’s own pages (these docs, the home page) carry Cloudflare Web Analytics, which counts page views without cookies. The app doesn’t load it. The code is site/worker.js.
To price and name models magpie fetches the models.dev catalog (models.dev/api.json), and for prices in your currency the USD exchange rate from open.er-api.com (kept 12 hours). Plugins and their updates come from the npm registry, and the library’s items from GitHub. These are plain downloads of public data: nothing about you, your providers or your usage is sent, though, as with any request, those hosts see your IP address (or your proxy’s). magpie also asks each of your providers for your allowance and model list, with your own key or sign-in; Settings → Allowances → Allowance reads → When I ask limits those to when you ask.
magpie can export each gateway request to an OpenTelemetry collector of yours (Langfuse, for example). It is off by default, and goes only to the endpoint you set, never to us. When on, it sends per-request spans: agent, provider, model, token counts, status, timing and estimated cost. Optional switches add metrics, local agent conversations, and the request and reply bodies (secrets masked). Turn it on in Settings → Observability, or for magpie serve with MAGPIE_OTEL_ENABLED, MAGPIE_OTEL_ENDPOINT, MAGPIE_OTEL_HEADERS, MAGPIE_OTEL_METRICS, MAGPIE_OTEL_SESSIONS, MAGPIE_OTEL_BODIES and MAGPIE_OTEL_BODIES_WHOLE. An endpoint alone doesn’t turn it on. The reference has the details.
magpie works with dozens of agents and providers, and is maintained by a small team. The daily count is how we know which of them people actually use, so they are kept working first. It is on in releases because counts from those who turn it on would be too few to tell that. In exchange it is kept small: a random id, built-in ids, numbers; one switch or DO_NOT_TRACK=1 turns it off, builds from source never send it, and this page lists everything that goes.
Give the installer and magpie update a proxy: curl -fsSL https://usemagpie.ai/install.sh | sh -s -- --proxy http://127.0.0.1:7890, or magpie update --proxy socks5://127.0.0.1:1080 (http, https, socks5 and socks5h; HTTPS_PROXY and ALL_PROXY are honoured too). --mirror <prefix> fetches the release file from a GitHub download mirror you choose, as <prefix>https://github.com/…; magpie update mirror <prefix> keeps it for every update, the app’s too, and magpie update mirror off removes it. No mirror is used unless you give one, and the file’s SHA-256 still comes from usemagpie.ai, never from the mirror: a file the mirror changed is refused. The app’s own updates go through Settings → Proxy.
What does magpie send about me?
-
Your prompts, replies, keys and accounts go only to the providers you use; magpie has no server of its own in the path. Once a day a released magpie tells us it is in use, so we know how many people use it and what to look after first: a random id made up on your computer, magpie’s version and your system, and which agents, providers and models it is used with, by magpie’s own ids (claude, deepseek, deepseek/deepseek-v4) with how many of each. A provider you added yourself, and a model on it, is only custom. For each partner listed first in the add sheet, how many times a day it was shown, opened and added from goes with them, as counts only. No names, base URLs, accounts, keys, prompts or usage are sent. Settings → Privacy → Share the agents, providers and models I use leaves out the agents, providers and models, and the partner counts; Count me as a user, DO_NOT_TRACK=1 or MAGPIE_NO_STATS=1 turns it all off. Builds from source never send it. A partner's website and key-page links go through usemagpie.ai/go/…, which counts the click (the partner, which link, and a country) before sending you on, and usemagpie.ai counts how many times the partner list is fetched. The server sees these whatever the settings say, as any website sees its visits; no id, address or account is kept with them. Icons named by a plugin, an import link or the library are fetched through usemagpie.ai/api/icon, so their hosts see Cloudflare's address, not yours; the server only passes the picture on, and counts and keeps nothing. The details are in the reference.
+
Your prompts, replies, keys and accounts go only to the providers you use; magpie has no server of its own in the path. Once a day a released magpie tells us it is in use, so we know how many people use it and what to look after first: a random id made up on your computer, magpie’s version and your system, and which agents, providers and models it is used with, by magpie’s own ids (claude, deepseek, deepseek/deepseek-v4) with how many of each. A provider you added yourself, and a model on it, is only custom. For each partner listed first in the add sheet, how many times a day it was shown, opened and added from goes with them, as counts only. No names, base URLs, accounts, keys, prompts or usage are sent. Settings → Privacy → Share the agents, providers and models I use leaves out the agents, providers and models, and the partner counts; Count me as a user, DO_NOT_TRACK=1 or MAGPIE_NO_STATS=1 turns it all off. Builds from source never send it. A partner's website and key-page links go through usemagpie.ai/go/…, which counts the click (the partner, which link, and a country) before sending you on, and usemagpie.ai counts how many times the partner list is fetched. The server sees these whatever the settings say, as any website sees its visits; no id, address or account is kept with them. Icons named by a plugin, an import link or the library are fetched through usemagpie.ai/api/icon, so their hosts see Cloudflare's address, not yours; the server only passes the picture on, and counts and keeps nothing. The Privacy page lists everything magpie sends by itself, with an example of the daily count, the files it keeps and every switch.
The agent gets 502 or can’t connect, and nothing shows in magpie’s Routing tab?
A proxy app (Surge, Clash, mihomo and the like, with system proxy, TUN or enhanced mode on) has taken the agent’s request to http://127.0.0.1:3425 and sent it somewhere else, so it never reaches magpie. The bypass list (skip-proxy, “bypass”) isn’t always enough: some agents, Codex among them, send it through the proxy anyway. Add rules that send the local addresses direct, ahead of your other rules: