Files
plugins/packages/kimi-work/COMPATIBILITY.md
T
kupakupa adcc7252d0 kimi-work: a Kimi desktop Work subscription through the desktop's own sign-in (#171)
Adds kimi-work 0.1.3 (kupakupar): a provider for the Kimi desktop's Work
subscription, using the desktop app's own local sign-in. It stores only
a hashed account reference, rereads the desktop's tokens on each call,
writes nothing to disk and logs nothing.

Re-reviewed at d9fe48d against the last review at fc3e395:
- (1) the desktop credential: decided acceptable (same as WorkBuddy,
  Qoder, ZCode: each user's own allowance).
- (2) macOS record: COMPATIBILITY.md, macOS 26.6.2 arm64, Kimi 3.2.17
  (3.2.17.4), magpie 0.1.1276 (released 2026-10-16 17:11Z, before the
  20:09Z run), Bun 1.4.3. The path and four field names match readDesktop.
- expireTime: resetsAt dropped, window renamed 会员共享额度.
- efforts: every advertised level is kept (redacted real catalog fixture).
- kimi-work-opencode overlap: the README credits it and says not to
  enable both.
- Request input: handled; body, headers and signal are kept, and the
  desktop credential replaces any caller Authorization or Cookie.
- Icon is shipped once (package.json); the UA reads the package version.

Run at d9fe48d, and merged onto origin/main 2ea25b9 together with #169:
- HOME=$(mktemp -d) bun test: 1656 pass, 0 fail (merged: 1668 pass, 0 fail).
- bun test packages/kimi-work: 8 pass.
- bun scripts/check.mjs: ok (kimi-work checked).
- git diff --check, npm pack --dry-run (4 files), node scripts/dist.mjs
  (packs opencode-kimi-work-auth@0.1.3), scripts/new-to-npm.sh (new).
- Broken by hand: String(input) for Request and the old effort allow-list
  each turn their new test red.
- No CI ran on the PR. No real Kimi account or credential was used.
2026-10-17 04:32:42 +08:00

3.3 KiB

macOS compatibility record

Observed at 2026-10-16 20:09 UTC (2026-10-17 04:09 UTC+8).

Component Observed version
macOS 26.6.2, Apple silicon / arm64
Ordinary Kimi desktop 3.2.17, build 3.2.17.4, com.moonshot.kimichat
Official Magpie 0.1.1276
Bun 1.4.3, temporary test runtime
Provider code d5f84153116a28dcffb89f61a0f4435093d0483e, package 0.1.3

The official Apple-silicon Kimi desktop application was installed; the user signed in personally and opened Work. The provider was installed and signed in using magpie plugin add <temporary-provider-folder> and magpie plugin login kimi-work in an isolated XDG_CONFIG_HOME, while retaining the real macOS home for read-only desktop-session discovery. MAGPIE_BUN selected the temporary runtime. The user's everyday Magpie profile was not replaced or restarted.

File and fields actually observed

The file exists at:

~/Library/Application Support/kimi-desktop/daimon-share/daimon/config.json

All four credential values were present and nonempty. This fragment shows field names only; every value is redacted:

{
  "credentials": {
    "kimiCode": {
      "apiKey": "<redacted>",
      "baseUrl": "<redacted>"
    },
    "kimiWeb": {
      "accessToken": "<redacted>",
      "userId": "<redacted>"
    }
  }
}

The Work credential's origin matched the exact Work origin required by readDesktop. No actual value, account identifier, raw config or auth file was exported.

Executed checks

  • Desktop sign-in succeeded, saving only the provider's account reference in the isolated Magpie profile.
  • Live model discovery returned k3-agent and k2d8-preview, each with low, high and max reasoning variants.
  • Membership usage was read successfully. The result had one shared-allowance window and no resetsAt.
  • Calling the provider's sign-in, model and usage hooks left Kimi's configuration byte-for-byte unchanged.
  • One real, synthetic streamed inference was sent through the Kimi Agent adapter, the isolated official Magpie gateway and this provider to the real Work service. It returned HTTP 200, [DONE], and exactly KIMI_WORK_MAC_OK.

Magpie's resulting route record, projected to non-sensitive fields:

{
  "agent": "kimi-desktop",
  "provider": "kimi-work",
  "model": "k3-agent",
  "requested": "kimi-work/k3-agent",
  "served": "k3-agent",
  "status": 200
}

The inference was initiated by a synthetic HTTP client at the adapter's authenticated loopback endpoint. It was not a message submitted through Kimi's desktop UI. The control API/runtime, Magpie gateway, provider and Work service were real, not mock servers. No response was substituted. This run did not measure Kimi's billing classification or reset schedule.

After the adapter test, its original service address, current model, native catalog, credentials and unrelated settings were verified restored. The temporary model snapshot was removed, and the separate test gateway was stopped. The user's Kimi login remained in place.

This record covers this Apple-silicon/macOS/Kimi build. Intel macOS, Linux, desktop UI turns, sleep/wake, natural token expiry and future Kimi releases remain outside this run. Synthetic rotation/account-change/error cases remain in the package's unit tests.