Skip to main content

A curated Kimi Coding Plan usage monitor with aesthetic CLI and MCP server.

Project description

 ██╗  ██╗ ██╗ ███╗   ███╗ ██╗     ██████╗  ██████╗  ██████╗  ███████╗
 ██║ ██╔╝ ██║ ████╗ ████║ ██║    ██╔════╝ ██╔═══██╗ ██╔══██╗ ██╔════╝
 █████╔╝  ██║ ██╔████╔██║ ██║    ██║      ██║   ██║ ██║  ██║ █████╗
 ██╔═██╗  ██║ ██║╚██╔╝██║ ██║    ██║      ██║   ██║ ██║  ██║ ██╔══╝
 ██║  ██╗ ██║ ██║ ╚═╝ ██║ ██║    ╚██████╗ ╚██████╔╝ ██████╔╝ ███████╗
 ╚═╝  ╚═╝ ╚═╝ ╚═╝     ╚═╝ ╚═╝     ╚═════╝  ╚═════╝  ╚═════╝  ╚══════╝

English · 中文

Kimi Code Usage: The Curated Toolchain

Manifesting your AI quota with aesthetic precision across CLI, MCP, and VS Code.

CLI & MCP (Python) Coverage VS Code Extension Coverage


🌟 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.

Prerequisite: A Kimi Coding Plan API Key, set as KIMI_API_KEY in your environment or .env file.


⚡ 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 --json       # Machine-readable JSON
kimi-usage --plain      # Plain text output

Or run instantly without installing:

uvx kimi-code-usage

🔍 MCP Server

Exposes get_kimi_usage to 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 --from because kimi-mcp is a separate command from the default kimi-code-usage entry 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
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kimi_code_usage-0.1.3.tar.gz (386.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kimi_code_usage-0.1.3-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file kimi_code_usage-0.1.3.tar.gz.

File metadata

  • Download URL: kimi_code_usage-0.1.3.tar.gz
  • Upload date:
  • Size: 386.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for kimi_code_usage-0.1.3.tar.gz
Algorithm Hash digest
SHA256 07c106c0d1b8505d49ba00e3b946935a640e9995c2bf735e7edad83578aef54b
MD5 ade7d648bec1bfb3b091d648b72ecf64
BLAKE2b-256 fd3dfee7e17d2d98122f6ee7765d59baf4d697cd4e63f9e52e9be9fa0ab19985

See more details on using hashes here.

File details

Details for the file kimi_code_usage-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: kimi_code_usage-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for kimi_code_usage-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 004b0be37f7f8fa5662712d52025d6494f37790a401bcb33e2eeecbc336c8b2d
MD5 8bfa9786237d7e18162b2191d955649b
BLAKE2b-256 e74774c82e67ad74d657634b612e4785e484ca3e0be22802ff2a1d4887171a39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page