██╗ ██╗ ██╗ ███╗ ███╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗ ██║ ██╔╝ ██║ ████╗ ████║ ██║ ██╔════╝ ██╔═══██╗ ██╔══██╗ ██╔════╝ █████╔╝ ██║ ██╔████╔██║ ██║ ██║ ██║ ██║ ██║ ██║ █████╗ ██╔═██╗ ██║ ██║╚██╔╝██║ ██║ ██║ ██║ ██║ ██║ ██║ ██╔══╝ ██║ ██╗ ██║ ██║ ╚═╝ ██║ ██║ ╚██████╗ ╚██████╔╝ ██████╔╝ ███████╗ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
English · 中文
Kimi Code Usage: The Curated Toolchain
Manifesting your AI quota with aesthetic precision across CLI, MCP, and VS Code.
🌟 Project Vision
In the era of "Vibecoding," transparency of resources is a prerequisite for flow. Kimi Code Usage is a meticulously crafted toolchain — three components, one soul.
⚠️ 重要:API Key 类型说明
本工具查询的是 Kimi Code 平台(Coding Plan 会员) 的用量数据。你需要的是 Kimi Code 控制台 创建的 API Key(格式
sk-kimi-xxx), 不是 Kimi 开放平台(platform.kimi.com)的 API Key(格式sk-xxx)。两种 Key 不互通。获取方式:登录 Kimi Code 控制台 → 创建 API Key → 设置环境变量
KIMI_API_KEY。 详见 Kimi Code 文档。
Prerequisite: A Kimi Coding Plan API Key (sk-kimi-xxx), set as KIMI_API_KEY in your environment or .env file.
Monthly membership usage is off by default. It costs ~2.5s per run:
kimi-usagedrives the Kimi subscription page through WebBridge and scrapes the quota card out of the DOM. Enable it with"kimiMonthly": truein~/.kimi-usage/config.json, orKIMI_MONTHLY_USAGE=1. When it is on and an installed WebBridge daemon is stopped, interactive mode asks on every launch whether to start it. The browser extension must be connected and Kimi must be logged in. Weekly and 5-hour usage never depend on it.
ChatGPT Plus usage reads the local Codex authentication file. After a 401 response, it refreshes the access token and retries once. If authentication still fails, run
codex login.
⚡ CLI Reporter
A Rich-rendered panel in your terminal. Zero noise, pure signal.
Install & Run:
pip install kimi-code-usage
kimi-usage # Aesthetic Rich panel
kimi-usage -i # Interactive panel with optional WebBridge startup prompt
kimi-usage --json # Machine-readable JSON
kimi-usage --plain # Plain text output
Or run instantly without installing:
uvx kimi-code-usage
🔍 MCP Server
Exposes
get_kimi_usageto any MCP-compatible AI Agent.
Compatible with Claude Code, Cursor, Windsurf, Hermes, and any MCP-enabled agent.
Add to your MCP config (e.g., ~/.claude/settings.json):
{
"mcpServers": {
"kimi-code-usage": {
"command": "uvx",
"args": ["--from", "kimi-code-usage", "kimi-mcp"],
"env": {
"KIMI_API_KEY": "YOUR_KEY"
}
}
}
}
Note: The MCP server still needs
--frombecausekimi-mcpis a separate command from the defaultkimi-code-usageentry point.
Then simply ask your AI: "Check my Kimi quota."
💎 VS Code Extension
A sleek status bar indicator with sensory color alerting.
Install: Search Kimi Code Usage in the VS Code Marketplace, or:
code --install-extension HainingYu.kimi-code-usage
Configure (Settings > Kimi Code Usage):
| Setting | Description | Default |
|---|---|---|
kimiCodeUsage.apiKey |
API key (or reads KIMI_CODING_API_KEY/KIMI_API_KEY env) |
"" |
kimiCodeUsage.baseUrl |
API Base URL | "https://api.kimi.com/coding/v1" |
kimiCodeUsage.refreshIntervalMinutes |
Auto-refresh interval in minutes | 5 |
kimiCodeUsage.weeklyLowThresholdPercent |
Weekly low quota warning threshold (%) | 30 |
kimiCodeUsage.fiveHourLowThresholdPercent |
5-hour low quota warning threshold (%) | 15 |
kimiCodeUsage.showPaceIndicator |
Show pace indicator (Fast/Normal/Slow) | true |
kimiCodeUsage.showPaceBar |
Show pace bar in status bar | true |
Usage: Status bar shows 🌕 [===] Wee:96% 5Ho:99%. Hover for details. Cmd+Shift+P → Kimi: Refresh.
📊 Real-World Analysis
How much does a ¥199/mo Coding Plan actually cover? Real data from 5 months of heavy vibe coding, with a cost comparison against standard API pricing.
Full data → docs/kimi-code-usage.md
1. Profile
| Item | Detail |
|---|---|
| Plan | Tier 3 Allegretto ($31/mo) → ¥199/mo |
| Workflow | Claude Code + kimi-for-coding, heavy vibe coding |
| Data Period | 2026-01 ~ 2026-05 full records (~3,152M tokens) |
2. Token Composition
| Component | 5-Month Total | Share |
|---|---|---|
| Input (Cache Miss) | ~154M | 4.9% |
| Cache Created | ~89M | 2.8% |
| Output | ~12M | 0.4% |
| Cache Read (Cache Hit) | ~2,896M | 91.9% |
| Total | ~3,152M | 100% |
A 91.9% cache hit rate is the signature of vibe coding — long sessions where each turn carries full conversation history, and only the latest exchange is fresh.
3. Actual Monthly Burn
Based on continuous weekly sampling (3 days = 30% of weekly quota):
| Metric | Value |
|---|---|
| Weekly Burn | ~320M tokens |
| Monthly Burn | ≈ 1.37 ~ 1.5 billion tokens |
| Plan Cost | ¥199/mo |
| Effective Rate | ≈ ¥0.14 / million tokens |
4. Cost Comparison
Priced against Kimi K2.6 standard API rates (input ¥6.50 / cache ¥1.10 / output ¥27.00 per million tokens):
| Scenario | Cost/Month | Multiple |
|---|---|---|
| Kimi Coding Plan (¥199) | ¥199 | 1× |
| Pay-as-you-go (K2.6 standard) | ≈ ¥2,420 | 12.2× |
| Pay-as-you-go Breakdown | Volume/Month | Rate | Cost |
|---|---|---|---|
| Input (Cache Miss) | 73.5M | ¥6.50/MTok | ¥478 |
| Cache Read (Hit) | 1,378.5M | ¥1.10/MTok | ¥1,516 |
| Output | 5.55M | ¥27.00/MTok | ¥150 |
| Cache Created | 42.5M | ¥6.50/MTok | ¥276 |
| Total | 1.5B | ¥2,420 |
5. Bottom Line
The Coding Plan saves heavy users ≈ ¥2,221/month (~92%). Cache reads account for 92% of total tokens; the plan bundles both cache and input into the subscription fee. Under pay-as-you-go, cache alone makes up 63% of the bill.
⚠️ Disclaimer
This analysis reflects one user's actual usage from 2026-01 to 2026-05 via
ccusage. Token ratios and cost estimates are for reference only — actual results vary by session pattern, model choice, caching behavior, and API pricing. Rates sourced from platform.kimi.com as of 2026-05-24.
🎨 About the Curator
Crafted with ❤️ by Haining Yu, an Art Curator and Vibecoder. This toolchain is part of a curated collection designed to bridge the gap between aesthetic curation and intuitive, AI-powered coding.
Enjoy the flow. Stay in the vibe.
Metadata
Release files for kimi-code-usage 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kimi_code_usage-0.2.2.tar.gz | 329.0 kB | Without provenance | Details for kimi_code_usage-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kimi_code_usage-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for kimi_code_usage-0.2.2-py3-none-any.whl |
Total release size: 392.5 kB
Release files / kimi_code_usage-0.2.2.tar.gz
| Download URL | kimi_code_usage-0.2.2.tar.gz |
|---|---|
| Size | 329.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcf52b458fbfccc021577a9d44544fe1ee4c30f4ca3c0ef84a3bf8f716599a3e
|
|
BLAKE2b-256 checksum How to use checksums |
46a657e142d42b6e31a4d930217ce356dfc8e878982811904995696aefc3441e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / kimi_code_usage-0.2.2-py3-none-any.whl
| Download URL | kimi_code_usage-0.2.2-py3-none-any.whl |
|---|---|
| Size | 63.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0d7a18a1c61fdbc677dc86a4f0f2cb22e57ed9f4df30a9e97cd9103c4a9e375
|
|
BLAKE2b-256 checksum How to use checksums |
658c95004d7f0324b1457619b40e3beb9dda9df5c5b81edfa4e58f3e0e9ab6ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for kimi-code-usage 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.