From f64d9312ff0796d4be0ba483e348ae613d1bf35e Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 13 Oct 2026 18:01:53 +0800 Subject: [PATCH] site, docs: a Privacy page lists everything magpie sends and how to turn it off (#1986) #1986 asked what the daily count sends, where the id lives and how to stop it. The answer was spread over one README paragraph and the reference. A new page, /docs/privacy (en, zh, ja), lists it from the code: - the daily PostHog batch (internal/stats): a whole example, the label rules for agents/providers/models, partner counts, the $process_person_profile:false flag; - every switch: Settings -> Privacy's two toggles, noStats/noUsageStats, DO_NOT_TRACK / MAGPIE_NO_STATS, noAutoUpdate (About -> Automatic updates), and that a change applies at the next hourly look; - the files: install-id (made at the first send, not at first run, as the issue said) and stats-sent in settings.Dir(), partner-counts.json in the cache folder, their paths per OS and portable, and deleting them; - what usemagpie.ai sees whatever the settings (update feed every 6h, notes, partner list with its 1-in-10 sampled count, /go links, the icon proxy) and the Cloudflare Web Analytics on the site's own pages; - public lists fetched (models.dev, open.er-api.com, npm, GitHub) and providers' quota reads with the user's own accounts; - OTLP export, off by default, its env vars; - why the count stays on by default in releases. Every docs page in all three languages gets a Privacy link in its nav and footer. README (en, zh) and start.html's "What does magpie send about me?" (en, zh, ja) link to the page. docs/reference.md's Files list gains install-id, stats-sent and partner-counts.json, and Counting users says when the id is made, the hourly try, and links the page. Checked against: internal/stats/stats.go, usage.go, provider/partner_events.go, settings (NoStats, NoUsageStats, NoAutoUpdate, UpdateEvery 360, otel.go), appdir, update, fx, catalog, site/worker.js, and the GUI's Settings tabs/labels in index.html, app.js and i18n.js (zh, ja). Run: Playwright (Chromium and WebKit) on all three pages at 1100 and 420 wide, light and dark: no horizontal scroll, no element past the viewport, no page errors (24/24), screenshots looked at for zh at 420 dark. Every href/anchor in site/public/docs resolves; relative links in README and reference resolve. node site/worker.test.mjs passes. Not run: the page on the deployed worker (the site deploys by hand with wrangler, so it is live at the next deploy); the language redirect for /docs/privacy was not exercised beyond the worker's existing tests. --- README.md | 2 +- README.zh-CN.md | 2 +- docs/reference.md | 17 ++- site/public/docs/docker.html | 2 + site/public/docs/import.html | 2 + site/public/docs/integrate.html | 2 + site/public/docs/intent.html | 2 + site/public/docs/ja/docker.html | 2 + site/public/docs/ja/import.html | 2 + site/public/docs/ja/intent.html | 2 + site/public/docs/ja/plugins.html | 2 + site/public/docs/ja/privacy.html | 226 +++++++++++++++++++++++++++++ site/public/docs/ja/remote.html | 2 + site/public/docs/ja/start.html | 4 +- site/public/docs/plugins.html | 2 + site/public/docs/privacy.html | 226 +++++++++++++++++++++++++++++ site/public/docs/remote.html | 2 + site/public/docs/start.html | 4 +- site/public/docs/zh/docker.html | 2 + site/public/docs/zh/import.html | 2 + site/public/docs/zh/integrate.html | 2 + site/public/docs/zh/intent.html | 2 + site/public/docs/zh/plugins.html | 2 + site/public/docs/zh/privacy.html | 226 +++++++++++++++++++++++++++++ site/public/docs/zh/remote.html | 2 + site/public/docs/zh/start.html | 4 +- 26 files changed, 736 insertions(+), 9 deletions(-) create mode 100644 site/public/docs/ja/privacy.html create mode 100644 site/public/docs/privacy.html create mode 100644 site/public/docs/zh/privacy.html 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 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -215,6 +216,7 @@ docker logs magpie Plugins Remote magpie Docker + Privacy Add to magpie Integrate GitHub 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 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -259,6 +260,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ Plugins Remote magpie Docker + Privacy GitHub Discord Releases 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 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -151,6 +152,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"Plugins Remote magpie Docker + Privacy Add to magpie Integrate GitHub 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 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -320,6 +321,7 @@ The number of its kind (0 for none): Plugins Remote magpie Docker + Privacy Add to magpie Integrate GitHub 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 @@ プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 リリース @@ -215,6 +216,7 @@ docker logs magpie プラグイン リモート magpie Docker + プライバシー 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 @@ プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 リリース @@ -259,6 +260,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ プラグイン リモート magpie Docker + プライバシー GitHub Discord リリース 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 @@ プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 リリース @@ -320,6 +321,7 @@ The number of its kind (0 for none): プラグイン リモート magpie Docker + プライバシー 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 @@ プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 リリース @@ -775,6 +776,7 @@ magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}} プラグイン リモート magpie Docker + プライバシー 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 ドキュメント + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · プライバシー

+

プライバシー

+

プロンプト、返答、キー、アカウントは、使っているプロバイダーにだけ送られます。間に magpie 自身のサーバーはありません。このページは、それ以外に magpie が自分から送るものすべてと、それを止めるスイッチを挙げます。内容はコードから書いており、各節にコードへのリンクがあります。

+ +
+ + + + + +
内容送り先既定止め方
毎日のカウントPostHog(us.i.posthog.com)リリース版でオン。ソースからのビルドは送らない設定 → プライバシー、DO_NOT_TRACK=1
更新確認、リリースノート、パートナー一覧、アイコンusemagpie.aiオン更新確認は noAutoUpdate。ほかはアプリの動作に必要
モデルカタログと為替レートmodels.dev、open.er-api.comオン切り替え不可。あなたの情報は送らない
OTLP エクスポートあなたが指定したコレクターオフオフのままにする
+ +

毎日のカウント

+

動いているリリース版の magpie(アプリ、または magpie serve)は、1 日(UTC)に 1 回 PostHog へイベントをまとめて送ります。何人が使っていて、どのエージェント、プロバイダー、モデルを優先して面倒を見るべきかを知るためです。起動時に送り、以後 1 時間ごとに確認し、その日すでに送っていれば何もしません。ソースからのビルドは送りません。

+

まとめの中には magpie active イベントが 1 つあり、次を含みます。

+
    +
  • このコンピューターで作ったランダムな ID(16 進 32 文字。あなたやマシンとは無関係)。distinct_id として送ります。
  • +
  • magpie のバージョン、kind(app か serve)、システム($os)とアーキテクチャ。
  • +
  • 使っているエージェント、プロバイダー、モデルの数とルーティンググループの数(使っているものの共有をオフにすると送りません)。
  • +
+

その部分をオフにしない限り、エージェント、プロバイダー、モデルごとに magpie uses イベントが続きます。magpie 自身の ID だけで、それぞれ最大 50 個です。

+
    +
  • エージェント:magpie につないだもの(claude、codex)。WSL のディストリ名や omp のプロファイル名は外します(omp だけ)。
  • +
  • プロバイダー:オンのもの。プリセットの ID(deepseek)、サブスクリプションの ID(codex、copilot)、既知のコミュニティプラグインの ID(plugin:kiro)。自分で追加したプロバイダーは custom、それ以外のプラグインは plugin とだけ記録します。
  • +
  • モデル:つないだエージェントに設定されたモデルを、プロバイダー ID とベンダーのモデル ID で(deepseek/deepseek-v4)。キーのプロバイダーで models.dev に載っていないモデル ID(ローカルモデル、ファインチューン)は <プロバイダー>/other、自分のプロバイダーのモデルは custom、ルーティンググループは group です。
  • +
+

あわせて magpie partner イベントも送ります。プロバイダー追加シートの先頭に載る各パートナーについて、その ID で、終わった日にシートに表示された回数、行が開かれた回数、キーのページが開かれた回数、そこからプロバイダーが追加された回数です(what:shown、opened、keys、added。1 日にそれぞれ最大 20 回、追加は 5 回)。回数だけで、自分のプロバイダーは含みません。

+

どのイベントにも $process_person_profile: false が付き、PostHog はこの ID の人物プロファイルを作りません。名前、Base URL、アカウント、キー、プロンプト、返答、使用量は送りません。まとめ全体はこのような形です。

+
+ POST https://us.i.posthog.com/batch/ + +
{
+  "api_key": "phc_nyDyYyrUTRGvNq5U7FBesCyM2j4GdKeqGp8ko7DBerTC",
+  "batch": [
+    {
+      "event": "magpie active",
+      "distinct_id": "3f9c…(32 hex)",
+      "timestamp": "2026-10-13T08:00:00Z",
+      "properties": {
+        "version": "0.1.1190", "kind": "app", "$os": "Mac OS X", "arch": "arm64",
+        "agents": 2, "providers": 3, "models": 2, "groups": 1,
+        "$process_person_profile": false, "distinct_id": "3f9c…"
+      }
+    },
+    { "event": "magpie uses", "distinct_id": "3f9c…", "timestamp": "2026-10-13T08:00:00Z",
+      "properties": { "kind": "agent", "id": "claude", "$process_person_profile": false, "distinct_id": "3f9c…" } },
+    { "event": "magpie uses", "properties": { "kind": "provider", "id": "custom", … } },
+    { "event": "magpie uses", "properties": { "kind": "model", "id": "deepseek/deepseek-v4", … } },
+    { "event": "magpie partner", "timestamp": "2026-10-12T12:00:00Z",
+      "properties": { "id": "<partner id>", "what": "shown", "count": 3, "day": "2026-10-12", … } }
+  ]
+}
+
+

api_key はプロジェクトの PostHog キーで、イベントを送れるだけで読むことはできません。コードは internal/stats と partner_events.go です。

+ +

オフにする

+

次のスイッチで、その一部または全部を止められます。

+
    +
  • 設定 → プライバシー → ユーザー数に含める をオフ、または settings.json に "noStats": true:毎日のカウント全体。
  • +
  • magpie の環境に DO_NOT_TRACK=1 か MAGPIE_NO_STATS=1(空、0、false 以外の値):設定にかかわらず、毎日のカウント全体。
  • +
  • 設定 → プライバシー → 使っているエージェント、プロバイダー、モデルを共有 をオフ、または "noUsageStats": true:magpie uses と magpie partner イベント、magpie active の数。ID、バージョン、システムは送られます。パートナーの回数も記録しなくなります。
  • +
  • 設定 → 情報 → 自動アップデート をオフ、または "noAutoUpdate": true:magpie が自分から usemagpie.ai に新しいバージョンを尋ねること(そうでなければ 6 時間ごと)。カウントの一部ではありません。
  • +
+

設定の変更は次の 1 時間ごとの確認で反映され、再起動はいりません。settings.json は magpie のフォルダーにあります(下記)。

+
+ settings.json + +
{
+  "noStats": true,
+  "noUsageStats": true,
+  "noAutoUpdate": true
+}
+
+

MAGPIE_STATS_HOST はカウントを別のホストへ送ります(テスト用で、設定するとソースからのビルドも送ります)。

+ +

コンピューター上のファイル

+
+ + + + +
ファイル内容
install-idランダムな ID。初めてカウントを送るときに作られます
stats-sent最後に送った日(UTC)。1 日 1 回にするため
partner-counts.json(キャッシュフォルダー)まだ送っていないパートナーの回数。最大 14 日分
+

install-id と stats-sent は magpie のフォルダーにあります。macOS と Linux では ~/.config/magpie、Windows では %USERPROFILE%\.config\magpie、$XDG_CONFIG_HOME が設定されていれば $XDG_CONFIG_HOME/magpie、ポータブル版ではそのデータフォルダーです。partner-counts.json は ~/.cache/magpie($XDG_CACHE_HOME/magpie、ポータブル版ではデータフォルダーの cache)にあります。どれも削除できます。install-id を消すと次の送信で新しいランダムな ID が作られ、新しいユーザーとして数えられます。カウントをオフにすれば、どれも再び書かれません。

+ +

usemagpie.ai に見えるもの

+

magpie はプライバシー設定にかかわらず、どのアプリも自分の更新サーバーに尋ねるのと同じように、自分のサイトにいくつか尋ねます。どのリクエストにもインストール ID やアカウントは付きません。

+
    +
  • /api/latest:更新情報。noAutoUpdate がオンでなければ 6 時間ごと。?lang= であなたの言語のノートを取ります。/api/notes は更新後の「新機能」です。
  • +
  • /api/partners:プロバイダー追加シートのパートナー一覧。6 時間ごと。パートナーが載っている間、10 回に 1 回の取得を Cloudflare が示す国とともに magpie partners fetch として数えます。
  • +
  • /go/<パートナー>/site と /go/<パートナー>/keys:パートナーの公式サイトとキーのページへのリンクをブラウザーで開くと、移動の前に magpie partner go(どのパートナーか、どのリンクか、地域、国)として数えます。
  • +
  • /api/icon?url=…:プラグイン、インポートリンク、ライブラリが示すアイコンはここを経由して取得するので、アイコンのあるホストに見えるのはあなたではなく Cloudflare のアドレスです。画像を中継するだけで、数えることも記録することもしません。
  • +
+

サイト自身のページ(このドキュメント、ホーム)には Cloudflare Web Analytics が入っており、Cookie を使わずにページビューを数えます。アプリはこれを読み込みません。コードは site/worker.js です。

+ +

magpie が取得する公開リスト

+

モデルの価格と名前のために models.dev のカタログ(models.dev/api.json)を、あなたの通貨で価格を表示するために open.er-api.com から米ドルの為替レート(12 時間保持)を取得します。プラグインとその更新は npm レジストリから、ライブラリの項目は GitHub から取得します。どれも公開データの単なるダウンロードで、あなた、あなたのプロバイダー、使用量については何も送りません。ただし、どのリクエストとも同じく、これらのホストにはあなた(またはプロキシ)の IP アドレスが見えます。magpie は各プロバイダーにも、あなた自身のキーやサインインで残量とモデル一覧を尋ねます。設定 → 利用枠 → 利用枠の読み込み → 手動のみ で、頼んだときに限れます。

+ +

OTLP エクスポート

+

magpie はゲートウェイの各リクエストを、あなたの OpenTelemetry コレクター(Langfuse など)へエクスポートできます。既定ではオフで、送り先はあなたが設定したエンドポイントだけです。私たちには送りません。オンにすると、リクエストごとのスパン(エージェント、プロバイダー、モデル、トークン数、ステータス、時間、推定コスト)を送ります。別のスイッチで、メトリクス、ローカルのエージェント会話、リクエストと返答の本文(シークレットはマスク)を加えられます。設定 → オブザーバビリティ でオンにするか、magpie serve では MAGPIE_OTEL_ENABLED、MAGPIE_OTEL_ENDPOINT、MAGPIE_OTEL_HEADERS、MAGPIE_OTEL_METRICS、MAGPIE_OTEL_SESSIONS、MAGPIE_OTEL_BODIES、MAGPIE_OTEL_BODIES_WHOLE を使います。エンドポイントだけではオンになりません。詳しくはリファレンスを。

+ +

カウントが既定でオンの理由

+

magpie は何十ものエージェントとプロバイダーに対応し、少人数で保守しています。毎日のカウントは、実際に使われているものを知り、それを優先して動くように保つための手段です。リリース版で既定オンなのは、自分でオンにする人の数だけでは少なすぎて、それがわからないからです。その代わり、送るものは小さく保っています。ランダムな ID、組み込みの ID、数だけです。スイッチ 1 つか DO_NOT_TRACK=1 でオフにでき、ソースからのビルドは送らず、送るものはすべてこのページに挙げています。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/remote.html b/site/public/docs/ja/remote.html index 548ddf2b6..7477a7aa8 100644 --- a/site/public/docs/ja/remote.html +++ b/site/public/docs/ja/remote.html @@ -48,6 +48,7 @@ プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 リリース @@ -153,6 +154,7 @@ magpie provider refresh office # 一覧を再取得プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/start.html b/site/public/docs/ja/start.html index e10a87c06..9fbd054ee 100644 --- a/site/public/docs/ja/start.html +++ b/site/public/docs/ja/start.html @@ -48,6 +48,7 @@ プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 リリース @@ -277,7 +278,7 @@ magpie claude group/opus-anywhere # これを使う

インストーラと magpie update にプロキシを渡します:curl -fsSL https://usemagpie.ai/install.sh | sh -s -- --proxy http://127.0.0.1:7890、または magpie update --proxy socks5://127.0.0.1:1080(http・https・socks5・socks5h に対応。HTTPS_PROXY と ALL_PROXY も使われます)。--mirror <prefix> を付けると、指定した GitHub ダウンロードミラーから <prefix>https://github.com/… としてリリースファイルを取得します。magpie update mirror <prefix> でアプリ自身の更新を含め毎回使い、magpie update mirror off で解除します。指定しない限りミラーは使われず、ファイルの SHA-256 はミラーではなく常に usemagpie.ai から取得するので、ミラーが書き換えたファイルはインストールされません。アプリ自身の更新は Settings → Proxy を通ります。

magpie は何を送信しますか?

-

プロンプト、返答、キー、アカウントは、使っているプロバイダーにだけ送られます。間に magpie 自身のサーバーはありません。リリース版の magpie は 1 日 1 回、使われていることを知らせます。何人が使っていて、何を優先して面倒を見るべきかを知るためです。送るのは、このコンピュータで作ったランダムな ID、magpie のバージョンとシステム、そして使っているエージェント、プロバイダー、モデルを magpie 自身の ID(claude、deepseek、deepseek/deepseek-v4)で、それぞれの数とともに。自分で追加したプロバイダーとそのモデルは custom とだけ記録します。プロバイダー追加シートの先頭に載るパートナーについては、1 日に表示された回数、開かれた回数、追加された回数も送ります(回数のみ)。名前、Base URL、アカウント、キー、プロンプト、使用量は送りません。設定 → プライバシー → 使っているエージェント、プロバイダー、モデルを共有 でエージェント、プロバイダー、モデルとパートナーの回数を外せます。ユーザー数に含める、DO_NOT_TRACK=1、MAGPIE_NO_STATS=1 のどれかですべてオフになります。ソースからのビルドは送信しません。パートナーの公式サイトと「キーを取得」のリンクは usemagpie.ai/go/… を経由し、移動の前にクリックを 1 回数えます(どのパートナーか、どのリンクか、国)。usemagpie.ai はパートナー一覧が取得された回数も数えます。これはサーバー自身が見るもので、どの Web サイトのアクセス集計とも同じく、上の設定には左右されません。ID、IP アドレス、アカウントは記録しません。プラグイン、インポートリンク、ライブラリが示すアイコンは usemagpie.ai/api/icon を経由して取得するので、アイコンのあるサーバーに見えるのはあなたの IP ではなく Cloudflare のアドレスです。このサーバーは画像を中継するだけで、数えることも記録することもしません。詳しくはリファレンスを。

+

プロンプト、返答、キー、アカウントは、使っているプロバイダーにだけ送られます。間に magpie 自身のサーバーはありません。リリース版の magpie は 1 日 1 回、使われていることを知らせます。何人が使っていて、何を優先して面倒を見るべきかを知るためです。送るのは、このコンピュータで作ったランダムな ID、magpie のバージョンとシステム、そして使っているエージェント、プロバイダー、モデルを magpie 自身の ID(claude、deepseek、deepseek/deepseek-v4)で、それぞれの数とともに。自分で追加したプロバイダーとそのモデルは custom とだけ記録します。プロバイダー追加シートの先頭に載るパートナーについては、1 日に表示された回数、開かれた回数、追加された回数も送ります(回数のみ)。名前、Base URL、アカウント、キー、プロンプト、使用量は送りません。設定 → プライバシー → 使っているエージェント、プロバイダー、モデルを共有 でエージェント、プロバイダー、モデルとパートナーの回数を外せます。ユーザー数に含める、DO_NOT_TRACK=1、MAGPIE_NO_STATS=1 のどれかですべてオフになります。ソースからのビルドは送信しません。パートナーの公式サイトと「キーを取得」のリンクは usemagpie.ai/go/… を経由し、移動の前にクリックを 1 回数えます(どのパートナーか、どのリンクか、国)。usemagpie.ai はパートナー一覧が取得された回数も数えます。これはサーバー自身が見るもので、どの Web サイトのアクセス集計とも同じく、上の設定には左右されません。ID、IP アドレス、アカウントは記録しません。プラグイン、インポートリンク、ライブラリが示すアイコンは usemagpie.ai/api/icon を経由して取得するので、アイコンのあるサーバーに見えるのはあなたの IP ではなく Cloudflare のアドレスです。このサーバーは画像を中継するだけで、数えることも記録することもしません。magpie が自分から送るものすべては、毎日のカウントの例、手元に残すファイル、各スイッチとともにプライバシーのページに挙げています。

エージェントが 502 を返す、または接続できず、magpie の Routing タブに何も出ない?

プロキシアプリ(Surge、Clash、mihomo など。システムプロキシ、TUN、拡張モードのいずれかが有効)が、エージェントから http://127.0.0.1:3425 へのリクエストを横取りして別の場所へ送っているため、magpie に届いていません。除外リスト(skip-proxy、バイパス)に 127.0.0.1 を書くだけでは足りないことがあります。Codex など一部のエージェントは、それでもプロキシを通します。ローカルアドレスを直結にするルールを、他のルールより前に追加してください:

@@ -300,6 +301,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve プラグイン リモート magpie Docker + プライバシー magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/plugins.html b/site/public/docs/plugins.html index 34cd3cf08..5eba187e3 100644 --- a/site/public/docs/plugins.html +++ b/site/public/docs/plugins.html @@ -48,6 +48,7 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -775,6 +776,7 @@ magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}} Plugins Remote magpie Docker + Privacy Add to magpie Integrate GitHub diff --git a/site/public/docs/privacy.html b/site/public/docs/privacy.html new file mode 100644 index 000000000..bbdd4b4d2 --- /dev/null +++ b/site/public/docs/privacy.html @@ -0,0 +1,226 @@ + + + + + +Privacy · magpie docs + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Privacy

+

Privacy

+

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.

+ +
+ + + + + +
WhatWhere toOff by default?How to stop it
The daily countPostHog (us.i.posthog.com)On in releases; never in builds from sourceSettings → Privacy, DO_NOT_TRACK=1
Update checks, release notes, the partner list, iconsusemagpie.aiOnnoAutoUpdate for update checks; the rest are needed by the app
Model catalog and exchange ratemodels.dev, open.er-api.comOnNot switchable; nothing of yours is sent
OTLP exportA collector you nameOffLeave it off
+ +

The daily count

+

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:

+
+ POST https://us.i.posthog.com/batch/ + +
{
+  "api_key": "phc_nyDyYyrUTRGvNq5U7FBesCyM2j4GdKeqGp8ko7DBerTC",
+  "batch": [
+    {
+      "event": "magpie active",
+      "distinct_id": "3f9c…(32 hex)",
+      "timestamp": "2026-10-13T08:00:00Z",
+      "properties": {
+        "version": "0.1.1190", "kind": "app", "$os": "Mac OS X", "arch": "arm64",
+        "agents": 2, "providers": 3, "models": 2, "groups": 1,
+        "$process_person_profile": false, "distinct_id": "3f9c…"
+      }
+    },
+    { "event": "magpie uses", "distinct_id": "3f9c…", "timestamp": "2026-10-13T08:00:00Z",
+      "properties": { "kind": "agent", "id": "claude", "$process_person_profile": false, "distinct_id": "3f9c…" } },
+    { "event": "magpie uses", "properties": { "kind": "provider", "id": "custom", … } },
+    { "event": "magpie uses", "properties": { "kind": "model", "id": "deepseek/deepseek-v4", … } },
+    { "event": "magpie partner", "timestamp": "2026-10-12T12:00:00Z",
+      "properties": { "id": "<partner id>", "what": "shown", "count": 3, "day": "2026-10-12", … } }
+  ]
+}
+
+

The api_key is the project’s PostHog key; it can only send events, not read them. The code is internal/stats and partner_events.go.

+ +

Turning it off

+

Each of these switches stops part or all of it:

+
    +
  • 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):

+
+ settings.json + +
{
+  "noStats": true,
+  "noUsageStats": true,
+  "noAutoUpdate": true
+}
+
+

MAGPIE_STATS_HOST sends the count to another host instead (it is for testing, and also makes a build from source send).

+ +

Files on your computer

+
+ + + + +
FileWhat it is
install-idThe random id, made the first time the count is sent
stats-sentThe 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.

+ +

What usemagpie.ai sees

+

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.

+ +

Public lists magpie fetches

+

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.

+ +

OTLP export

+

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.

+ +

Why the count is on

+

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.

+
+
+ + + + + + + diff --git a/site/public/docs/remote.html b/site/public/docs/remote.html index d8a99050b..fe5e82244 100644 --- a/site/public/docs/remote.html +++ b/site/public/docs/remote.html @@ -48,6 +48,7 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -153,6 +154,7 @@ magpie provider refresh office # fetch its list againPlugins Remote magpie Docker + Privacy Add to magpie Integrate GitHub diff --git a/site/public/docs/start.html b/site/public/docs/start.html index 47f622cd7..965462167 100644 --- a/site/public/docs/start.html +++ b/site/public/docs/start.html @@ -48,6 +48,7 @@ Plugins Remote magpie Docker + Privacy Add to magpie Integrate Releases @@ -277,7 +278,7 @@ magpie claude group/opus-anywhere # use it

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:

@@ -300,6 +301,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve Plugins Remote magpie Docker + Privacy Add to magpie Integrate GitHub diff --git a/site/public/docs/zh/docker.html b/site/public/docs/zh/docker.html index 1ed28a0dd..b991b475b 100644 --- a/site/public/docs/zh/docker.html +++ b/site/public/docs/zh/docker.html @@ -48,6 +48,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -215,6 +216,7 @@ docker logs magpie 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/import.html b/site/public/docs/zh/import.html index 648a6db16..a89dc9db0 100644 --- a/site/public/docs/zh/import.html +++ b/site/public/docs/zh/import.html @@ -48,6 +48,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -259,6 +260,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ 插件开发 远程 magpie Docker + 隐私 GitHub Discord 版本发布 diff --git a/site/public/docs/zh/integrate.html b/site/public/docs/zh/integrate.html index c952f6041..4584ad245 100644 --- a/site/public/docs/zh/integrate.html +++ b/site/public/docs/zh/integrate.html @@ -47,6 +47,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -151,6 +152,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/intent.html b/site/public/docs/zh/intent.html index 2f6ae410d..af925acbf 100644 --- a/site/public/docs/zh/intent.html +++ b/site/public/docs/zh/intent.html @@ -48,6 +48,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -320,6 +321,7 @@ The number of its kind (0 for none): 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/plugins.html b/site/public/docs/zh/plugins.html index af8a77b19..dfc3ef807 100644 --- a/site/public/docs/zh/plugins.html +++ b/site/public/docs/zh/plugins.html @@ -48,6 +48,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -775,6 +776,7 @@ magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}} 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/privacy.html b/site/public/docs/zh/privacy.html new file mode 100644 index 000000000..ec8343391 --- /dev/null +++ b/site/public/docs/zh/privacy.html @@ -0,0 +1,226 @@ + + + + + +隐私 · magpie 文档 + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 隐私

+

隐私

+

你的提示词、回复、密钥和账号只发给你用的供应商,中间没有 magpie 自己的服务器。这一页列出 magpie 在这些请求之外自己发出的所有内容,以及关掉它们的每个开关。内容按代码写成,每一节都附了代码链接。

+ +
+ + + + + +
内容发往默认怎么关
每日计数PostHog(us.i.posthog.com)正式版开启;源码构建从不发送设置 → 隐私,DO_NOT_TRACK=1
更新检查、更新说明、合作伙伴列表、图标usemagpie.ai开启更新检查用 noAutoUpdate;其余是应用运行所需
模型目录和汇率models.dev、open.er-api.com开启不可关;不发送任何你的信息
OTLP 导出你指定的收集器关闭保持关闭即可
+ +

每日计数

+

正在运行的正式版 magpie(应用或 magpie serve)每天(UTC)向 PostHog 发送一批事件,好让我们知道有多少人在用、该先照顾哪些 agent、供应商和模型。启动时发送,之后每小时看一次,当天已发过就跳过。从源码构建的版本从不发送。

+

这批事件里有一个 magpie active,包含:

+
    +
  • 本机随机生成的 ID(32 位十六进制,与你和这台电脑无关),作为 distinct_id;
  • +
  • magpie 版本、kind(app 或 serve)、系统($os)和架构;
  • +
  • 用了几个 agent、供应商和模型,以及几个路由组(关掉“分享我用的”后不发送)。
  • +
+

除非你关掉这一部分,后面还有每个 agent、供应商和模型各一个 magpie uses 事件,只用 magpie 自己的 ID(每类最多 50 个):

+
    +
  • agent:接入 magpie 的 agent,如 claude、codex。WSL 发行版名和 omp 配置名会去掉(只记 omp)。
  • +
  • 供应商:开启的供应商。预设的 ID(deepseek)、订阅的(codex、copilot)、已知社区插件的(plugin:kiro)。你自己添加的供应商只记作 custom,其他插件只记作 plugin。
  • +
  • 模型:接入的 agent 设定的模型,记为供应商 ID 加厂商模型 ID(deepseek/deepseek-v4)。密钥类供应商上 models.dev 没收录的模型 ID(本地模型、微调模型)只记作 <供应商>/other;你自己供应商上的模型记作 custom;路由组记作 group。
  • +
+

同时发送 magpie partner 事件:添加供应商页里排在最前的每个合作伙伴,按它的 ID,在已结束的某一天里被展示、行被打开、Key 页面被打开、从它添加供应商的次数(what:shown、opened、keys、added;每天每项最多 20 次,添加最多 5 次)。只有次数,从不包含你自己的供应商。

+

每个事件都带 $process_person_profile: false,PostHog 不为这个 ID 建用户档案。不发送名称、Base URL、账号、密钥、提示词、回复和用量。一整批大致如下:

+
+ POST https://us.i.posthog.com/batch/ + +
{
+  "api_key": "phc_nyDyYyrUTRGvNq5U7FBesCyM2j4GdKeqGp8ko7DBerTC",
+  "batch": [
+    {
+      "event": "magpie active",
+      "distinct_id": "3f9c…(32 hex)",
+      "timestamp": "2026-10-13T08:00:00Z",
+      "properties": {
+        "version": "0.1.1190", "kind": "app", "$os": "Mac OS X", "arch": "arm64",
+        "agents": 2, "providers": 3, "models": 2, "groups": 1,
+        "$process_person_profile": false, "distinct_id": "3f9c…"
+      }
+    },
+    { "event": "magpie uses", "distinct_id": "3f9c…", "timestamp": "2026-10-13T08:00:00Z",
+      "properties": { "kind": "agent", "id": "claude", "$process_person_profile": false, "distinct_id": "3f9c…" } },
+    { "event": "magpie uses", "properties": { "kind": "provider", "id": "custom", … } },
+    { "event": "magpie uses", "properties": { "kind": "model", "id": "deepseek/deepseek-v4", … } },
+    { "event": "magpie partner", "timestamp": "2026-10-12T12:00:00Z",
+      "properties": { "id": "<partner id>", "what": "shown", "count": 3, "day": "2026-10-12", … } }
+  ]
+}
+
+

api_key 是项目的 PostHog 密钥,只能发送事件,不能读取。代码见 internal/stats 和 partner_events.go。

+ +

关闭

+

下面每个开关关掉其中一部分或全部:

+
    +
  • 关掉 设置 → 隐私 → 计入用户数,或在 settings.json 里写 "noStats": true:整个每日计数。
  • +
  • 在 magpie 的环境变量里设 DO_NOT_TRACK=1 或 MAGPIE_NO_STATS=1(除空、0、false 之外的任何值):整个每日计数,不管设置里怎么选。
  • +
  • 关掉 设置 → 隐私 → 分享我用的 agent、provider 和模型,或 "noUsageStats": true:magpie uses、magpie partner 事件和 magpie active 里的数量;ID、版本和系统仍会发送。合作伙伴次数也不再记录。
  • +
  • 关掉 设置 → 关于 → 自动更新,或 "noAutoUpdate": true:magpie 自己向 usemagpie.ai 询问新版本(否则每 6 小时一次)。这不属于计数。
  • +
+

设置里的改动在下一次每小时检查时生效,不用重启。settings.json 在 magpie 的文件夹里(见下文):

+
+ settings.json + +
{
+  "noStats": true,
+  "noUsageStats": true,
+  "noAutoUpdate": true
+}
+
+

MAGPIE_STATS_HOST 会把计数发到另一个主机(用于测试,设置后源码构建也会发送)。

+ +

本机上的文件

+
+ + + + +
文件用途
install-id随机 ID,第一次发送计数时生成
stats-sent上次发送的日期(UTC),保证每天只发一次
partner-counts.json(缓存文件夹)还没发送的合作伙伴次数,最多保留 14 天
+

install-id 和 stats-sent 在 magpie 的文件夹里:macOS 和 Linux 上是 ~/.config/magpie,Windows 上是 %USERPROFILE%\.config\magpie,设置了 $XDG_CONFIG_HOME 时是 $XDG_CONFIG_HOME/magpie,便携版则在它的数据文件夹里。partner-counts.json 在 ~/.cache/magpie(或 $XDG_CACHE_HOME/magpie,便携版数据文件夹里的 cache)。这些文件都可以删:删掉 install-id 后,下次发送会生成新的随机 ID,你会被算作新用户;关掉计数后,它们都不会再写入。

+ +

usemagpie.ai 能看到什么

+

magpie 会向自己的网站请求几样东西,不受隐私设置影响,就像任何应用访问自己的更新服务器。这些请求都不带安装 ID 或账号。

+
    +
  • /api/latest:更新信息,每 6 小时一次(开了 noAutoUpdate 则不请求),带 ?lang= 取对应语言的说明。/api/notes 在更新后给出“新功能”。
  • +
  • /api/partners:添加供应商页的合作伙伴列表,每 6 小时一次。在有合作伙伴上架时,每十次拉取记一次 magpie partners fetch 事件,附 Cloudflare 给出的国家。
  • +
  • /go/<合作伙伴>/site 和 /go/<合作伙伴>/keys:在浏览器里打开合作伙伴的官网和 Key 页面链接时,先记一次 magpie partner go(哪个合作伙伴、哪个链接、地区、国家),再跳转。
  • +
  • /api/icon?url=…:插件、导入链接和库里的图标经它获取,图标所在的服务器只看到 Cloudflare 的地址,看不到你的。它只转发图片,不计数也不记录。
  • +
+

网站自己的页面(这些文档、首页)带 Cloudflare Web Analytics,不用 Cookie 统计页面访问。应用不加载它。代码见 site/worker.js。

+ +

magpie 拉取的公开列表

+

为了给模型定价和命名,magpie 会拉取 models.dev 的模型目录(models.dev/api.json);为了用你的货币显示价格,会从 open.er-api.com 拉取美元汇率(缓存 12 小时)。插件及其更新来自 npm 仓库,库里的内容来自 GitHub。这些都是公开数据的普通下载,不发送任何关于你、你的供应商或用量的信息;和任何请求一样,这些主机能看到你的 IP(或代理的 IP)。magpie 还会用你自己的密钥或登录向各个供应商读取额度和模型列表;设置 → 额度 → 额度刷新 → 仅手动 可以只在你要求时才读。

+ +

OTLP 导出

+

magpie 可以把每个网关请求导出到你自己的 OpenTelemetry 收集器(比如 Langfuse)。它默认关闭,只发到你设置的地址,从不发给我们。开启后发送每个请求的 span:agent、供应商、模型、token 数、状态、耗时和估算费用。另有开关可以加上指标、本地 agent 对话,以及请求和回复正文(密钥已遮盖)。在 设置 → 可观测性 里开启,magpie serve 也可以用 MAGPIE_OTEL_ENABLED、MAGPIE_OTEL_ENDPOINT、MAGPIE_OTEL_HEADERS、MAGPIE_OTEL_METRICS、MAGPIE_OTEL_SESSIONS、MAGPIE_OTEL_BODIES 和 MAGPIE_OTEL_BODIES_WHOLE。只设地址不会开启导出。细节见参考文档。

+ +

为什么计数默认开启

+

magpie 支持几十个 agent 和供应商,维护的人不多。每日计数让我们知道大家实际在用哪些,好先保证它们能用。正式版默认开启,是因为只靠主动开启的人,数量太少,看不出这些。作为交换,它尽量少:一个随机 ID、内置 ID 和数字;一个开关或 DO_NOT_TRACK=1 就能关掉,源码构建从不发送,发送的全部内容都列在这一页。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/remote.html b/site/public/docs/zh/remote.html index e7833ab7a..0133147a1 100644 --- a/site/public/docs/zh/remote.html +++ b/site/public/docs/zh/remote.html @@ -48,6 +48,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -153,6 +154,7 @@ magpie provider refresh office # 重新获取列表插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/start.html b/site/public/docs/zh/start.html index 171cdbe63..b8c988cb5 100644 --- a/site/public/docs/zh/start.html +++ b/site/public/docs/zh/start.html @@ -48,6 +48,7 @@ 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 版本发布 @@ -277,7 +278,7 @@ magpie claude group/opus-anywhere # 使用它

给安装脚本和 magpie update 加代理:curl -fsSL https://usemagpie.ai/install.sh | sh -s -- --proxy http://127.0.0.1:7890,或 magpie update --proxy socks5://127.0.0.1:1080(支持 http、https、socks5、socks5h;环境变量 HTTPS_PROXY、ALL_PROXY 同样生效)。--mirror <前缀> 从你指定的 GitHub 下载镜像取发布文件,即 <前缀>https://github.com/…;magpie update mirror <前缀> 让之后每次更新(包括应用自己的更新)都用它,magpie update mirror off 取消。不指定就不用任何镜像;文件的 SHA-256 始终来自 usemagpie.ai,而不是镜像,镜像改过的文件会被拒绝安装。应用自己的更新走 设置 → 代理。

magpie 会发送我的哪些信息?

-

你的提示词、回复、密钥和账号只发给你用的供应商,中间没有 magpie 自己的服务器。正式发布的 magpie 每天告诉我们一次它在用,好让我们知道有多少人在用、该先照顾哪些:本机随机生成的 ID、magpie 版本和系统,以及用了哪些 agent、供应商和模型,只用 magpie 自己的 ID(claude、deepseek、deepseek/deepseek-v4)和各自的数量。你自己添加的供应商及其上的模型只记作 custom。添加供应商页里排在最前的合作伙伴,每天被展示、打开和添加的次数也一并发送,只有次数。不发送名称、Base URL、账号、密钥、提示词和用量。设置 → 隐私 → 分享我用的 agent、provider 和模型 可以去掉 agent、供应商、模型和合作伙伴次数这部分;计入用户数、DO_NOT_TRACK=1 或 MAGPIE_NO_STATS=1 全部关闭。从源码构建的版本从不发送。合作伙伴的官网和「获取 Key」链接经 usemagpie.ai/go/… 跳转,跳转前记一次点击(哪个合作伙伴、哪个链接、哪个国家),usemagpie.ai 也会统计合作伙伴列表被拉取的次数。这部分是服务器本身看到的,和任何网站统计访问一样,不受上面的设置影响;不记录 ID、IP 和账号。插件、导入链接和库里的图标经 usemagpie.ai/api/icon 获取,图标所在的服务器只看到 Cloudflare 的地址,看不到你的 IP;这台服务器只转发图片,不计数也不记录。详见参考文档。

+

你的提示词、回复、密钥和账号只发给你用的供应商,中间没有 magpie 自己的服务器。正式发布的 magpie 每天告诉我们一次它在用,好让我们知道有多少人在用、该先照顾哪些:本机随机生成的 ID、magpie 版本和系统,以及用了哪些 agent、供应商和模型,只用 magpie 自己的 ID(claude、deepseek、deepseek/deepseek-v4)和各自的数量。你自己添加的供应商及其上的模型只记作 custom。添加供应商页里排在最前的合作伙伴,每天被展示、打开和添加的次数也一并发送,只有次数。不发送名称、Base URL、账号、密钥、提示词和用量。设置 → 隐私 → 分享我用的 agent、provider 和模型 可以去掉 agent、供应商、模型和合作伙伴次数这部分;计入用户数、DO_NOT_TRACK=1 或 MAGPIE_NO_STATS=1 全部关闭。从源码构建的版本从不发送。合作伙伴的官网和「获取 Key」链接经 usemagpie.ai/go/… 跳转,跳转前记一次点击(哪个合作伙伴、哪个链接、哪个国家),usemagpie.ai 也会统计合作伙伴列表被拉取的次数。这部分是服务器本身看到的,和任何网站统计访问一样,不受上面的设置影响;不记录 ID、IP 和账号。插件、导入链接和库里的图标经 usemagpie.ai/api/icon 获取,图标所在的服务器只看到 Cloudflare 的地址,看不到你的 IP;这台服务器只转发图片,不计数也不记录。隐私页列出了 magpie 自己发出的所有内容,附每日计数的示例、它在本机留下的文件和每个开关。

Agent 报 502 或连不上,magpie 的路由标签页里却什么都没有?

代理软件(Surge、Clash、mihomo 等,开了系统代理、TUN 或增强模式)把 Agent 发往 http://127.0.0.1:3425 的请求接走、转去了别处,请求根本没到 magpie。只在跳过列表(skip-proxy、「绕过」)里写 127.0.0.1 不一定够:有些 Agent(比如 Codex)照样会走代理。在代理软件里加两条本地地址直连的规则,放在其他规则前面:

@@ -300,6 +301,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve 插件开发 远程 magpie Docker + 隐私 Add to magpie 接入应用 GitHub