registry: providers-hub adds MonkeyCode and MonkeyCode intl (#688)

Registry: providers-hub lists hub-monkeycode and hub-monkeycode-intl (8 -> 10), pointing at magpie-providers-hub@0.11.0.

Reviewed head fbad6c4f. MonkeyCode is a coding platform with its own membership tiers, credits, sign-in and check-in at monkeycode-ai.com / .net, not a relay station.

Read src/monkeycode.mjs and src/monkeycode-bridge.mjs from `npm pack magpie-providers-hub@0.11.0`: hosts are only proxy.monkeycode-ai.{com,net} (gateway; the key and HMAC signature go there only) and monkeycode-ai.{com,net} (session cookie for balance/check-in/key exchange); the CDP read is on 127.0.0.1 of a throw-away Chromium profile, the login page on a random 127.0.0.1 port; no fs writes, no env reads, no logging of credentials. npm latest is 0.11.0 and exports HubMonkeycodePlugin and HubMonkeycodeIntlPlugin; PROVIDER_IDS equals the registry's ten.

Run on mote: package tests (node --test with tests/setup.mjs sentinel) 198 tests, 197 pass, 1 skipped, 0 fail; bun scripts/check.mjs registry ok on the PR head.
Not tried: a real MonkeyCode sign-in or request. The package.json description still says seven providers (not a registry matter).
This commit is contained in:
Gyl1219
2026-11-04 10:51:45 +08:00
committed by GitHub
parent 5f78bb0089
commit 1a763307bf
+5 -3
View File
@@ -166,12 +166,14 @@
"hub-magicrew-intl",
"hub-autoclaw",
"hub-autoclaw-cn",
"hub-loomy"
"hub-loomy",
"hub-monkeycode",
"hub-monkeycode-intl"
],
"community": true,
"summary": {
"en": "Third-party Magpie adapter for dsh-providers-hub (by JetLi): eight providers, each a separate channel you can sign in to, meter and switch off on its own — AStudio (iFlytek), Accio (Alibaba), LobsterAI (Youdao), MagiCrew (letsmagic.cn / magicrew.ai), AutoClaw (international autoglm.ai / China zhipuai.cn), and Loomy (iFlytek). Channels already in the registry are shipped only with a named difference (#614; see the notes below). Runs without DSH. Its AStudio signs in on a local page (SMS, password or WeChat QR, no desktop app needed) and calls chat/completions; the standalone AStudio plugin (astudio) reuses the desktop sign-in and calls Responses. On one account both share the same daily points pool. Its AutoClaw providers sign in by pasting an accessToken + refreshToken, or by reading an already signed-in AutoClaw desktop client (current Windows user only, off unless clicked) — web OAuth and phone SMS are NOT supported here, use opencode-autoclaw-auth for those. Note: importing rotates the one-time refresh token, which signs the desktop client out; it will ask for sign-in again afterwards. Both plugins read one account's credit balance, so spend in one and the other sees it. Its Loomy adds WeChat QR sign-in (the official iFlytek WeChat OAuth, long-poll for the code) — the standalone Loomy plugin (opencode-loomy-auth) has SMS code + pasted session but no WeChat QR; SMS code sign-in works the same in both (the plugin's local sign-in page offers only WeChat QR and SMS — no pasted-session entry; use opencode-loomy-auth for that), and both read one account's credit balance.",
"zh": "dsh-providers-hub(作者 JetLi)的第三方适配:八条供应商(每渠道一条,可各自登录/看额度/单独关闭)——AStudio(讯飞)、Accio(阿里)、LobsterAI(有道)、超级麦吉/MagiCrew(letsmagic.cn / magicrew.ai)、AutoClaw(autoglm.ai 国际 / zhipuai.cn 国内)、Loomy(讯飞)。与 registry 已有渠道重复的,只有写明差别(#614,见下方各渠道说明)才提供。不依赖 DSH 运行。其中 AStudio 在本地登录页用短信、密码或微信扫码登录(不需要桌面端),走 chat/completions;独立的 AStudio 插件(astudio)复用桌面端登录态,走 Responses。同一账号两边共用一个每日积分池。其 AutoClaw 两条渠道的登录方式只有两种:粘贴 accessToken + refreshToken,或读取已登录的 AutoClaw 桌面端(仅当前 Windows 用户、默认关闭、需主动点击);不支持网页 OAuth 与手机验证码,需要请用 opencode-autoclaw-auth。注意:导入会轮换一次性的 refresh_token,桌面客户端会被登出、之后需要重新登录。两个插件读同一账号的积分余额,一边用掉的另一边会同步减少。其 Loomy 新增微信扫码登录(讯飞官方微信 OAuth,长轮询拿 code)——独立的 Loomy 插件(opencode-loomy-auth)只有短信验证码与粘贴 session,没有微信扫码;短信验证码两边同款(本插件登录页只有微信扫码与短信两条路,没有粘贴 session 入口,要粘贴请用独立包),读的也是同一账号的积分余额。"
"en": "Third-party Magpie adapter for dsh-providers-hub (by JetLi): ten providers, each a separate channel you can sign in to, meter and switch off on its own — AStudio (iFlytek), Accio (Alibaba), LobsterAI (Youdao), MagiCrew (letsmagic.cn / magicrew.ai), AutoClaw (international autoglm.ai / China zhipuai.cn), and Loomy (iFlytek), plus MonkeyCode (monkeycode-ai.com China / monkeycode-ai.net international). Channels already in the registry are shipped only with a named difference (#614; see the notes below). Runs without DSH. Its AStudio signs in on a local page (SMS, password or WeChat QR, no desktop app needed) and calls chat/completions; the standalone AStudio plugin (astudio) reuses the desktop sign-in and calls Responses. On one account both share the same daily points pool. Its AutoClaw providers sign in by pasting an accessToken + refreshToken, or by reading an already signed-in AutoClaw desktop client (current Windows user only, off unless clicked) — web OAuth and phone SMS are NOT supported here, use opencode-autoclaw-auth for those. Note: importing rotates the one-time refresh token, which signs the desktop client out; it will ask for sign-in again afterwards. Both plugins read one account's credit balance, so spend in one and the other sees it. Its Loomy adds WeChat QR sign-in (the official iFlytek WeChat OAuth, long-poll for the code) — the standalone Loomy plugin (opencode-loomy-auth) has SMS code + pasted session but no WeChat QR; SMS code sign-in works the same in both (the plugin's local sign-in page offers only WeChat QR and SMS — no pasted-session entry; use opencode-loomy-auth for that), and both read one account's credit balance. Its MonkeyCode providers (new channels, no standalone-package overlap) reach the OhMyAgent gateway over the Anthropic Messages protocol with a per-prompt HMAC signature; sign in through a browser window (the plugin reads the HttpOnly session cookie and exchanges it for gateway credentials) or paste an API key + signing secret; the daily-tier models (monkeycode-basic/pro/ultra/…) draw on the subscription quota and unprefixed models draw on credits, with a Cap proof-of-work daily check-in when a web session is present.",
"zh": "dsh-providers-hub(作者 JetLi)的第三方适配:十条供应商(每渠道一条,可各自登录/看额度/单独关闭)——AStudio(讯飞)、Accio(阿里)、LobsterAI(有道)、超级麦吉/MagiCrew(letsmagic.cn / magicrew.ai)、AutoClaw(autoglm.ai 国际 / zhipuai.cn 国内)、Loomy(讯飞)、MonkeyCode(monkeycode-ai.com 国内 / monkeycode-ai.net 国际)。与 registry 已有渠道重复的,只有写明差别(#614,见下方各渠道说明)才提供。不依赖 DSH 运行。其中 AStudio 在本地登录页用短信、密码或微信扫码登录(不需要桌面端),走 chat/completions;独立的 AStudio 插件(astudio)复用桌面端登录态,走 Responses。同一账号两边共用一个每日积分池。其 AutoClaw 两条渠道的登录方式只有两种:粘贴 accessToken + refreshToken,或读取已登录的 AutoClaw 桌面端(仅当前 Windows 用户、默认关闭、需主动点击);不支持网页 OAuth 与手机验证码,需要请用 opencode-autoclaw-auth。注意:导入会轮换一次性的 refresh_token,桌面客户端会被登出、之后需要重新登录。两个插件读同一账号的积分余额,一边用掉的另一边会同步减少。其 Loomy 新增微信扫码登录(讯飞官方微信 OAuth,长轮询拿 code)——独立的 Loomy 插件(opencode-loomy-auth)只有短信验证码与粘贴 session,没有微信扫码;短信验证码两边同款(本插件登录页只有微信扫码与短信两条路,没有粘贴 session 入口,要粘贴请用独立包),读的也是同一账号的积分余额。 其 MonkeyCode 两条渠道为新渠道(registry 无同渠道独立包),走 OhMyAgent 网关的 Anthropic Messages 协议(按 prompt 文本做 HMAC 签名);登录为浏览器窗口(插件读 HttpOnly 会话 cookie 换网关凭据)或粘贴 API Key + 签名密钥;monkeycode-basic/pro/ultra/ 前缀模型走订阅每日额度、不带前缀走积分,有网页会话时支持 Cap 工作量证明的每日签到。"
}
},
{