Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

remote magpie: the guide names Settings → Network and sharing → Share on local network

yetone44d8c742bf18
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 6c0806c16..42d11bcef 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -242,7 +242,7 @@ magpie plugin options model-map '{"mapping": {"fast": "deepseek/deepseek-chat"}}
| | |
| :-- | :-- |
-| **局域网** | 打开「在局域网共享」,给每个客户端一个命名的网关 key,各自设每天、每周或每月的 token 和花费上限 |
+| **局域网** | 打开「局域网共享」,给每个客户端一个命名的网关 key,各自设每天、每周或每月的 token 和花费上限 |
| **[远程 magpie](https://usemagpie.ai/docs/zh/remote)** | 笔记本用台式机上那个 magpie 的 provider、账号和路由组,同时照样配置自己的 Agent |
| **[Docker](https://usemagpie.ai/docs/zh/docker)** | 在服务器或 NAS 上跑 `ghcr.io/yetone/magpie`,用 Web 界面管理 |
| **同步** | 备份到文件,或者通过 WebDAV(坚果云、Nextcloud……)或 S3 在多台机器间同步 |
diff --git a/docs/integrating.md b/docs/integrating.md
index 646cac000..a1e73ff84 100644
--- a/docs/integrating.md
+++ b/docs/integrating.md
@@ -47,7 +47,7 @@ Send `magpie-<your-app-id>` (`Authorization: Bearer magpie-acme`, or
log and the routing rules that match on agents. Without it, magpie counts
the call by the first word of your `User-Agent` (`Acme/1.4 (darwin)` is
`Acme`); an SDK's own User-Agent (`OpenAI/JS …`, `ai-sdk/…`) would count it
-as that SDK. From another computer (Settings → Share on local network) the
+as that SDK. From another computer (Settings → Network and sharing → Share on local network) the
key must be one of the user's gateway keys, and the User-Agent names your
app.
diff --git a/docs/reference.md b/docs/reference.md
index d3f0e75a7..a519ef9e8 100644
--- a/docs/reference.md
+++ b/docs/reference.md
@@ -430,7 +430,7 @@ [email protected]`); otherwise it appears as **account not recorded**, never
inferred from today's sign-in. OTLP export never carries the account.
One magpie can serve several computers (an office one, a personal one):
-share it on the network (Settings → Share on local network), and on each
+share it on the network (Settings → Network and sharing → Share on local network), and on each
other computer add it as a **Remote magpie** — in the app's Add sheet, under
its own heading, Another computer's magpie, after On this machine; on the
TUI's Providers page (`a`, then its address and key; `w` changes the address,
@@ -505,7 +505,7 @@ works. Changing one starts nothing by itself. See
[provider-plugins.md](subsystems/provider-plugins.md#a-plugins-own-options).
The gateway issues **gateway keys** for clients, separate from a provider's
-upstream API keys. Turn on **Settings → Share on local network**, then open
+upstream API keys. Turn on **Settings → Network and sharing → Share on local network**, then open
**Gateway → Gateway keys → Add gateway key**. This block appears only while
sharing is on. Create a named key for each client and copy it from its row.
To move from another gateway without touching its clients, enter the key they
@@ -687,7 +687,7 @@ another machine (#1022): it carries a forwarding header (`Forwarded`,
with sharing, or a `MAGPIE_ADDR` on the network, it needs an enabled gateway
key, as from the network. This
covers every route: the model APIs, quotas, MCP sign-ins. To serve magpie
-through a Cloudflare Tunnel, turn on **Settings → Share on local network**,
+through a Cloudflare Tunnel, turn on **Settings → Network and sharing → Share on local network**,
add a gateway key for each client, point the tunnel's service at
`http://127.0.0.1:3425`, and give clients the tunnel's address with that key.
A tunnel that forwards bare TCP (frp's `tcp`, `ssh -R`, socat) adds no header
@@ -1687,7 +1687,7 @@ Building an app or agent that should use magpie, or get a row on the
Agents page: see [Integrating your app or agent](integrating.md).
External clients behind a reverse proxy need an enabled gateway key
-(Gateway → Gateway keys): with Settings → Share on local network on, or a
+(Gateway → Gateway keys): with Settings → Network and sharing → Share on local network on, or a
`MAGPIE_ADDR` on the network, magpie asks for one; otherwise it refuses
them, unless the proxy authenticates its clients itself
(`MAGPIE_TRUST_PROXY=1`, below). A public URL with no port of
@@ -2282,7 +2282,7 @@ request from outside it, the host's own included, must carry an enabled
gateway key as its API key, and one without gets 401. Make one in the
browser UI (Gateway → Gateway keys) or with
`docker exec magpie magpie gateway-key add "Docker client"`. Sharing
-(Settings → Share on local network) isn't needed for this; turning it on
+(Settings → Network and sharing → Share on local network) isn't needed for this; turning it on
also creates a key named **Magpie**. The ports above are published on the
host's loopback; Docker's `-p 3425:3425` puts the gateway on every interface
of the host, for other machines to reach. Upgrading from an earlier image:
diff --git a/internal/agent/reach.go b/internal/agent/reach.go
index fd0e2f7a0..d544d9eab 100644
--- a/internal/agent/reach.go
+++ b/internal/agent/reach.go
@@ -243,7 +243,7 @@ func (a *Agent) unreachable(on Field, now string) *Drift {
d.Detail = a.Name + " is pointed at magpie at " + addr + ", where nothing answers from this computer, though magpie answers at " + gateway.URL() + ". "
if a.WSL != "" || runtime.GOOS == "windows" {
d.Detail += "Under WSL's NAT networking, Windows as WSL sees it reaches magpie only while something listens on " + host +
- ": magpie itself with Settings › Share on local network on (it then listens on every address, and asks other computers for a gateway key), or a forward of your own (netsh interface portproxy, which may need setting up again after Windows restarts). " +
+ ": magpie itself with Settings › Network and sharing › Share on local network on (it then listens on every address, and asks other computers for a gateway key), or a forward of your own (netsh interface portproxy, which may need setting up again after Windows restarts). " +
"Once it answers here and WSL still can't connect, Windows' firewall may be keeping WSL out: allow the port " + gateway.Port() + " for the WSL network. " +
"On Windows 11, networkingMode=mirrored under [wsl2] in %UserProfile%\\.wslconfig lets WSL reach magpie at 127.0.0.1 instead."
} else {
diff --git a/internal/gateway/gateway.go b/internal/gateway/gateway.go
index 34d80eb43..03811ea5e 100644
--- a/internal/gateway/gateway.go
+++ b/internal/gateway/gateway.go
@@ -786,7 +786,7 @@ func (s *Server) info(w http.ResponseWriter, r *http.Request) {
// told its quotas is told those of what it may use (scopeQuotas, #2216).
func (s *Server) quotas(w http.ResponseWriter, r *http.Request) {
if !local(r) && !sharedWith(r) {
- writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
+ writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Network and sharing → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
return
}
scope, ok := scopeQuotas(w, r)
@@ -810,7 +810,7 @@ func (s *Server) quotas(w http.ResponseWriter, r *http.Request) {
// /v1/magpie/quotas stays the snapshot.
func (s *Server) quotasHistory(w http.ResponseWriter, r *http.Request) {
if !local(r) && !sharedWith(r) {
- writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
+ writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Network and sharing → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
return
}
scope, ok := scopeQuotas(w, r)
@@ -826,7 +826,7 @@ func (s *Server) quotasHistory(w http.ResponseWriter, r *http.Request) {
// show: its own cache, however old, and no vendor asked for it.
func (s *Server) quotaCards(w http.ResponseWriter, r *http.Request) {
if !local(r) && !sharedWith(r) {
- writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
+ writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Network and sharing → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
return
}
scope, ok := scopeQuotas(w, r)
@@ -852,7 +852,7 @@ const remoteRefreshGap = 30 * time.Second
// is named, then the cards are answered as quotaCards answers them.
func (s *Server) quotaCardsRefresh(w http.ResponseWriter, r *http.Request) {
if !local(r) && !sharedWith(r) {
- writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
+ writeError(w, provider.Chat, http.StatusForbidden, "magpie's quotas are told to another machine only when magpie is shared on the local network (Settings → Network and sharing → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
return
}
scope, ok := scopeQuotas(w, r)
diff --git a/internal/gateway/lan.go b/internal/gateway/lan.go
index 93875892f..1a3550a8c 100644
--- a/internal/gateway/lan.go
+++ b/internal/gateway/lan.go
@@ -263,7 +263,7 @@ func lanGuard(next http.Handler) http.Handler {
if remote && !remoteKeyed() {
if proxied(r) {
log.Printf("refused %s %s through a proxy or tunnel: magpie isn't shared", r.Method, r.URL.Path)
- http.Error(w, "this request came through a proxy or tunnel (it carries a forwarding header such as X-Forwarded-For or Cf-Connecting-IP), so magpie answers it as one from another machine: only while Settings → Share on local network is on, with an enabled gateway key (Gateway → Gateway keys) sent as Authorization: Bearer <key> or x-api-key", http.StatusForbidden)
+ http.Error(w, "this request came through a proxy or tunnel (it carries a forwarding header such as X-Forwarded-For or Cf-Connecting-IP), so magpie answers it as one from another machine: only while Settings → Network and sharing → Share on local network is on, with an enabled gateway key (Gateway → Gateway keys) sent as Authorization: Bearer <key> or x-api-key", http.StatusForbidden)
return
}
http.Error(w, "magpie isn't shared on the local network", http.StatusForbidden)
diff --git a/internal/gateway/session_route.go b/internal/gateway/session_route.go
index 9a4d1e885..3f84a10d7 100644
--- a/internal/gateway/session_route.go
+++ b/internal/gateway/session_route.go
@@ -104,7 +104,7 @@ func sessionRouteOf(r Route) SessionRoute {
// secret the key can be trusted to lack.
func (s *Server) sessionRoute(w http.ResponseWriter, r *http.Request) {
if !local(r) && !sharedWith(r) {
- writeError(w, provider.Chat, http.StatusForbidden, "magpie's routes are told to another machine only when magpie is shared on the local network (Settings → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
+ writeError(w, provider.Chat, http.StatusForbidden, "magpie's routes are told to another machine only when magpie is shared on the local network (Settings → Network and sharing → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)")
return
}
q := r.URL.Query()
diff --git a/internal/gateway/usage_api.go b/internal/gateway/usage_api.go
index 1abee3dd3..fd1971891 100644
--- a/internal/gateway/usage_api.go
+++ b/internal/gateway/usage_api.go
@@ -22,7 +22,7 @@ import (
// accounts is someone else's to use: it is told its own calls alone, from
// /v1/magpie/usage/requests, and not the summary of everyone's.
-const usageRefused = "magpie's usage is told to another machine only when magpie is shared on the local network (Settings → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)"
+const usageRefused = "magpie's usage is told to another machine only when magpie is shared on the local network (Settings → Network and sharing → Share on local network) and the request carries its API key (Authorization: Bearer <key> or x-api-key: <key>)"
// heldKey: the request's gateway key is held to a budget, models or
// accounts, and so sees only its own usage.
diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js
index 6b680d3a5..af2f66689 100644
--- a/internal/gui/assets/app.js
+++ b/internal/gui/assets/app.js
@@ -13383,7 +13383,7 @@ function quotaError(err, q) {
// a remote magpie's card (remote_quotas.go)
if (/^nothing read on that magpie yet/.test(err)) return t("Nothing read on that computer yet — refresh this card to have it read");
if (/^remote magpie doesn't share its quotas/.test(err)) return t("That computer's magpie doesn't share its quotas yet — update magpie there");
- if (/^remote magpie isn't shared/.test(err)) return t("That computer's magpie isn't shared — turn on Settings → Share on local network there");
+ if (/^remote magpie isn't shared/.test(err)) return t("That computer's magpie isn't shared — turn on Settings → Network and sharing → Share on local network there");
if (/^remote magpie didn't take this key/.test(err)) return t("That computer's magpie didn't take this key — use one of its gateway keys in this provider");
if (/^couldn't reach the remote magpie/.test(err)) return t("Couldn't reach that computer's magpie — check that it is running and its address");
// a remote magpie's gateway key card (#1547, remote_key_limits.go)
diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js
index 32e07c540..ada7476dd 100644
--- a/internal/gui/assets/i18n.js
+++ b/internal/gui/assets/i18n.js
@@ -2120,7 +2120,7 @@ const I18N = {
"Asking your resource for its deployments with this key…": "正在用这把 key 查询该资源的部署…",
"No deployments came back for this key. Fetch models again, or type a deployment's name as a model id.": "这把 key 没有查到部署。重新获取模型,或把部署名称当作模型 ID 填写。",
"another computer's magpie, shared on its network": "远程:另一台电脑上的 magpie,局域网共享",
- "The address and API key the other computer's magpie shows in Settings, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "另一台电脑的 magpie 在「设置 → 局域网共享」中显示的地址和 API 密钥。其模型和路由组会列在这里;请求按 Agent 所用的 API 原样转发。",
+ "The address and API key the other computer's magpie shows in Settings → Network and sharing, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "另一台电脑的 magpie 在「设置 → 网络与共享 → 局域网共享」中显示的地址和 API 密钥。其模型和路由组会列在这里;请求按 Agent 所用的 API 原样转发。",
"The other magpie's address is needed": "需要填写另一台 magpie 的地址",
"your Google Cloud project, with gcloud's sign-in": "你的 Google Cloud 项目,通过 gcloud 登录",
"Project ID": "项目 ID",
@@ -2771,7 +2771,7 @@ const I18N = {
"Allowance unavailable: {why}": "暂时无法获取额度:{why}",
"Nothing read on that computer yet — refresh this card to have it read": "那台电脑还没有读过额度 — 刷新这张卡片让它读取",
"That computer's magpie doesn't share its quotas yet — update magpie there": "那台电脑的 magpie 还不能共享额度 — 请在那台电脑上更新 magpie",
- "That computer's magpie isn't shared — turn on Settings → Share on local network there": "那台电脑的 magpie 没有共享 — 请在那台电脑上打开 设置 → 局域网共享",
+ "That computer's magpie isn't shared — turn on Settings → Network and sharing → Share on local network there": "那台电脑的 magpie 没有共享 — 请在那台电脑上打开 设置 → 网络与共享 → 局域网共享",
"That computer's magpie didn't take this key — use one of its gateway keys in this provider": "那台电脑的 magpie 不认这个密钥 — 请在这个服务商里填它的一个网关密钥",
"Couldn't reach that computer's magpie — check that it is running and its address": "连不上那台电脑的 magpie — 请确认它在运行、地址正确",
"That computer's magpie is too old to tell this key's limit — update magpie there": "那台电脑的 magpie 版本太旧,无法告知这个密钥的限额 — 请在那边更新 magpie",
@@ -5997,7 +5997,7 @@ const I18N = {
"Asking your resource for its deployments with this key…": "正在用這把 key 查詢該資源的部署…",
"No deployments came back for this key. Fetch models again, or type a deployment's name as a model id.": "這把 key 沒有查到部署。重新取得模型,或把部署名稱當作模型 ID 填寫。",
"another computer's magpie, shared on its network": "遠端:另一臺電腦上的 magpie,區域網共享",
- "The address and API key the other computer's magpie shows in Settings, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "另一臺電腦的 magpie 在「設定 → 區域網共享」中顯示的位址和 API 金鑰。其模型和路由組會列在這裡;請求按 Agent 所用的 API 原樣轉發。",
+ "The address and API key the other computer's magpie shows in Settings → Network and sharing, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "另一臺電腦的 magpie 在「設定 → 網路與共享 → 區域網共享」中顯示的位址和 API 金鑰。其模型和路由組會列在這裡;請求按 Agent 所用的 API 原樣轉發。",
"The other magpie's address is needed": "需要填寫另一臺 magpie 的位址",
"Test": "測試",
"Send a tiny request through each endpoint": "向每個端點發送一個小請求",
@@ -6642,7 +6642,7 @@ const I18N = {
"Allowance unavailable: {why}": "暫時無法取得額度:{why}",
"Nothing read on that computer yet — refresh this card to have it read": "那臺電腦還沒有讀過額度 — 重新整理這張卡片讓它讀取",
"That computer's magpie doesn't share its quotas yet — update magpie there": "那臺電腦的 magpie 還不能共享額度 — 請在那臺電腦上更新 magpie",
- "That computer's magpie isn't shared — turn on Settings → Share on local network there": "那臺電腦的 magpie 沒有共享 — 請在那臺電腦上開啟 設定 → 區域網共享",
+ "That computer's magpie isn't shared — turn on Settings → Network and sharing → Share on local network there": "那臺電腦的 magpie 沒有共享 — 請在那臺電腦上開啟 設定 → 網路與共享 → 區域網共享",
"That computer's magpie didn't take this key — use one of its gateway keys in this provider": "那臺電腦的 magpie 不認這個金鑰 — 請在這個服務商裡填它的一個閘道金鑰",
"Couldn't reach that computer's magpie — check that it is running and its address": "連不上那臺電腦的 magpie — 請確認它在執行、位址正確",
"That computer's magpie is too old to tell this key's limit — update magpie there": "那臺電腦的 magpie 版本太舊,無法告知這個金鑰的限額 — 請在那邊更新 magpie",
@@ -9853,7 +9853,7 @@ const I18N = {
"Asking your resource for its deployments with this key…": "このキーでリソースのデプロイを取得しています…",
"No deployments came back for this key. Fetch models again, or type a deployment's name as a model id.": "このキーで取得できるデプロイはありませんでした。モデルを再取得するか、デプロイ名をモデル ID として入力してください。",
"another computer's magpie, shared on its network": "リモート:別のコンピューターの magpie(ネットワークで共有)",
- "The address and API key the other computer's magpie shows in Settings, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "別のコンピューターの magpie が「設定」の「ローカルネットワークで共有」に表示するアドレスと API キーです。そのモデルとルーティンググループがここに一覧表示され、各リクエストはエージェントが使った API のまま転送されます。",
+ "The address and API key the other computer's magpie shows in Settings → Network and sharing, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "別のコンピューターの magpie が「設定 → ネットワークと共有」の「ローカルネットワークで共有」に表示するアドレスと API キーです。そのモデルとルーティンググループがここに一覧表示され、各リクエストはエージェントが使った API のまま転送されます。",
"The other magpie's address is needed": "もう一方の magpie のアドレスが必要です",
"your Google Cloud project, with gcloud's sign-in": "Google Cloud プロジェクトと gcloud のログインで",
"Project ID": "プロジェクト ID",
@@ -10518,7 +10518,7 @@ const I18N = {
"Allowance unavailable: {why}": "利用枠を取得できません:{why}",
"Nothing read on that computer yet — refresh this card to have it read": "そのコンピューターではまだ読み取っていません — このカードを更新すると読み取ります",
"That computer's magpie doesn't share its quotas yet — update magpie there": "そのコンピューターの magpie はまだ利用枠を共有できません — そちらの magpie を更新してください",
- "That computer's magpie isn't shared — turn on Settings → Share on local network there": "そのコンピューターの magpie は共有されていません — そちらで 設定 → ローカルネットワークで共有 をオンにしてください",
+ "That computer's magpie isn't shared — turn on Settings → Network and sharing → Share on local network there": "そのコンピューターの magpie は共有されていません — そちらで 設定 → ネットワークと共有 → ローカルネットワークで共有 をオンにしてください",
"That computer's magpie didn't take this key — use one of its gateway keys in this provider": "そのコンピューターの magpie はこのキーを受け付けませんでした — このプロバイダーにそちらのゲートウェイキーを入れてください",
"Couldn't reach that computer's magpie — check that it is running and its address": "そのコンピューターの magpie に接続できません — 起動しているか、アドレスが正しいか確認してください",
"That computer's magpie is too old to tell this key's limit — update magpie there": "そのコンピューターの magpie は古く、このキーの上限を伝えられません — そちらで magpie を更新してください",
@@ -13739,7 +13739,7 @@ const I18N = {
"Asking your resource for its deployments with this key…": "Bereitstellungen Ihrer Ressource werden mit diesem Schlüssel abgefragt…",
"No deployments came back for this key. Fetch models again, or type a deployment's name as a model id.": "Für diesen Schlüssel kamen keine Bereitstellungen zurück. Rufen Sie die Modelle erneut ab oder geben Sie den Namen einer Bereitstellung als Modell-ID ein.",
"another computer's magpie, shared on its network": "magpie auf einem anderen Computer, im Netzwerk freigegeben",
- "The address and API key the other computer's magpie shows in Settings, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "Adresse und API-Schlüssel, die magpie auf dem anderen Computer unter Einstellungen bei „Im lokalen Netzwerk freigeben“ anzeigt. Seine Modelle und Weiterleitungsgruppen werden hier aufgeführt; jede Anfrage wird in der API weitergeleitet, die der Agent verwendet hat.",
+ "The address and API key the other computer's magpie shows in Settings → Network and sharing, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.": "Adresse und API-Schlüssel, die magpie auf dem anderen Computer unter Einstellungen → Netzwerk und Freigabe bei „Im lokalen Netzwerk freigeben“ anzeigt. Seine Modelle und Weiterleitungsgruppen werden hier aufgeführt; jede Anfrage wird in der API weitergeleitet, die der Agent verwendet hat.",
"The other magpie's address is needed": "Die Adresse des anderen magpie ist erforderlich",
"your Google Cloud project, with gcloud's sign-in": "Ihr Google-Cloud-Projekt, mit der Anmeldung von gcloud",
"Project ID": "Projekt-ID",
@@ -14404,7 +14404,7 @@ const I18N = {
"Allowance unavailable: {why}": "Kontingent nicht verfügbar: {why}",
"Nothing read on that computer yet — refresh this card to have it read": "Auf diesem Computer wurde noch nichts gelesen — diese Karte aktualisieren, um es lesen zu lassen",
"That computer's magpie doesn't share its quotas yet — update magpie there": "Das magpie dieses Computers teilt seine Kontingente noch nicht — aktualisiere magpie dort",
- "That computer's magpie isn't shared — turn on Settings → Share on local network there": "Das magpie dieses Computers ist nicht freigegeben — schalte dort Einstellungen → Im lokalen Netzwerk freigeben ein",
+ "That computer's magpie isn't shared — turn on Settings → Network and sharing → Share on local network there": "Das magpie dieses Computers ist nicht freigegeben — schalte dort Einstellungen → Netzwerk und Freigabe → Im lokalen Netzwerk freigeben ein",
"That computer's magpie didn't take this key — use one of its gateway keys in this provider": "Das magpie dieses Computers hat diesen Schlüssel nicht angenommen — trage bei diesem Anbieter einen seiner Zugangsschlüssel ein",
"Couldn't reach that computer's magpie — check that it is running and its address": "Das magpie dieses Computers ist nicht erreichbar — prüfe, ob es läuft und die Adresse stimmt",
"That computer's magpie is too old to tell this key's limit — update magpie there": "Das magpie auf diesem Computer ist zu alt, um das Limit dieses Schlüssels zu nennen — aktualisiere magpie dort",
diff --git a/internal/gui/tests/agent-unreachable.test.cjs b/internal/gui/tests/agent-unreachable.test.cjs
index 9ac6f2ce4..fd29cc834 100644
--- a/internal/gui/tests/agent-unreachable.test.cjs
+++ b/internal/gui/tests/agent-unreachable.test.cjs
@@ -15,7 +15,7 @@ const { chromium, webkit } = require("playwright");
const assets = path.resolve(__dirname, "../assets");
const kept = "http://172.28.96.1:3425";
-const detail = `Codex is pointed at magpie at ${kept}, where nothing answers from this computer, though magpie answers at http://127.0.0.1:3425. Under WSL's NAT networking, Windows as WSL sees it reaches magpie only while something listens on 172.28.96.1:3425: magpie itself with Settings › Share on local network on, or a forward of your own (netsh interface portproxy, which may need setting up again after Windows restarts).`;
+const detail = `Codex is pointed at magpie at ${kept}, where nothing answers from this computer, though magpie answers at http://127.0.0.1:3425. Under WSL's NAT networking, Windows as WSL sees it reaches magpie only while something listens on 172.28.96.1:3425: magpie itself with Settings › Network and sharing › Share on local network on, or a forward of your own (netsh interface portproxy, which may need setting up again after Windows restarts).`;
const codex = { id: "codex", name: "Codex", icon: "codex", path: "/c", wired: true,
fields: [{ key: "model", label: "model", value: "fake/m1", options: [{ value: "fake/m1", label: "m1", ref: "fake/m1" }] }] };
const filler = Array.from({ length: 4 }, (_, i) => ({ id: "pi" + i, name: "Pi " + i, path: "/p", fields: [{ key: "model", label: "model", value: "", options: [] }] }));
diff --git a/internal/gui/tests/remote-magpie.test.cjs b/internal/gui/tests/remote-magpie.test.cjs
index b176524bf..4b7c3e359 100644
--- a/internal/gui/tests/remote-magpie.test.cjs
+++ b/internal/gui/tests/remote-magpie.test.cjs
@@ -24,7 +24,7 @@ const presets = [
{ id: "ollama", name: "Ollama", icon: "ollama", kind: "local", chat: "http://localhost:11434/v1", noKey: true, added: false },
{ id: "remote-magpie", name: "Remote magpie", icon: "magpie", kind: "remote", added: false,
note: "another computer's magpie, shared on its network", endpoint: "http://192.168.1.20:3425",
- endpointHint: "The address and API key the other computer's magpie shows in Settings, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.",
+ endpointHint: "The address and API key the other computer's magpie shows in Settings → Network and sharing, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.",
endpointNeeded: "The other magpie's address is needed" },
];
const providers = [{ id: "openrouter", name: "OpenRouter", icon: "openai", preset: "openrouter", models: [], agents: [], key: { set: true, masked: "sk-…ab12" } },
@@ -55,9 +55,9 @@ function server(lang, saves) {
}
const L = {
- en: { field: "Endpoint", hint: /Share on local network.*the API the agent spoke/, needed: "The other magpie's address is needed", note: "another computer's magpie, shared on its network", add: "Add",
+ en: { field: "Endpoint", hint: /Settings → Network and sharing, under Share on local network.*the API the agent spoke/, needed: "The other magpie's address is needed", note: "another computer's magpie, shared on its network", add: "Add",
decide: ["Jev endpoint", "System One endpoint"] },
- zh: { field: "终结点", hint: /设置 → 局域网共享.*原样转发/, needed: "需要填写另一台 magpie 的地址", note: "远程:另一台电脑上的 magpie,局域网共享", add: "添加",
+ zh: { field: "终结点", hint: /设置 → 网络与共享 → 局域网共享.*原样转发/, needed: "需要填写另一台 magpie 的地址", note: "远程:另一台电脑上的 magpie,局域网共享", add: "添加",
decide: ["Jev 端点", "System One 端点"] },
};
diff --git a/internal/gui/tests/usage-remote-cards.test.cjs b/internal/gui/tests/usage-remote-cards.test.cjs
index 40cc6bfa2..698c63ba8 100644
--- a/internal/gui/tests/usage-remote-cards.test.cjs
+++ b/internal/gui/tests/usage-remote-cards.test.cjs
@@ -69,10 +69,10 @@ function serve(lang, state) {
}
const words = {
- en: { none: "Nothing read on that computer yet — refresh this card to have it read", old: "That computer's magpie doesn't share its quotas yet — update magpie there", shed: "That computer's magpie isn't shared — turn on Settings → Share on local network there", den: "That computer's magpie didn't take this key — use one of its gateway keys in this provider", barn: "Couldn't reach that computer's magpie — check that it is running and its address" },
- zh: { none: "那台电脑还没有读过额度 — 刷新这张卡片让它读取", old: "那台电脑的 magpie 还不能共享额度 — 请在那台电脑上更新 magpie", shed: "那台电脑的 magpie 没有共享 — 请在那台电脑上打开 设置 → 局域网共享", den: "那台电脑的 magpie 不认这个密钥 — 请在这个服务商里填它的一个网关密钥", barn: "连不上那台电脑的 magpie — 请确认它在运行、地址正确" },
- ja: { none: "そのコンピューターではまだ読み取っていません — このカードを更新すると読み取ります", old: "そのコンピューターの magpie はまだ利用枠を共有できません — そちらの magpie を更新してください", shed: "そのコンピューターの magpie は共有されていません — そちらで 設定 → ローカルネットワークで共有 をオンにしてください", den: "そのコンピューターの magpie はこのキーを受け付けませんでした — このプロバイダーにそちらのゲートウェイキーを入れてください", barn: "そのコンピューターの magpie に接続できません — 起動しているか、アドレスが正しいか確認してください" },
- de: { none: "Auf diesem Computer wurde noch nichts gelesen — diese Karte aktualisieren, um es lesen zu lassen", old: "Das magpie dieses Computers teilt seine Kontingente noch nicht — aktualisiere magpie dort", shed: "Das magpie dieses Computers ist nicht freigegeben — schalte dort Einstellungen → Im lokalen Netzwerk freigeben ein", den: "Das magpie dieses Computers hat diesen Schlüssel nicht angenommen — trage bei diesem Anbieter einen seiner Zugangsschlüssel ein", barn: "Das magpie dieses Computers ist nicht erreichbar — prüfe, ob es läuft und die Adresse stimmt" },
+ en: { none: "Nothing read on that computer yet — refresh this card to have it read", old: "That computer's magpie doesn't share its quotas yet — update magpie there", shed: "That computer's magpie isn't shared — turn on Settings → Network and sharing → Share on local network there", den: "That computer's magpie didn't take this key — use one of its gateway keys in this provider", barn: "Couldn't reach that computer's magpie — check that it is running and its address" },
+ zh: { none: "那台电脑还没有读过额度 — 刷新这张卡片让它读取", old: "那台电脑的 magpie 还不能共享额度 — 请在那台电脑上更新 magpie", shed: "那台电脑的 magpie 没有共享 — 请在那台电脑上打开 设置 → 网络与共享 → 局域网共享", den: "那台电脑的 magpie 不认这个密钥 — 请在这个服务商里填它的一个网关密钥", barn: "连不上那台电脑的 magpie — 请确认它在运行、地址正确" },
+ ja: { none: "そのコンピューターではまだ読み取っていません — このカードを更新すると読み取ります", old: "そのコンピューターの magpie はまだ利用枠を共有できません — そちらの magpie を更新してください", shed: "そのコンピューターの magpie は共有されていません — そちらで 設定 → ネットワークと共有 → ローカルネットワークで共有 をオンにしてください", den: "そのコンピューターの magpie はこのキーを受け付けませんでした — このプロバイダーにそちらのゲートウェイキーを入れてください", barn: "そのコンピューターの magpie に接続できません — 起動しているか、アドレスが正しいか確認してください" },
+ de: { none: "Auf diesem Computer wurde noch nichts gelesen — diese Karte aktualisieren, um es lesen zu lassen", old: "Das magpie dieses Computers teilt seine Kontingente noch nicht — aktualisiere magpie dort", shed: "Das magpie dieses Computers ist nicht freigegeben — schalte dort Einstellungen → Netzwerk und Freigabe → Im lokalen Netzwerk freigeben ein", den: "Das magpie dieses Computers hat diesen Schlüssel nicht angenommen — trage bei diesem Anbieter einen seiner Zugangsschlüssel ein", barn: "Das magpie dieses Computers ist nicht erreichbar — prüfe, ob es läuft und die Adresse stimmt" },
};
for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {
diff --git a/internal/provider/presets.go b/internal/provider/presets.go
index 31939fe11..e969f2ea8 100644
--- a/internal/provider/presets.go
+++ b/internal/provider/presets.go
@@ -603,7 +603,7 @@ var presets = []PresetDef{
{ID: RemoteMagpiePreset, Name: "Remote magpie", Icon: "magpie", Kind: KindRemote,
Note: "another computer's magpie, shared on its network",
Endpoint: "http://192.168.1.20:3425",
- EndpointHint: "The address and API key the other computer's magpie shows in Settings, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.",
+ EndpointHint: "The address and API key the other computer's magpie shows in Settings → Network and sharing, under Share on local network. Its models and routing groups are listed here; each request goes on in the API the agent spoke.",
EndpointNeeded: "The other magpie's address is needed"},
}
diff --git a/internal/provider/remote_magpie.go b/internal/provider/remote_magpie.go
index ac77787b9..28a07a680 100644
--- a/internal/provider/remote_magpie.go
+++ b/internal/provider/remote_magpie.go
@@ -8,7 +8,7 @@ import (
)
// A remote magpie is another computer's magpie gateway, shared on its
-// network (Settings → Share on local network), as a provider: the
+// network (Settings → Network and sharing → Share on local network), as a provider: the
// computers' agents stay wired by their own magpie, while the providers,
// routing groups and usage are the one magpie's they all share. Its
// address serves every API magpie does, so the provider speaks them all
diff --git a/internal/tui/pages.go b/internal/tui/pages.go
index a8736eb94..a7fdf522f 100644
--- a/internal/tui/pages.go
+++ b/internal/tui/pages.go
@@ -688,7 +688,8 @@ func addCmd(p provider.Provider) tea.Cmd {
// endpointAsk asks for the address of a vendor reached at the user's own
// (pr.Endpoint is its example): a remote magpie's, as the other
-// computer's magpie shows it in Settings, under Share on local network.
+// computer's magpie shows it in Settings → Network and sharing, under
+// Share on local network.
// Nothing typed is said to be needed, as the app's editor says it.
func endpointAsk(pr provider.PresetDef, crumbs []string, now string, then func(string) tea.Cmd) ask {
in := newInput(pr.Endpoint)
diff --git a/site/public/docs/docker.html b/site/public/docs/docker.html
index defe1d07a..4fb76c85c 100644
--- a/site/public/docs/docker.html
+++ b/site/public/docs/docker.html
@@ -171,7 +171,7 @@ docker logs magpie</pre>
<li><b>Publish the port</b>Recreate the container with <code>-p 3425:3425</code>, or bound to the NAS’s LAN or VPN address (<code>-p 192.168.1.20:3425:3425</code>), and with <code>-e MAGPIE_PUBLIC_URL=http://192.168.1.20:3425</code>.</li>
</ol>
<p>On each other computer, point the agent at the gateway with one of those keys as its API key: <code>http://192.168.1.20:3425/v1</code> for an OpenAI client, <code>http://192.168.1.20:3425</code> for an Anthropic or Gemini one. Model ids are <code>provider/model</code>, or a routing group’s; <code>GET /v1/models</code> lists them. If that computer runs magpie itself, add the container as a <a href="/docs/remote">Remote magpie</a> instead, and magpie wires its agents for you.</p>
- <p><span class="ui">Settings</span> → <span class="ui">Share on local network</span> isn’t needed in the container: turning it on also makes a gateway key named <span class="ui">Magpie</span>, and the gateway asks for a key from outside the container either way.</p>
+ <p><span class="ui">Settings</span> → <span class="ui">Network and sharing</span> → <span class="ui">Share on local network</span> isn’t needed in the container: turning it on also makes a gateway key named <span class="ui">Magpie</span>, and the gateway asks for a key from outside the container either way.</p>
<p><b>Upgrading from an earlier image.</b> An agent outside the container that sends <code>magpie</code>, or any other key that isn’t an enabled gateway key, now gets 401 (“the API key sent is not an enabled magpie gateway key”). Make it a key as above and put that in the agent’s settings. Agents that already send a gateway key, and a Remote magpie set up with one, keep working.</p>
<p id="allow"><b>Allowed addresses.</b> On a public host, set <code>-e MAGPIE_ALLOW_IPS=203.0.113.7,10.0.0.0/8</code> to the addresses your clients come from. A request from any other address is refused 403 before its key is looked at, so a key that leaks is no use from elsewhere; the refusal names the address it came from, as does the container’s log. magpie judges the address of the connection itself, never an <code>X-Forwarded-For</code> header, and a mistyped entry lets nothing in rather than everything. Docker’s default bridge network passes a client’s own address into the container, but a request from the host itself arrives from the bridge’s gateway (<code>172.17.0.1</code>), and Docker Desktop and rootless Docker show every client as one address of their own: add that, or check what the 403 says. Behind a reverse proxy or tunnel, every request comes from the proxy’s address, so limit who reaches magpie at the proxy. On the desktop app the same list is <span class="ui">Settings</span> → <span class="ui">Network and sharing</span> → <span class="ui">Allowed addresses</span>.</p>
<div class="callout"><b>Over the internet, prefer a VPN</b> such as Tailscale or WireGuard to opening 3425. A reverse proxy or tunnel in front of the container is the network too: its clients need a gateway key like any other machine’s.</div>
diff --git a/site/public/docs/ja/docker.html b/site/public/docs/ja/docker.html
index 550632cb8..5ac69181c 100644
--- a/site/public/docs/ja/docker.html
+++ b/site/public/docs/ja/docker.html
@@ -171,7 +171,7 @@ docker logs magpie</pre>
<li><b>ポートを公開する</b><code>-p 3425:3425</code>(または NAS の LAN や VPN のアドレスに限定して <code>-p 192.168.1.20:3425:3425</code>)と <code>-e MAGPIE_PUBLIC_URL=http://192.168.1.20:3425</code> を付けてコンテナを作り直します。</li>
</ol>
<p>ほかのコンピューターでは、エージェントをゲートウェイに向け、そのキーのどれかを API キーにします:OpenAI クライアントなら <code>http://192.168.1.20:3425/v1</code>、Anthropic や Gemini なら <code>http://192.168.1.20:3425</code>。モデル ID は <code>provider/model</code> かルーティンググループの名前で、<code>GET /v1/models</code> が一覧を返します。そのコンピューターでも magpie を動かしているなら、コンテナを<a href="/docs/ja/remote">リモート magpie</a> として追加すれば、magpie がエージェントを設定します。</p>
- <p>コンテナでは <span class="ui">設定</span> → <span class="ui">ローカルネットワークで共有</span> は不要です。オンにすると <span class="ui">Magpie</span> という名前のゲートウェイキーも作られますが、ゲートウェイはどちらでもコンテナの外からのリクエストにキーを求めます。</p>
+ <p>コンテナでは <span class="ui">設定</span> → <span class="ui">ネットワークと共有</span> → <span class="ui">ローカルネットワークで共有</span> は不要です。オンにすると <span class="ui">Magpie</span> という名前のゲートウェイキーも作られますが、ゲートウェイはどちらでもコンテナの外からのリクエストにキーを求めます。</p>
<p><b>以前のイメージからの更新。</b>コンテナの外から <code>magpie</code> や、有効なゲートウェイキーではないキーを送るエージェントは、401(“the API key sent is not an enabled magpie gateway key”)を受け取るようになります。上の手順でキーを作り、エージェントの設定に入れてください。すでにゲートウェイキーを送っているエージェントや、ゲートウェイキーで追加したリモート magpie はそのまま動きます。</p>
<p id="allow"><b>許可するアドレス。</b>公開ホストでは <code>-e MAGPIE_ALLOW_IPS=203.0.113.7,10.0.0.0/8</code> にクライアントのアドレスを書きます。ほかのアドレスからのリクエストはキーを見る前に 403 で拒否されるので、漏れたキーもよそからは使えません。拒否のメッセージとコンテナのログには、リクエスト元のアドレスが出ます。magpie が見るのは接続そのもののアドレスで、<code>X-Forwarded-For</code> ヘッダーは信用しません。書き間違えた項目は、すべてを通すのではなく、何も通しません。Docker 既定の bridge ネットワークはクライアント自身のアドレスをコンテナに渡しますが、ホスト自身からのリクエストは bridge のゲートウェイ(<code>172.17.0.1</code>)から届き、Docker Desktop や rootless Docker ではすべてのクライアントがそれ自身のひとつのアドレスに見えます。それを追加するか、403 に書かれたアドレスを確かめてください。リバースプロキシやトンネルの後ろでは、すべてのリクエストがプロキシのアドレスから届くので、接続できる人はプロキシで制限してください。デスクトップ版では同じリストが <span class="ui">設定</span> → <span class="ui">ネットワークと共有</span> → <span class="ui">許可するアドレス</span> にあります。</p>
<div class="callout"><b>インターネット越しなら VPN を</b>(Tailscale や WireGuard など)。3425 を開けるより安全です。コンテナの前に置くリバースプロキシやトンネルもネットワークです。そのクライアントにも、ほかのマシンと同じくゲートウェイキーが必要です。</div>
diff --git a/site/public/docs/ja/remote.html b/site/public/docs/ja/remote.html
index 4377e86bd..94f579512 100644
--- a/site/public/docs/ja/remote.html
+++ b/site/public/docs/ja/remote.html
@@ -94,7 +94,7 @@
<h2 id="share"><a class="anchor" href="#share">1. メインの magpie を共有する</a></h2>
<ol class="steps">
- <li><b>共有をオンにする</b>プロバイダを保存しているコンピューターで <span class="ui">設定</span> → <span class="ui">ローカルネットワークで共有</span> → <span class="ui">オン</span>。magpie はローカルネットワークで待ち受け、<span class="ui">Magpie</span> という名前のゲートウェイキーを作ります。スイッチの下の <span class="ui">アドレス</span> の行に、ほかのコンピューターから届くアドレス(例:<code>http://192.168.1.20:3425</code>)が表示されます。</li>
+ <li><b>共有をオンにする</b>プロバイダを保存しているコンピューターで <span class="ui">設定</span> → <span class="ui">ネットワークと共有</span> → <span class="ui">ローカルネットワークで共有</span> → <span class="ui">オン</span>。magpie はローカルネットワークで待ち受け、<span class="ui">Magpie</span> という名前のゲートウェイキーを作ります。スイッチの下の <span class="ui">アドレス</span> の行に、ほかのコンピューターから届くアドレス(例:<code>http://192.168.1.20:3425</code>)が表示されます。</li>
<li><b>コンピューターごとにキーを作る</b><span class="ui">ゲートウェイ</span> → <span class="ui">ゲートウェイキー</span>、または <code>magpie gateway-key add "Laptop"</code>。<code>sk-magpie-key-…</code> が表示されます。キーごとに日・週・月の上限と使えるモデルを決められ、呼び出しはその名前で集計されます。</li>
</ol>
<p>共有がオフの間、デスクトップの magpie は自分のコンピューターでしか待ち受けず、ほかのコンピューターからは届きません。Docker の magpie は公開したポートから届き、共有のオン・オフにかかわらず、コンテナの外からの呼び出しすべてにゲートウェイキーを求めます。<a href="/docs/ja/docker#share">Docker</a> を参照してください。</p>
diff --git a/site/public/docs/remote.html b/site/public/docs/remote.html
index e332c8a15..d88d69995 100644
--- a/site/public/docs/remote.html
+++ b/site/public/docs/remote.html
@@ -94,7 +94,7 @@
<h2 id="share"><a class="anchor" href="#share">1. Share the main magpie</a></h2>
<ol class="steps">
- <li><b>Turn on sharing</b>On the computer that keeps your providers: <span class="ui">Settings</span> → <span class="ui">Share on local network</span> → <span class="ui">On</span>. magpie then listens on the local network and makes a gateway key named <span class="ui">Magpie</span>. The <span class="ui">Address</span> row below the switch shows where other computers reach it, such as <code>http://192.168.1.20:3425</code>.</li>
+ <li><b>Turn on sharing</b>On the computer that keeps your providers: <span class="ui">Settings</span> → <span class="ui">Network and sharing</span> → <span class="ui">Share on local network</span> → <span class="ui">On</span>. magpie then listens on the local network and makes a gateway key named <span class="ui">Magpie</span>. The <span class="ui">Address</span> row below the switch shows where other computers reach it, such as <code>http://192.168.1.20:3425</code>.</li>
<li><b>Make a key for each computer</b><span class="ui">Gateway</span> → <span class="ui">Gateway keys</span>, or <code>magpie gateway-key add "Laptop"</code>, which prints its <code>sk-magpie-key-…</code>. Each key can have its own daily, weekly or monthly limit and its own models, and its calls are counted under its name.</li>
</ol>
<p>While sharing is off, a desktop magpie listens on its own computer only, and other computers can’t reach it. A magpie in Docker is reached through its published port instead, and asks every caller outside its container for a gateway key, shared or not; see <a href="/docs/docker#share">Docker</a>.</p>
diff --git a/site/public/docs/zh/docker.html b/site/public/docs/zh/docker.html
index 9d12a9787..7d5e6bcab 100644
--- a/site/public/docs/zh/docker.html
+++ b/site/public/docs/zh/docker.html
@@ -171,7 +171,7 @@ docker logs magpie</pre>
<li><b>发布端口</b>用 <code>-p 3425:3425</code>(或绑定到 NAS 的局域网或 VPN 地址,<code>-p 192.168.1.20:3425:3425</code>)并加上 <code>-e MAGPIE_PUBLIC_URL=http://192.168.1.20:3425</code> 重新创建容器。</li>
</ol>
<p>在其他电脑上,把 Agent 指向这个网关,用其中一个密钥作为 API key:OpenAI 客户端用 <code>http://192.168.1.20:3425/v1</code>,Anthropic 或 Gemini 客户端用 <code>http://192.168.1.20:3425</code>。模型 id 是 <code>provider/model</code> 或路由组的名字,<code>GET /v1/models</code> 会列出它们。如果那台电脑自己也运行 magpie,就把容器添加为<a href="/docs/zh/remote">远程 magpie</a>,由 magpie 替你配置 Agent。</p>
- <p>容器里不需要打开 <span class="ui">设置</span> → <span class="ui">局域网共享</span>:打开它会另外生成一个名为 <span class="ui">Magpie</span> 的网关密钥,而不论开关如何,网关都会向容器外的请求要密钥。</p>
+ <p>容器里不需要打开 <span class="ui">设置</span> → <span class="ui">网络与共享</span> → <span class="ui">局域网共享</span>:打开它会另外生成一个名为 <span class="ui">Magpie</span> 的网关密钥,而不论开关如何,网关都会向容器外的请求要密钥。</p>
<p><b>从旧镜像升级。</b>容器外发送 <code>magpie</code> 或其他非启用网关密钥的 Agent,现在会收到 401(“the API key sent is not an enabled magpie gateway key”)。按上面的步骤给它生成一个密钥,填进 Agent 的设置。已经发送网关密钥的 Agent,以及用网关密钥添加的远程 magpie,照常工作。</p>
<p id="allow"><b>允许的地址。</b>在公网主机上,用 <code>-e MAGPIE_ALLOW_IPS=203.0.113.7,10.0.0.0/8</code> 写上你的客户端所在的地址。来自其他地址的请求在看密钥之前就被拒绝(403),所以泄露的密钥从别处也用不了;拒绝信息和容器日志都会写出请求来自的地址。magpie 判断的是连接本身的地址,从不采信 <code>X-Forwarded-For</code> 头;写错的条目不会放行任何地址,而不是放行所有地址。Docker 默认的 bridge 网络会把客户端自己的地址传进容器,但宿主机自己发出的请求来自 bridge 的网关(<code>172.17.0.1</code>),Docker Desktop 和 rootless Docker 则把所有客户端显示成它们自己的一个地址:把它加上,或看 403 里写的是哪个。在反向代理或隧道后面时,所有请求都来自代理的地址,请在代理那里限制谁能访问。桌面版里同一个列表在 <span class="ui">设置</span> → <span class="ui">网络与共享</span> → <span class="ui">允许的地址</span>。</p>
<div class="callout"><b>跨互联网访问时,优先用 VPN</b>(如 Tailscale 或 WireGuard),不要直接开放 3425。容器前面的反向代理或隧道也算网络:它的客户端和其他机器一样需要网关密钥。</div>
diff --git a/site/public/docs/zh/remote.html b/site/public/docs/zh/remote.html
index 6e72dfbc3..9b90d5471 100644
--- a/site/public/docs/zh/remote.html
+++ b/site/public/docs/zh/remote.html
@@ -94,7 +94,7 @@
<h2 id="share"><a class="anchor" href="#share">1. 共享主 magpie</a></h2>
<ol class="steps">
- <li><b>打开共享</b>在保存供应商的电脑上:<span class="ui">设置</span> → <span class="ui">局域网共享</span> → <span class="ui">开启</span>。magpie 随即在局域网上监听,并生成一个名为 <span class="ui">Magpie</span> 的网关密钥。开关下方的 <span class="ui">地址</span> 一行显示其他电脑访问它的地址,例如 <code>http://192.168.1.20:3425</code>。</li>
+ <li><b>打开共享</b>在保存供应商的电脑上:<span class="ui">设置</span> → <span class="ui">网络与共享</span> → <span class="ui">局域网共享</span> → <span class="ui">开启</span>。magpie 随即在局域网上监听,并生成一个名为 <span class="ui">Magpie</span> 的网关密钥。开关下方的 <span class="ui">地址</span> 一行显示其他电脑访问它的地址,例如 <code>http://192.168.1.20:3425</code>。</li>
<li><b>给每台电脑一个密钥</b><span class="ui">网关</span> → <span class="ui">网关密钥</span>,或 <code>magpie gateway-key add "Laptop"</code>,它会打印 <code>sk-magpie-key-…</code>。每个密钥可以有自己的每日、每周或每月上限和可用模型,它的调用按它的名字统计。</li>
</ol>
<p>共享关闭时,桌面版 magpie 只在本机监听,其他电脑访问不到。Docker 里的 magpie 则通过发布的端口访问,不论是否共享,都会向容器外的每个调用方要网关密钥;见 <a href="/docs/zh/docker#share">Docker</a>。</p>