New package @magpie-community/opencode-inkstone-auth 0.1.0 for Intern InkStone (书生·端砚, Shanghai AI Lab) Token Plan, provider id `intern-inkstone`. Community package by yunwang2442-creator. What it does: - Browser sign-in (Edge/Chrome, its own profile under $XDG_CONFIG_HOME or ~/.config/magpie/inkstone-browser, or %LOCALAPPDATA%\magpie\inkstone-browser). The login window has no debugging port. A headless CDP read takes the uaa-token cookie, and the same read renews it silently later. - Usage card: ink-credit balance, 5-hour and 7-day windows, credit packs. - Chat: a pasted ink-* API key, or one the sign-in creates, named ink-<host4>-<acct4>-<rand4> (18 of the console's 20 characters). An idempotency clash (-15109) retries with a fresh name, up to three times. Pruning is on by default. It only touches this machine's and account's prefix, keeps the newest two and the key this sign-in created, and never deletes manual keys or keys of unknown age. - Closing on Unix: SIGTERM, then SIGKILL only after a 15s grace. Leftover browsers are matched by --user-data-dir=<escaped profile>, and Windows uses .Contains(). - The login wait comes from an injected waitForLogin in tests. No env hook is left in production code. - Hosts: discovery.intern-ai.org.cn, discovery-api.intern-ai.org.cn, 127.0.0.1 (CDP). Outside the package: scripts/opencode2.mjs lets a prompt with `required: false` stay optional (`p.required !== false`). Every package's copy is synced byte for byte, so all 39 copies in the merged tree are blobafe074cb. No other package sets `required: false` on a prompt, so this changes nothing for them. Also a root README row and a registry entry. Review at 36412a15, on mote, HOME=$(mktemp -d), Bun 1.4.2: - bun test packages/inkstone: 68 pass, 0 fail in Asia/Shanghai, UTC, America/Los_Angeles and Pacific/Kiritimati. - bun scripts/check.mjs inkstone and bun scripts/check.mjs: ok. - bun test (repo), on 36412a15 merged with origin/maine7cb9dc5: 6743 pass, 20 skip, 0 fail. main has since moved by cline 0.1.14 and zcode 0.1.55 only, and none of the adapter copies changed. - Broken by hand, each red: no protectName protection; prune_keys default off; no post-sign-in prune; no SIGTERM on close; the -15109 retry keeping its name. Not tried: a real InkStone account sign-in on macOS, Linux or Windows (no account here); a live chat request; magpie end to end with the plugin.
MClaw(中国移动云)
把中国移动云 MClaw(移动云盘 App 内的智能体,ai.yun.139.com)作为一个 OpenAI 兼容供应商接进 magpie 与 OpenCode:一次浏览器登录同时拿到 chat(llm 开放接口)、模型(账号实际可用清单与积分倍率)与用量(aitokens 池)。装好后所有 agent(Claude Code、Codex、openclaw 等)都能通过 magpie 用 mclaw/<model> 访问 MClaw 的模型,并享受 magpie 的用量统计与故障切换。
非官方插件,风险自负。本包与中国移动或 magpie 官方无隶属关系。接口协议 2026-11-04 从移动云盘 App 13.2.5 抓包逆向,平台未公开,随时可能变化或失效;本插件不绕过验证码、限流或任何平台限制。登录凭证只存 magpie 的
plugin-auth.json(600),插件目录不落任何凭证。
安装
magpie plugin add @magpie-community/opencode-mclaw-auth
magpie plugin login mclaw
(从源码跑:git clone https://github.com/joey-41/opencode-mclaw-auth.git MClaw && magpie plugin add ./MClaw)
登录
浏览器登录,一次登录凭证全自动,没有任何要填的输入:选「浏览器登录」→ 插件弹出一个专用 Chrome 窗口(每次登录一个全新 profile,不影响日常浏览器)→ 在窗口里登录移动云 yun.139.com(网页支持验证码、密码、扫码等多种方式,任选)→ 插件自动收走 authorization Cookie(= pc: 票,30 天期),其余全自动:llm chat key(na-…)与模型倍率表自动取回,openclawId 与账号实际模型清单自动发现,vip 会话由换票链自动维持(toSourceId 001005,与 App vip 会员中心同渠道;进程内复用,24h 期,失败 30 分钟冷却),用量窗口(含「重置于」与逐条明细)自动接上;账号显示名 = 掩码手机号(票里解出)。票到期前 3 天自动续期:headless 复开该账号自己的 profile(目录存在账号 metadata 里,多账号互不串票,续期时会校验收割到的票属于本账号),网页会话自己刷新后重新收割,票换了顺手刷新 key。取消登录、登录失败或超时都会立即关掉 Chrome 并清掉当次的 profile 目录。已知限制:重新登录同一账号会生成一个新 profile,旧目录会留在 mclaw-browser-profiles/ 下(内含不再被任何账号引用的历史登录态,可手动删除)。
模型
登录后模型目录与倍率自动发现(agent/list + config/get),无需硬编码 ID;下表是未登录时的静态目录。
模型 ID(mclaw/…) |
名称 | 倍率 | 备注 |
|---|---|---|---|
blian_qwen38_flash |
Qwen3.8-Flash | 0.18 | 推理;并行工具调用实测 8/8 |
blian_qwen38_max |
Qwen3.8-Max | 1.5 | 推理 |
huoshan_glm_5_3 |
GLM-5.3 | 3.5 | 推理 |
blian_qwen37_plus |
Qwen3.7-Plus | 1.5 | 推理 |
blian_qwen36_plus |
Qwen3.6-Plus | 1.0 | |
blian_qwen35_plus |
Qwen3.5-Plus | 0.6 | 多模态 |
blian_deepseek_v4_pro |
DeepSeek-V4-Pro | 2.5 | 推理 |
vlm_huoshan_2_0_lite_thinking_vision |
Seed-2.0-Lite | 1.0 | 推理+视觉 |
vlm_huoshan_2_0_mini_thinking_vision |
Seed-2.0-Mini | 0.3 | 推理+视觉 |
huoshan_deepseek_v4_1_flash |
DeepSeek-V4.1-Flash | 未知 | 计费表未列出 |
rate 是 App 的 tokenRatio 计费倍率(如 flash 0.18×),不是美元价格。上下文/输出上限 App 未暴露,插件按 200k/32k 声明,仅作调度参考,以上游实际判定为准。
用量
aitokens 池窗口:总量、已用、剩余与「重置于」。重置于来自消耗明细里的权威 endTime(当前周期终点);vip 会话由插件自动维持(SSO 换票链,toSourceId 001005),没有可用会话时不显示重置时间——上游不给周期起止,插件不用别的账号的周期猜。上游报「无效的ApiKey」时插件转成明确的登录失效(401),重新登录即可。
Options
magpie plugin options mclaw '{"base": "https://ai.yun.139.com/api/llm/102001"}'
环境变量(浏览器登录相关):MCLAW_CHROME_PATH(Chrome 可执行文件路径,默认按平台探测)、MCLAW_BROWSER_PROFILE(登录 profile 目录的根,每个账号用其下的独立子目录,默认 ~/.config/magpie/mclaw-browser-profiles/)。
许可证
MIT