Commit Graph
15 Commits
Author SHA1 Message Date
yetone 2901df6eef site: a Claude Desktop docs page in en, zh and ja
/docs/claude-desktop says how magpie runs Claude Desktop's chat, Code and
Cowork tabs in Desktop's third-party gateway mode on magpie's models:
turning it on from the Agents tab or `magpie claude-desktop magpie`,
the restart Desktop needs, the model list read at start-up (a 1M model
listed once), the Code tab's opus/sonnet/haiku picks and the subagent
model, chats kept in Desktop's own profile (Settings → Import), the
separate Claude Magpie.app on a Mac (`launcher add`), Desktop's English
window in gateway mode, and `magpie claude-desktop default`. Each claim
is from internal/agent/claudedesktop*.go, its notices and the CLI's
agent forms. Linked from each language's Claude Code models page; in
the sitemap, llms.txt (also named in the agent list) and llms-full.txt.

Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
mote: node --test worker.test.mjs install.test.mjs: 71 pass, 0 fail.
Not tried: Claude Desktop itself on magpie for this page; it names only
what magpie's source and notices say.
2026-11-11 09:38:26 +08:00
yetone 4167419abf site: breadcrumbs in every docs page's structured data
Each docs page in en, zh and ja (98 pages, contributors left out) gets
a schema.org BreadcrumbList: magpie (the language's home page) > Docs
(that language's start page) > the page's h1. Search results can then
show the path instead of a bare URL. The eleven pages that had no JSON-LD
at all (docker, remote, intent, plugins, import, integrate, library,
mcp-router, masking, start, privacy) also get a TechArticle built from
their h1, meta description and canonical URL, like the other pages.
zh pages' inLanguage is zh-CN everywhere, as the older pages had it.
Existing JSON-LD is only appended to (the diff has no deletions besides
the inLanguage fix).

Run: every docs page's JSON-LD parsed with node (98 with a
BreadcrumbList); mote: node --test worker.test.mjs install.test.mjs:
71 pass, 0 fail.
Not tried: Google's Rich Results Test on the deployed pages.
2026-11-11 07:59:25 +08:00
yetone d2a80b3173 site: docs pages for ChatGPT in Claude Code and fixing common errors
New /docs/claude-code-chatgpt and /docs/troubleshooting in en, zh and
ja, aimed at queries Search Console shows with impressions and no page
for them ("claude code use chatgpt subscription", "opencode 502",
"workbuddy wsl", "局域网远程"). The first walks through signing in to
ChatGPT, picking a codex/... model for Claude Code, tier mapping,
effort, usage windows, several accounts and switching back. The second
covers 401/403, 429 and rests, 502/504, unknown models, a model the
agent doesn't list, port 3425, WSL, the LAN and moved subscriptions.
Claims were checked against internal/gateway, internal/provider,
internal/agent, internal/agentenv and i18n.js; unsupported ones were
dropped (WorkBuddy is not a WSL agent, no ChatGPT Business). Linked
from subscriptions, claude-code-models and start in each language,
sitemap.xml, llms.txt and the rebuilt llms-full.txt.

Run (mote): node --test worker.test.mjs install.test.mjs: 71 pass,
0 fail. Each new page's JSON-LD parsed with node.
Not tried: the pages in a real browser beyond the deployed 200 check.
2026-11-11 04:48:31 +08:00
yetone 4ca0befb8e site: docs pages for Anthropic and OpenAI API keys in every agent
New /docs/anthropic and /docs/openai in en, zh and ja: adding the key,
endpoints, model list, each agent's route (pass-through or translated),
what magpie does for the vendor (Anthropic cache marks and thinking,
OpenAI prompt_cache_key, Responses vs Chat, priority tier), reasoning,
web search, cost, several keys, troubleshooting and a JSON-LD FAQ.
Every claim was checked against internal/provider, internal/gateway and
internal/catalog. The "By provider" line on 30 pages, sitemap.xml (99
URLs), llms.txt and the rebuilt llms-full.txt link them.

Run (wsl-run, magpie-desktop; mote refused ssh at the time):
node --test worker.test.mjs install.test.mjs: 71 pass, 0 fail. Each new
page's JSON-LD parsed with node.
Not tried: the pages in a real browser beyond the deployed 200 check.
2026-11-10 18:56:19 +08:00
yetone b681b036d2 site: Mistral and Ollama pages in en, zh and ja
/docs/mistral and /docs/ollama (with zh/ and ja/) answer "how do I use
Mistral / Ollama in Claude Code, Codex, Gemini CLI and OpenCode".

Facts come from the source: the mistral, ollama and ollama-cloud
presets in internal/provider/presets.go, chattidy.go (thinking parts,
#483, #494), mistral_plan.go, ollama_usage.go, local_address.go,
gateway/ollama.go, and the usage text of internal/cli/providers_cli.go
and model_cli.go for every CLI example (provider add, fallback, models
+id, model price, model efforts).

Every docs page with a "By provider" line now lists both, in one order;
sitemap.xml, llms.txt and llms-full.txt (rebuilt) carry them.

Run on mote: node --test worker.test.mjs install.test.mjs (fail 0);
JSON-LD of the six pages parsed. Deployed (e33573b9) and every new URL
answers 200.
Not tried: the CLI examples against a live magpie (read from the
source's usage text instead).
2026-11-10 04:54:13 +08:00
yetone 682a1e3925 site: Gemini and Grok pages in en, zh and ja
New docs pages /docs/gemini and /docs/grok (with zh/ and ja/), each
linked from every "By provider" line (the four agent guides, OpenRouter
and Copilot in all three languages), sitemap.xml and llms.txt;
llms-full.txt rebuilt.

Gemini facts and their sources:
- preset "google", AI Studio keys, models.dev google catalog
  (internal/provider/presets.go); Chat and native Gemini endpoints,
  only Gemini clients on the native API (provider/gemini_api.go).
- thinking_config with include_thoughts, Gemini 2 budgets, xhigh/max
  sent as high (gateway/chat.go aiStudioThinking); a refused level is
  retried at the nearest one, a refused thinking_config falls back to
  reasoning_effort (gateway.go geminiRefusedLevel, refusesThinkingConfig).
- thought signatures kept 90 days and returned only to their provider
  (gemini_sigstore.go sigKeep, gemini_signature.go); tool schema clean-up
  (gemini_schema.go); search only without function tools (search.go
  geminiKeySearches); per-minute 429s as rate limits (routing.go).
- Vertex AI preset and options (provider/vertex.go, cli/providers_cli.go).
- Code Assist and Antigravity worded as docs/subscriptions.

Grok facts and their sources:
- xai preset: Chat and Responses at api.x.ai/v1, Messages at api.x.ai
  (presets.go); Claude Code, Codex, OpenCode go as they are, Gemini CLI
  translated to Chat (provider.go Speaks, gateway.go usable).
- fixes for xAI: xai_body.go, grok_schema.go (#2317), object_root.go
  (#1271), lone tool_choice (#378), additional_tools (#350),
  grok_integral.go (#1431), custom_tool.go.
- effort fitting (decide.go fitFor), search (search.go), cache stickiness
  (affinity.go cacheWorth/cacheCold), errors (gateway.go tooLongRe,
  fallback.go shapeRefused). Grok Build's ~/.grok/config.toml (agent/grok.go).
- The Grok subscription and its community plugin are left out on purpose.

Run: mote-run `node --test worker.test.mjs install.test.mjs` in site/,
71 pass; JSON-LD of all six pages parsed with node on mote. Deployed
(version f785815d) and curl-checked: all six pages 200, sitemap lists them.

Not tried: no real Gemini or xAI request was made for this page; header
names, vendor terms, free-tier numbers and xAI's own rate limits are left
out because the source doesn't state them.
2026-11-10 04:27:16 +08:00
yetone 795cab91ff site: OpenRouter and GitHub Copilot pages in en, zh and ja
Two provider guides beside DeepSeek, Kimi, GLM, Qwen and MiniMax, at
/docs/{,zh/,ja/}{openrouter,copilot}, linked from each agent guide's
"By provider" line, from each other, the sitemap and llms.txt
(llms-full.txt rebuilt).

Facts come from source. OpenRouter: the preset's Chat and Anthropic
bases in presets.go, the relay path that sends Claude Code's requests
as they are, Messages for Claude models (MessagesFirst) so cache_control
survives, skipOpenRouterAnthropic for the model list, readOpenRouter's
credits, MaxRPM on free models and openRouterSharedPool, creditRest.
Copilot: device sign-in and the three read-only login sources
(copilot_accounts.go, copilot_cli.go), GHE.com hosts, /models and
copilot_refused.go, copilot_auto.go's pick and fallback, the plan names
(copilot_accounts.go: Free, Pro, Pro+, Max, Education, Business,
Enterprise), copilotSubscriptionUsage's windows, cacheWritesAlike.
Header names, GitHub's terms and env variables are left out.

Run: mote-run sh -c 'cd site && node --test worker.test.mjs
install.test.mjs': 71 pass, 0 fail. JSON-LD of the six pages parses.
Deployed (1a513b7d); the six pages answer with their titles.
Not tried: a real OpenRouter key or Copilot seat through the pages'
commands.
2026-11-10 04:01:09 +08:00
yetone 802f03e684 site: Qwen and MiniMax provider pages in en, zh and ja
Two more provider guides beside DeepSeek, Kimi and GLM, at
/docs/{,zh/,ja/}{qwen,minimax}, linked from each agent guide's
"By provider" line, the sitemap and llms.txt.

Facts come from source: the six Qwen presets (qwen, qwen-cn,
qwen-token-plan, bailian-token-plan, qwencloud, qwencloud-token-plan)
and their endpoints and key kinds in presets.go, alibabaPlanModels,
dashScope()'s non-streaming rule in gateway.go, alwaysThinks and
effortInOutputConfig in anthropic.go, MiniMax's inline <think> in
chat.go, readMiniMaxPlan's windows in planquota.go, and the Qwen Code
and MiniMax Code agents in internal/agent.

Run: mote-run sh -c 'cd site && node --test worker.test.mjs
install.test.mjs': 69 pass, 0 fail. JSON-LD of the six pages parses.
Not tried: a real Qwen or MiniMax key through the pages' commands.
2026-11-09 12:40:40 +08:00
yetone 25eec8f6cb site: provider pages for DeepSeek, Kimi and GLM (docs/deepseek, kimi, glm; zh, ja)
One page per provider, in English, Chinese and Japanese. Each covers adding
the provider (the presets and plan= on the CLI), the endpoints magpie uses
for each plan (from internal/provider/presets.go), how Claude Code, Codex,
Gemini CLI and OpenCode reach it (linking the agent guides), the provider's
thinking rules from internal/gateway (DeepSeek's thinking on tool turns,
low/high/max effort and one-hour key affinity; GLM-5.3 and Kimi Code
(China) K3.1 refusing thinking off; GLM's output_config.effort), the Zhipu
1113 retry on the Coding Plan endpoint, balances and plan windows
(balance.go, planquota.go), and an FAQ with FAQPage JSON-LD. The four agent
guides get a "By provider" line in each language; sitemap.xml and llms.txt
list the new pages.

Model ids are only ones in presets.go or catalog testdata. Generated by
provgen.py in the seo scratch folder, from claude-code-models' layout.

Run: mote-run node --test worker.test.mjs install.test.mjs, 69/69 pass.
Tag balance of each article checked by script. Not tried: a browser
render of the pages.
2026-11-09 11:31:53 +08:00
yetone 8a58c0e307 site: a fair comparison of magpie, CC Switch and Claude Code Router (docs/alternatives, zh, ja)
New docs page in three languages: a summary of each tool, a table
(agents, how it switches, protocol translation, subscription sign-ins,
routing and failover, GUI and CLI, platforms, license), which one fits,
and an FAQ with FAQPage JSON-LD. Linked after "Models in OpenCode" in
every docs page's nav and footer, in sitemap.xml and llms.txt.

CC Switch and CCR facts come only from their own READMEs (fetched raw,
Nov 2026); each column is dated. Cells their README doesn't cover say
"not stated": CCR subscription sign-ins, CCR macOS signing, CC Switch
CLI. magpie facts from its source and llms.txt.

Run: mote-run site tests (worker.test.mjs install.test.mjs), 69 of 69
pass. Generator: magpie-wt/seo-scratch/altgen.py.
2026-11-09 10:50:13 +08:00
yetone 80ccaba641 site: guide to other models and subscriptions in OpenCode (en, zh, ja)
New docs/opencode-models in English, Chinese and Japanese: DeepSeek, Kimi, GLM, Qwen and Claude/ChatGPT/Copilot sign-ins in OpenCode, what magpie writes in opencode.json (internal/agent/agents.go openCodeLike, magpieProviderJSONAt), small_model, reasoning variants, cost, magpie visible, magpie opencode default. Linked from every docs page's nav and footer, sitemap.xml and llms.txt.

Run: mote-run sh -c 'cd site && node --test worker.test.mjs install.test.mjs': 69 pass, 0 fail.
Not tried: a real OpenCode run against the page's steps.
2026-11-09 10:12:57 +08:00
yetone 0ac8e6634d site: guide to local models in Claude Code and Codex (en, zh, ja)
/docs/local-models and its zh and ja pages: Ollama, LM Studio, oMLX and
MLX-Serve presets with their default addresses and the APIs magpie uses
for each, which agent goes through as is and which is translated,
another port or computer (Server address, the certificate switch),
vLLM and llama.cpp through Custom + Detect APIs, the context window and
masking. Linked from every docs page's nav and footer, the sitemap and
llms.txt.

Facts read from the provider presets, internal/cli/providers_cli.go's
help text and i18n.js labels. Left out for lack of evidence: detecting a
running Ollama, Ollama's default num_ctx, how well local models call
tools, default ports for llama.cpp and vLLM.

Run: mote-run sh -c 'cd site && node --test worker.test.mjs
install.test.mjs' at this tree: 69 pass, 0 fail.
2026-11-09 09:34:32 +08:00
yetone 8935abcf54 site: Japanese guides for other models in Claude Code, Codex, Gemini CLI and subscriptions
New pages under /docs/ja/, translated from the English guides with the
same facts and nothing added, aimed at Japanese searches such as
"Claude Code DeepSeek 使い方", "Codex 他のモデル", "Gemini CLI Claude" and
"ChatGPT サブスク 他のツール":
- /docs/ja/claude-code-models
- /docs/ja/codex-models
- /docs/ja/gemini-cli-models
- /docs/ja/subscriptions

Each is built on docs/ja/start.html's head, nav, footer and CSS, with
TechArticle and FAQPage JSON-LD (inLanguage ja; the FAQ entries are the
page's own FAQ text), canonical, og tags and hreflang en/zh/ja/x-default.
UI labels stay in English, as in the other ja pages.

- The en and zh versions of the four guides get a hreflang ja alternate
  and a 日本語 entry in their language menu, as docs/start.html has.
- Every ja page's nav and footer now link the ja URLs of the four guides
  instead of the English ones.
- sitemap.xml lists the 4 ja URLs.

Run:
- node --test worker.test.mjs install.test.mjs on mote (mote-run, at
  this tree): 69 tests, 69 pass, 0 fail. It includes the sitemap test
  (every docs page listed, own canonical, x-default, every alternate a
  listed page) and the contributors footer test.
- A Python check over every docs page: all 12 JSON-LD blocks parse, the
  ja TechArticles carry inLanguage ja and their own URL, every canonical
  is the page's URL, and every hreflang set is reciprocal (47 pages, 0
  problems).

Not tried: rendering the pages in a browser before the deploy.
2026-11-09 08:52:23 +08:00
yetone 8f74442e4d site: guides for other models in Gemini CLI and subscriptions in any agent
New pages, en and zh, built on the claude-code-models template (same
head, nav, footer, TechArticle + FAQPage JSON-LD, canonical, hreflang):
- /docs/gemini-cli-models: pointing Gemini CLI at the gateway's Gemini
  API, the four keys magpie writes, going back to Google, subscription
  models in Gemini CLI, routing.
- /docs/subscriptions: the built-in subscriptions and their model
  prefixes, sign-in, using one in another agent, several accounts,
  routing modes and fallback, other tools through the gateway.

Every docs page (en, zh, ja; ja links to the English URLs) gets the two
nav and footer links after the Codex guide, the 4 URLs go in
sitemap.xml and the 2 English ones in llms.txt, as 082ca55a3 did.

Facts come from:
- internal/agent/gemini.go: .env GOOGLE_GEMINI_BASE_URL and
  GEMINI_API_KEY, settings.json security.auth.selectedType
  (gemini-api-key) and model.name, the stash and restore on unroute,
  the auth options (google, api-key with a Google Gemini provider's
  key, vertex), detection by the gemini binary on PATH and not
  ~/.gemini (#230, #330), the auth warning, WSL distros.
- internal/gateway routes for /v1beta/models (generateContent,
  streamGenerateContent, countTokens).
- CLI forms from the command parser: magpie gemini model <id>,
  magpie gemini default|google, magpie accounts add <sub>,
  accounts add copilot --host, accounts project gemini, accounts
  discovery off.
- The existing docs (start, integrate, privacy, claude-code-models,
  codex-models) for the subscription list and plans, Claude requests
  running through the installed Claude Code, the routing modes,
  auto/<model> groups, the compacting rule matching Gemini CLI, the
  Connect section's base URLs, and "no magpie server in that path".

Left out as unverified: whether Gemini CLI's own /model picker lists
magpie's models.

Run:
- mote-run sh -c 'cd site && node --test worker.test.mjs
  install.test.mjs': tests 69, pass 69, fail 0.
- A Python check that every site/public/docs HTML file's tags balance
  (html.parser) and every ld+json block parses as JSON: 0 bad.
2026-11-09 08:11:27 +08:00
yetone 082ca55a32 site: guides for other models in Claude Code and Codex
Google sends 6,140 clicks in 28 days, every one on "magpie" or a
misspelling of it: no one finds magpie by searching for what it does.
These two guides, in English and Chinese, answer the searches it should
win: "claude code deepseek", "Claude Code 接入国产模型", "codex kimi",
"Codex 使用第三方模型".

- docs/claude-code-models and docs/zh/claude-code-models: why Claude
  Code needs a gateway, the setup in the app and the CLI, how the
  opus/sonnet/haiku/fable tiers map, every settings.json key magpie
  writes and how it is undone, GPT models from a ChatGPT or Copilot sign-in,
  several keys, and an FAQ.
- docs/codex-models and docs/zh/codex-models: the same for Codex, with
  /model's catalog, the two shapes of config.toml (signed in to ChatGPT
  or not), going back, Claude in Codex.
- Each page has TechArticle and FAQPage JSON-LD, canonical, hreflang
  (en, zh, x-default) and og tags. Both are in every docs page's nav and
  footer, in the sitemap and in llms.txt.

Every claim is checked against internal/agent/claude.go, codex.go,
internal/codexcat, internal/provider/presets.go and the gateway, or taken
from docs/start.html (Copilot models in Claude Code). No ja pages yet;
the ja nav links the English ones, as it does for integrate.

Run: node --test worker.test.mjs install.test.mjs on mote, 69 pass.
2026-11-09 07:28:29 +08:00