Sidrune reported (10-29) that it runs two sites whose keys don't cross:
China at sidrune.ai and Global at global.sidrune.ai, and its website
sends a browser to one by language. magpie listed the China site only,
so a user abroad who signed up on Global and pasted that key got 401
Invalid API key. They asked for a Global / China choice that moves the
endpoints and the key link with it.
Sidrune's entry is now two regions instead of top-level endpoints:
China (cn: sidrune.ai/v1, sidrune.ai) and Global (global:
global.sidrune.ai/v1, global.sidrune.ai), each with its own key link
(register?promo=MAGPIE3 on its site) and website. With regions named
China and Global, the app's existing paths take over (ef155a5ca): the
editor shows a picker, Get a key and the site link follow the region, a
new provider starts at China's in mainland China and Global's elsewhere,
and the two keep separate accounts (SplitAccounts).
Providers added before keep their endpoints: a provider stores its own,
and its region is read from them, so existing users stay on China.
Checked: global.sidrune.ai/v1/models and /v1/messages answer
API_KEY_REQUIRED without a key, as sidrune.ai does;
global.sidrune.ai/register?promo=MAGPIE3 answers 200;
global.sidrune.ai/ redirects to sidrune.ai/, their landing page.
Run on mote: node --test site/*.test.mjs, 45 of 45 pass. go test
./internal/provider -run TestPartner, all pass. A throwaway test fed
worker.js served() over this partners.js to the app and found Sidrune
valid, a new provider at sidrune.ai in China and when the zone is
unknown and at global.sidrune.ai abroad (key and site /go links with
/cn and /global), SplitAccounts set, and a provider at sidrune.ai
still at China after the user moves abroad.
Not tried: a request with a key on either site, and the editor's
picker for Sidrune in the GUI.
CoreCode (Joe, 10-28 23:12) added an OpenAI-compatible API and asked for
it in the Add sheet: chat and Responses at https://corecode.live/v1 beside
the Anthropic endpoint, keysUrl https://corecode.live/keys?ref=magpie,
website https://corecode.live/sign-in?ref=magpie, and the en and zh
taglines they sent, word for word (sponsors' copy is used as written).
zh-TW is made from the zh.
Checked: without a key, /v1/models lists the Claude models with
supported_endpoint_types anthropic and openai, and /v1/chat/completions
and /v1/responses answer 401 "Invalid token". Both ref links answer 200.
Run: node --test site/*.test.mjs on mote, 45 of 45 pass.
Not tried: a request with a key. The test key CoreCode sent on 10-26 now
gets "Invalid token"; a new one has been asked for.
FastAI asked for www.fastaitoken.com instead of api.fastaitoken.com.
Chat and Responses now use https://www.fastaitoken.com/v1, Anthropic
https://www.fastaitoken.com. Without a key, /v1/models and /v1/messages
there answer sub2api's API_KEY_REQUIRED. Not tried: a request with a
key.
Run: node --test site/*.test.mjs (31 pass).
Sidrune mailed a correction: their first materials said "Cloud" where
they meant Claude. The zh and en notes are now their new sentences
word for word, zh-TW follows zh, and keysUrl is their MAGPIE3 promo
register link ($3 trial credit, used to count sign-ups from magpie).
Name, website, endpoints, icon and dates are unchanged.
Run: node --test site/*.test.mjs (31 pass); the promo link answers 200.
FastAIToken paid for a website card and an in-app partner seat, each
with its own register link so they can count them apart: utm=official
behind /go/fastai/home, utm=soft for the app's keys and website links.
The tagline is the owner's ("Claude / GPT / Deepseek 一站式接入方案,最
低0.6折,支持对公"), translated for en, ja, de and zh-TW. The logos
come from the two PNGs they sent: the website gets a horizontal mark +
wordmark, with the dark wordmark turned light for dark mode; the app
gets the F mark alone.
Endpoints are api.fastaitoken.com, the API host their own site names
(a sub2api deployment: /v1/models, /v1/messages and /v1/responses each
answer API_KEY_REQUIRED without a key). Not tried: a request with a
key. The test key they mailed couldn't be copied out of the mailbox,
so no model has answered through this entry yet.
Run: node --test site/*.test.mjs (31 pass).
Sidrune AI paid for an in-app partner seat. It serves Chat
Completions and Responses at https://sidrune.ai/v1 and Anthropic
Messages at https://sidrune.ai; each answered with the partner's test
key just before this commit (claude-sonnet-4-6), and real Claude Code
in a sandbox HOME answered earlier today. The taglines are the
partner's own sentences, "Cloud" kept as they wrote it; listed for zh
and en, as they asked. The icon is their white mark on a black tile,
since an entry has one icon for both themes.
Run: node --test site/*.test.mjs (31 pass); the served feed at
10-26 19:00 through checkPartner and validPartners in a throwaway
internal/provider test: kimi, apikeyfan, wandapi, corecode, sidrune
all valid.
CoreCode paid for an in-app seat (the owner confirmed the payment). The
partner "corecode" serves Anthropic Messages at corecode.live. Its key
page is corecode.live/keys and its website is corecode.live. No langs
were asked for, so it is listed in every language. The en and zh
taglines are the ones it sent, and zh-TW is made from the zh. It is
listed from 10-26 to 11-26 +08:00, one month. The icon is their 64px SVG
rendered at 128px (rsvg-convert).
Run: node --test site/*.test.mjs passed 31 of 31. In a throwaway test in
internal/provider, the served feed (worker.js served() over partners.js
at 10-26) parsed as []Partner and passed checkPartner and validPartners.
All four partners were kept, and corecode's links are /go links.
Against the real service with the test key it sent:
- /v1/models lists the four Claude models.
- Real Claude Code in a sandbox HOME, with ANTHROPIC_BASE_URL set to
corecode.live, answered "OK".
- A plain curl to /v1/messages or /v1/chat/completions is refused:
"only accepts requests from Claude Code". Agents other than Claude
Code may be refused the same way.
Not tried: adding it from the app's Add sheet, and requests through the
magpie gateway.
APIKEY.FAN's seat runs one month from 10-24, so its partners.js entry is
listed until 2026-11-24 00:00 +08:00. Its README banner has no end date
of its own; it comes out by hand when the seat isn't renewed.
Run: node --test site/*.test.mjs (31 of 31 ok). served() over partners.js
keeps apikeyfan at 11-23 23:59:59 +08:00 and leaves it out at 11-24
00:00 +08:00.
WandAPI paid for one month from 10-25, so its partners.js entry is listed
until 2026-11-25 00:00 +08:00. The README banner has no end date of its
own; it comes out by hand when the seat isn't renewed.
Run: node --test site/*.test.mjs (31 of 31 ok). served() over partners.js
keeps wandapi at 10-26 and at 11-24 23:59:59 +08:00, and leaves it out at
11-25 00:00 +08:00.
WandAPI took an in-app seat. The partner "wandapi" serves Chat
Completions and Responses at api.wandapi.ai/v1 and Anthropic Messages at
api.wandapi.ai. Its key page is its magpieapp referral link, its website
wandapi.ai. No langs were asked for, so it is listed in every language,
with the tagline it sent in en and zh and a zh-TW one made from the zh.
Listed from 10-25, no end set yet. The icon is their 512px logo at 128px
(7.1KB PNG).
Run: node --test site/*.test.mjs (31 of 31 ok). The served feed
(worker.js served() over partners.js) parsed as []Partner and passed
checkPartner and validPartners in a throwaway test in internal/provider:
all three partners kept, wandapi's links /go ones. Against the real
service with the test key it sent: /v1/models (28 models), Messages
(plain and streamed) and Responses answered "OK". Chat Completions
answered for gemini-3.5-flash and gpt-5.6-terra; for claude-haiku-5-5 and
gpt-6-sol it says the model doesn't take that protocol, so those models
go through Messages or Responses. Its Gemini endpoint (/v1beta) answered
too, but a partner entry has no Gemini base URL.
Not tried: adding it from the app's Add sheet.
APIKEY.FAN took an in-app seat. The partner "apikeyfan" serves Chat
Completions, Responses and Anthropic Messages at api.apikey.fan (region
"Default") and at its direct line slb.apikey.fan (region "Direct"); both
region names already have zh, zh-TW, ja and de strings. Its key page and
website are its aff=magpie link. It asked to be shown in Chinese and
English, so langs is ["zh", "en"] (zh-TW is listed through "zh"), with a
tagline in en, zh and zh-TW. Listed from 10-24, no end set yet. The icon
is their square logo at 128px (12.7KB PNG).
Run: node --test site/*.test.mjs (30 of 30 ok). The served feed
(worker.js served() over partners.js) parsed with partnerFeed and passed
checkPartner and validPartners in a throwaway test in internal/provider:
both partners kept, apikeyfan's links /go ones. Against the real service
with the test keys it sent: /v1/models, Messages (plain and streamed),
Responses and Chat Completions each answered "OK" on both hosts.
Not tried: adding it from the app's Add sheet; the balance endpoint it
sent (/v1/usage) has no place in a partner entry.
Every app downloads a partner's icon on each fetch of the list, and the
official mark's grain texture made the SVG 838KB. It is rendered to
128x128 (rsvg-convert, 16,802 bytes) at a new URL, partner-kimi.png, so
an app holding the earlier icon fetches this one.
Run: node --test in site/ 30/30; looked at the PNG; curl after deploy.
Kimi took an in-app seat and a README seat. The partner "kimi" (Kimi
Code) has four regions under "Plan": the Kimi Code membership in China
(api.kimi.com/coding, catalog kimi-code-plan-cn, the default) and
globally (api.kimi.ai/coding, kimi-code-plan-global), and Moonshot's pay
as you go in China and globally (catalog moonshotai), with the endpoints
and catalogs of the built-in kimi-code, kimi-code-cn and moonshot
presets, so the plan's handling (keyed on those catalogs and hosts) is
the same. Each region's key page and website is Kimi's aff=magpie link
for it. The tagline is in all five app languages; it is listed in every
language from 10-23, with no end set yet.
README.md links sponsor "kimi" (www.kimi.ai/code), README.zh-CN.md
"kimi-cn" (www.kimi.com/code), with a light and a dark logo. The icon
and logos are drawn from Kimi's mark.
Run: node --test site/*.test.mjs (30 of 30 ok). The served feed
(worker.js served() over partners.js) parsed with partnerFeed and passed
checkPartner and validPartners in a throwaway test in internal/provider:
one partner, the cn region's endpoints as default, every link a /go one.
Not tried: the app's Add sheet with this feed; the editor's link reads
usemagpie.ai, not www.kimi.com, until the app shows a partner's own host.
The app's own partner counts only come from users who leave the stats on,
so a sponsor's reach and clicks are now also counted where the server sees
them. /api/partners hands out each partner's website and keysUrl (and a
region's) as usemagpie.ai/go/<id>/site|keys[/<region>]; /go sends a
"magpie partner go" event to PostHog (partner, link, region, country) and
302s to partners.js's own URL. One in ten list fetches sends "magpie
partners fetch" with weight 10 while someone is listed. Events carry a
random id each, no install id or address. Ended entries leave the list but
/go still resolves them, since added providers keep the links. Privacy text
updated in README (en, zh), docs/reference.md and the site docs (en, zh, ja).
Run: node --test site/*.test.mjs (27 pass); a scratch copy with a fake
partner served rewritten links, 302'd /go to the real URLs and posted both
events; PostHog's /i/v0/e/ answered 200 to the payload shape.
The app fetches the list behind the call every 6 hours (10 minutes after a
failure), never waiting, and keeps it in the cache folder. Each entry is
checked: its own id, never a built-in preset's; a name and an endpoint;
https only; at most 12; no decision API, no-key or user endpoint. Its logo
goes through FetchIcon. A partner is a preset to the rest of magpie, and
one that has left still is to the providers added from it, unsponsored.
The window lists a partner in the languages it names only, with its tagline
in the page's language; `magpie presets` and the TUI list them first too.
MAGPIE_PARTNERS moves the list, off lists none.
Run: go test -tags nogui -race ./internal/provider ./internal/gui
./internal/tui . (ok); TestPartners* -race -count=3; node --test
internal/gui/tests/partners.test.cjs add-sheet gui-ja gui-de i18n-keys in
Chromium and WebKit (en/zh/ja/de, 900 and 440px); node --test
site/worker.test.mjs site/install.test.mjs; the built binary in a sandbox
HOME against a local feed: listed, an http entry left out, listed from the
cache with the site down, `provider add` from it.