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.
river
River (river.ai) with your API key, in
OpenCode and magpie. River serves an
OpenAI-compatible inference API at https://api.river.ai/v1; this plugin signs every
request with your key, so agents reach its models like any other provider —
multi-account, fallback, quotas and all.
Provider id: river
Sign-in
A River API key, created on the API Keys page of the
River Console (rv_…). The key is stored as { "type": "api", "key": "rv_…" } in
OpenCode's auth.json and magpie's plugin-auth.json (permissions 600); a key River
refuses marks the account for sign-in again.
Models
The models your key can use, listed per account from GET /v1/models. Context and
output limits come from River's docs,
prices from River's public pricing endpoint
(the same rates billing uses), and the documented reasoning efforts
(reasoning_effort) from API controls:
| Model | Efforts |
|---|---|
| DeepSeek-V4.1-Flash(-1017) | none / low / high / max |
| Kimi-K3 | none / max |
| Nemotron-3.5-Super-VL | none / high |
| GLM-5.3-Flash | low / high / max (reasoning required) |
| Qwen3.8-27B-FP8 | none / low / medium / xhigh |
Every inference model streams, reasons and calls tools. Image input is limited to the models the docs list for it (Kimi-K3, DeepSeek ×2, Nemotron, GLM-5.3-Flash, Qwen3.8-27B-FP8); GLM-5.3 is text-only, and a model the docs don't list yet defaults to text-only rather than being assumed to see images.
Usage
River meters a prepaid balance per request and publishes no endpoint that reads it, so the usage card shows the sign-in state and "Pay as you go" rather than invented numbers; spend and balance live in the River Console.
Install
magpie plugin add @magpie-community/opencode-river-auth
magpie plugin login river
magpie provider test river
In OpenCode, add the same package under plugin and sign in with opencode auth login.
Development
bun test
bun scripts/check.mjs river
MIT. Not affiliated with River.