Bring Kimi (Moonshot AI) models — kimi-k3, kimi-k2.7-code, kimi-k2.7-code-highspeed, kimi-k2.6, kimi-k2.5, and the kimi-for-coding membership model — directly into GitHub Copilot Chat, with visible step-by-step thinking and a built-in usage monitor. Supports both Kimi Code membership (OAuth) and Standard API (BYOK).
Install the Extension from VSCode Marketplace or search Kimi Family for Github Copilot Chat in VSCode Extension Store.
This extension is modeled after glm-for-copilot and adapted for the Kimi (Moonshot AI) OpenAI-compatible API. Huge shout out to @KiwiGaze for his foundamental work and generous licensing.
Features
- 🧩 Seamless Copilot Chat integration — Kimi models show up in the Copilot Chat model picker via the
LanguageModelChatProviderAPI (vendorkimi). - 🧠 Visible thinking with effort control — Kimi's
reasoning_contentstreams as Copilot Chat thinking parts. A Low / High / Max thinking effort selector appears next to the model picker for all models.kimi-k3/kimi-k2.7-code/kimi-for-codingalways reason (no "Off");kimi-k2.6/kimi-k2.5also offer "Off". - 🛠️ Tool calling — full function/tool support (up to 128 tools) for agentic workflows.
- 🏆 Kimi Code membership support — sign in via OAuth device-code login (browser) or paste a Kimi Code Console API key from kimi.com/code/console. Shared quota with Kimi会员, tracked via the
/coding/v1/usagesendpoint (weekly quota %, 5-hour window, and Booster/Extra-Usage wallet). - 💰 Balance monitoring — for the Standard API, a status-bar item and detail panel show your available / voucher / cash balance via
GET /v1/users/me/balance. The bar turns red when exhausted. - 🔐 Secure credential storage — OAuth tokens and API keys both live in VS Code SecretStorage (OS keychain), never in
settings.json. - 🌏 International + Mainland China —
platform.kimi.ai(api.moonshot.ai) andplatform.kimi.com(api.moonshot.cn) for Standard API; globalapi.kimi.comfor membership. - 🔁 Resilient streaming — automatic retries with exponential backoff for HTTP 429 / 5xx.
- 📝 Token usage reporting — per-request usage (prompt / completion / total / cached) is forwarded to Copilot Chat.
Quick start
Option A: Kimi Code membership (OAuth or API key)
- Install the extension.
- Set
kimi-copilot.apiModeto Kimi Code Membership. - Run
Kimi: Set API Keyand choose:- Sign in with browser (OAuth) — opens a browser for the Kimi device-code login flow (recommended), or
- Paste an API key — use a key from kimi.com/code/console.
- Pick the kimi-for-coding model in the Copilot Chat model picker.
Option B: Standard API (pay-as-you-go)
- Install the extension.
- Set
kimi-copilot.apiModeto Standard API and pick the matchingregion. - Create an API key at platform.kimi.ai/console/api-keys (International) or platform.kimi.com/console/api-keys (Mainland China).
- Run
Kimi: Set API Keyand paste it. - Pick a Kimi model (kimi-k3, kimi-k2.7-code, etc.) in the Copilot Chat model picker.
Configuration
| Setting | Default | Description |
|---|---|---|
kimi-copilot.apiMode |
membership |
membership (Kimi Code OAuth) or standard (Kimi Open Platform API key). |
kimi-copilot.region |
international |
international → api.moonshot.ai; china → api.moonshot.cn. Standard API only; must match where your key was created. |
kimi-copilot.baseUrl |
"" |
Override the API base URL. When set, apiMode and region are ignored. |
kimi-copilot.maxTokens |
0 |
Max output tokens (0 = API default). |
kimi-copilot.maxRetries |
3 |
Auto-retries for transient failures (429 / 5xx). |
kimi-copilot.thinking |
enabled |
Default thinking state for kimi-k2.6 / kimi-k2.5 (overridden by the picker effort selector). |
kimi-copilot.customModels |
[] |
Add your own model ids to the picker. |
kimi-copilot.modelIdOverrides |
{} |
Remap built-in model ids for proxies. |
kimi-copilot.showUsageStatusBar |
true |
Show the usage status-bar item. |
kimi-copilot.usageRefreshIntervalMinutes |
5 |
Status-bar refresh interval (1–1440 min). |
kimi-copilot.debugLogging |
false |
Verbose logging to the Kimi output channel. |
Commands
Kimi: Set API KeyKimi: OAuth LoginKimi: Get API KeyKimi: Clear API KeyKimi: Refresh UsageKimi: Show Usage DetailsKimi: Open SettingsKimi: Show Logs
Development
pnpm install
pnpm run compile # type-check + build to out/
pnpm test # run vitest
pnpm run lint # eslint
Press F5 in VS Code to launch an Extension Development Host with the extension loaded.
License
MIT