From e7fc84e96436079bb92c8f5f808b751aa543e4ae Mon Sep 17 00:00:00 2001
From: yetone
Date: Thu, 12 Nov 2026 00:16:55 +0800
Subject: [PATCH] site: a nanobot docs page in en, zh and ja
/docs/nanobot says how magpie runs nanobot (HKUDS/nanobot, pip install
nanobot-ai) on magpie's models: providers.magpie in ~/.nanobot/config.json
at the gateway's /v1 with its key and a nanobot User-Agent;
agents.defaults set to provider magpie, model magpie/ and the
context window magpie knows, camelCase written and the snake_case
spelling taken out; a modelPreset stashed and put back; the gateway and
WebUI taking a change at their next reply, nanobot agent reading it
once; the user's defaults stashed, other providers and presets kept, a
file magpie made removed once empty; WSL; switching back. Each claim is
from internal/agent/nanobot.go (its header, nanobotDefaults, Check,
noticeNanobot) and wsl.go's nanobot entry. Linked from each language's
OpenClaw page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: nanobot itself on magpie for this page; it names only what
magpie's source says.
---
site/public/docs/ja/nanobot.html | 279 ++++++++++++++++++++++++++++++
site/public/docs/ja/openclaw.html | 2 +-
site/public/docs/nanobot.html | 279 ++++++++++++++++++++++++++++++
site/public/docs/openclaw.html | 2 +-
site/public/docs/zh/nanobot.html | 279 ++++++++++++++++++++++++++++++
site/public/docs/zh/openclaw.html | 2 +-
site/public/llms-full.txt | 83 ++++++++-
site/public/llms.txt | 1 +
site/public/sitemap.xml | 3 +
9 files changed, 926 insertions(+), 4 deletions(-)
create mode 100644 site/public/docs/ja/nanobot.html
create mode 100644 site/public/docs/nanobot.html
create mode 100644 site/public/docs/zh/nanobot.html
diff --git a/site/public/docs/ja/nanobot.html b/site/public/docs/ja/nanobot.html
new file mode 100644
index 000000000..a6f0d1368
--- /dev/null
+++ b/site/public/docs/ja/nanobot.html
@@ -0,0 +1,279 @@
+
+
+
+
+
+nanobot で DeepSeek、GLM、Kimi、Qwen、GPT、Claude、ChatGPT サブスクリプションを使う:magpie で nanobot を任意のモデルに · magpie
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/site/public/docs/nanobot.html b/site/public/docs/nanobot.html
new file mode 100644
index 000000000..ecd1e67f2
--- /dev/null
+++ b/site/public/docs/nanobot.html
@@ -0,0 +1,279 @@
+
+
+
+
+
+nanobot with DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription: any model in nanobot through magpie · magpie
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Docs · Guide
+
nanobot on any model
+
nanobot (HKUDS/nanobot, pip install nanobot-ai) is a personal AI assistant that answers in chat apps, its CLI and its WebUI. Its model comes from ~/.nanobot/config.json, where any key under providers that isn't one of its own is an OpenAI-compatible endpoint. magpie adds a magpie provider there and sets the default model to one of magpie's, so nanobot runs on any model you have in magpie: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription.
magpie adds providers.magpie at the gateway's /v1, with the gateway's key and a User-Agent of nanobot (the OpenAI SDK's otherwise, which tells it from no one), and sets agents.defaults to provider magpie, model magpie/<model id> and the context window magpie knows the model to take. nanobot strips the magpie/ prefix before it sends the model.
nanobot's pydantic models read camelCase and snake_case keys alike. magpie writes nanobot's own camelCase, and takes out a snake_case spelling of the same key, so no two settings disagree.
When agents.defaults.modelPreset names one of modelPresets, it goes over both provider and model. So magpie stashes it and takes it out while magpie's model is on, and puts it back when it steps out; your modelPresets stay as they are.
nanobot's gateway (nanobot gateway, the WebUI's) watches the file and takes a change at its next reply. nanobot agent reads it once, so restart an open nanobot agent chat. magpie says so while nanobot is running.
The provider, model, context window and modelPreset you had under agents.defaults are stashed and put back when magpie steps out. Your other providers, presets and keys stay as they are. A config.json magpie made goes again once nothing is left in it. If you delete the magpie provider in nanobot, magpie's check says it no longer reaches magpie.
Set the row back to default in magpie: magpie takes out providers.magpie and puts agents.defaults back. Or pick a model of your own, and magpie puts things back and then sets it as the model.
Yes. magpie adds an OpenAI-compatible magpie provider to ~/.nanobot/config.json and sets the default model to the one you pick in magpie.
+
Why is nanobot still on the old model?
+
nanobot's gateway and WebUI take the change at their next reply; nanobot agent reads its config once, so restart the chat.
+
Do I lose my modelPreset?
+
No. magpie stashes agents.defaults.modelPreset and takes it out (it would go over magpie's model), and puts it back when it steps out; modelPresets stay.
+
Does it work for nanobot in WSL?
+
Yes. magpie sets up a nanobot in a WSL distro too.
diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt
index e1aa9bed4..51ae99cae 100644
--- a/site/public/llms-full.txt
+++ b/site/public/llms-full.txt
@@ -3895,7 +3895,7 @@ No. It writes only its own provider, the default model and, if you have one, the
Yes. It reads OPENCLAW_PROFILE, OPENCLAW_STATE_DIR, OPENCLAW_CONFIG_PATH and OPENCLAW_HOME the way OpenClaw does.
-More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Hermes Agent on any model](https://usemagpie.ai/docs/hermes) and [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF).
+More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Hermes Agent on any model](https://usemagpie.ai/docs/hermes), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models) and [nanobot on any model](https://usemagpie.ai/docs/nanobot). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF).
---
@@ -5194,6 +5194,87 @@ More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/o
---
+Source: https://usemagpie.ai/docs/nanobot
+
+# nanobot on any model
+
+nanobot (HKUDS/nanobot, `pip install nanobot-ai`) is a personal AI assistant that answers in chat apps, its CLI and its WebUI. Its model comes from `~/.nanobot/config.json`, where any key under `providers` that isn't one of its own is an OpenAI-compatible endpoint. magpie adds a magpie provider there and sets the default model to one of magpie's, so nanobot runs on any model you have in magpie: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription.
+
+## Set up nanobot
+
+1. **Run nanobot once.** `nanobot onboard` or its first run makes `~/.nanobot`.
+2. **Add a provider in magpie.** Add an API key on the Providers page, or sign in to a subscription.
+3. **Pick a model on nanobot's row.** On the Agents page, pick a magpie model for nanobot. A nanobot in WSL is set up there too.
+
+```
+pip install nanobot-ai && nanobot onboard # nanobot makes ~/.nanobot
+magpie nanobot deepseek/deepseek-v4-pro
+```
+
+## What goes in config.json
+
+magpie adds `providers.magpie` at the gateway's `/v1`, with the gateway's key and a User-Agent of `nanobot` (the OpenAI SDK's otherwise, which tells it from no one), and sets `agents.defaults` to provider magpie, model `magpie/` and the context window magpie knows the model to take. nanobot strips the `magpie/` prefix before it sends the model.
+
+```
+// ~/.nanobot/config.json
+{
+ "providers": {
+ …,
+ "magpie": {"apiBase": "http://127.0.0.1:3425/v1", "apiKey": "…",
+ "extraHeaders": {"User-Agent": "nanobot"}}
+ },
+ "agents": {"defaults": {
+ "provider": "magpie",
+ "model": "magpie/deepseek/deepseek-v4-pro",
+ "contextWindowTokens": …
+ }}
+}
+```
+
+nanobot's pydantic models read camelCase and snake_case keys alike. magpie writes nanobot's own camelCase, and takes out a snake_case spelling of the same key, so no two settings disagree.
+
+## modelPreset
+
+When `agents.defaults.modelPreset` names one of `modelPresets`, it goes over both provider and model. So magpie stashes it and takes it out while magpie's model is on, and puts it back when it steps out; your `modelPresets` stay as they are.
+
+## When it takes effect
+
+nanobot's gateway (`nanobot gateway`, the WebUI's) watches the file and takes a change at its next reply. `nanobot agent` reads it once, so restart an open `nanobot agent` chat. magpie says so while nanobot is running.
+
+## Your own settings
+
+The provider, model, context window and modelPreset you had under `agents.defaults` are stashed and put back when magpie steps out. Your other providers, presets and keys stay as they are. A config.json magpie made goes again once nothing is left in it. If you delete the magpie provider in nanobot, magpie's check says it no longer reaches magpie.
+
+## Switching back
+
+Set the row back to default in magpie: magpie takes out `providers.magpie` and puts `agents.defaults` back. Or pick a model of your own, and magpie puts things back and then sets it as the model.
+
+```
+magpie nanobot default
+```
+
+## FAQ
+
+### Can nanobot use DeepSeek, GLM, Kimi or Qwen?
+
+Yes. magpie adds an OpenAI-compatible magpie provider to ~/.nanobot/config.json and sets the default model to the one you pick in magpie.
+
+### Why is nanobot still on the old model?
+
+nanobot's gateway and WebUI take the change at their next reply; nanobot agent reads its config once, so restart the chat.
+
+### Do I lose my modelPreset?
+
+No. magpie stashes agents.defaults.modelPreset and takes it out (it would go over magpie's model), and puts it back when it steps out; modelPresets stay.
+
+### Does it work for nanobot in WSL?
+
+Yes. magpie sets up a nanobot in a WSL distro too.
+
+More agents on the same models: [OpenClaw on any model](https://usemagpie.ai/docs/openclaw), [Hermes Agent on any model](https://usemagpie.ai/docs/hermes) and [OpenChamber on any model](https://usemagpie.ai/docs/openchamber). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF).
+
+---
+
Source: https://usemagpie.ai/docs/cherry-studio
# Every model in Cherry Studio, through magpie
diff --git a/site/public/llms.txt b/site/public/llms.txt
index 69555d7c3..0ee045f23 100644
--- a/site/public/llms.txt
+++ b/site/public/llms.txt
@@ -91,6 +91,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA
- [T3 Code on any model](https://usemagpie.ai/docs/t3-code): run T3 Code (pingdotgg/t3code) on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through two provider instances magpie writes into its settings.json, magpie on Claude Code and magpie · Codex on Codex; reasoning levels, the Thinking switch, your own instances kept, Claude Code's own routing and switching back.
- [Craft Agents on any model](https://usemagpie.ai/docs/craft-agents): run Craft Agents (lukilabs/craft-agents-oss) on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through the magpie connection magpie writes into its config.json; no key to enter, new sessions taking the change, your own connections and default kept, and switching back.
- [OpenChamber on any model](https://usemagpie.ai/docs/openchamber): run OpenChamber, the desktop, web and VS Code front end for OpenCode, on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through magpie: its default and small models in preferences.json, a project's own default going first, magpie's provider in the OpenCode config, new sessions taking the change, and switching back.
+- [nanobot on any model](https://usemagpie.ai/docs/nanobot): run nanobot (HKUDS/nanobot, pip install nanobot-ai) on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through the magpie provider magpie writes into ~/.nanobot/config.json; agents.defaults' model and context window, modelPreset stashed and put back, when its gateway and WebUI take the change, WSL, and switching back.
- [Cherry Studio](https://usemagpie.ai/docs/cherry-studio): add magpie to Cherry Studio as one OpenAI-compatible provider in one click, confirmed in Cherry Studio, and use every magpie model there, Claude, ChatGPT and Copilot subscriptions included; model list, status and usage.
- [Fixing common errors](https://usemagpie.ai/docs/troubleshooting): what the gateway's errors mean and the fix: 401 and 403, 429 and rest periods, 502 and 504, model not found, an agent that doesn't show a model, port 3425 in use, agents in WSL, use from another computer and subscriptions moved to plugins.
- [Library](https://usemagpie.ai/docs/library): instructions, MCP servers, skills, hooks and subagents for each agent.
diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml
index 0af77e45e..f09eec422 100644
--- a/site/public/sitemap.xml
+++ b/site/public/sitemap.xml
@@ -45,6 +45,7 @@
https://usemagpie.ai/docs/t3-codehttps://usemagpie.ai/docs/craft-agentshttps://usemagpie.ai/docs/openchamber
+https://usemagpie.ai/docs/nanobothttps://usemagpie.ai/docs/local-modelshttps://usemagpie.ai/docs/opencode-modelshttps://usemagpie.ai/docs/alternatives
@@ -111,6 +112,7 @@
https://usemagpie.ai/docs/zh/t3-codehttps://usemagpie.ai/docs/zh/craft-agentshttps://usemagpie.ai/docs/zh/openchamber
+https://usemagpie.ai/docs/zh/nanobothttps://usemagpie.ai/docs/zh/local-modelshttps://usemagpie.ai/docs/zh/opencode-modelshttps://usemagpie.ai/docs/zh/alternatives
@@ -176,6 +178,7 @@
https://usemagpie.ai/docs/ja/t3-codehttps://usemagpie.ai/docs/ja/craft-agentshttps://usemagpie.ai/docs/ja/openchamber
+https://usemagpie.ai/docs/ja/nanobothttps://usemagpie.ai/docs/ja/local-modelshttps://usemagpie.ai/docs/ja/opencode-modelshttps://usemagpie.ai/docs/ja/alternatives