{"repo":"t94j0/opencode-kimi-subscription","free":true,"listed":false,"github":"https://github.com/t94j0/opencode-kimi-subscription","clone":"git clone https://github.com/t94j0/opencode-kimi-subscription.git","description":"Use your Kimi Code (Moonshot) subscription in OpenCode via OAuth device flow","language":"JavaScript","stars":12,"topics":["device-flow","kimi","kimi-code","moonshot","oauth","opencode","opencode-plugin"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"opencode-kimi-subscription Use your Kimi Code (Moonshot) subscription in OpenCode: sign in with Kimi's OAuth device flow and spend your subscription instead of pay-as-you-go API tokens. OpenCode's built-in \"Kimi For Coding\" provider only covers pay-as-you-go API keys; this plugin adds the subscription path. It puts a \"Sign in with Kimi (subscription)\" method in opencode auth login , registers the kimi-code provider and its models automatically, and keeps the access token fresh. It obtains its own device token and never touches /.kimi-code , so the official kimi CLI keeps working alongside it. Install Add the plugin to your OpenCode config ( /.config/opencode/opencode.json or a project opencode.json ); OpenCode installs npm plugins automatically at startup. Then sign in: That's the only manual step; you don't need to add a provider block. How it works Derived from the official kimi CLI (v0.26.0): ----------------------- --------------------------------------------------------------------------------------------------------------------------------------------------- API (OpenAI-compatible) https://api.kimi.com/coding/v1 — POST /chat/completions OAuth host https://auth.kimi.com Login Device Authorization Grant (RFC 8628): POST /api/oauth/device authorization → approve at kimi.com/code/authorize device → poll POST /api/oauth/token Refresh POST /api/oauth/token ( grant type=refresh token ); rotates the refresh token Client ID 17e5f671-d194-4dfb-9706-5516cb48c098 1. config hook — i","default_branch":null,"files":null,"tree":[],"storefront":"/r/t94j0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/t94j0/opencode-kimi-subscription/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}