Skip to main content

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

Project description

Kimi Code Usage Banner

Kimi Code Usage: The Curated Toolchain

Manifesting your AI quota with aesthetic precision across CLI, MCP, and VS Code. 以优雅的姿态,在终端、AI 助手与编辑器中感知你的 AI 额度。


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

在"直觉编程"时代,资源的透明度是进入心流状态的前提。Kimi Code Usage 是一套精心打磨的工具链 — 三种形态,一个灵魂。

Common Prerequisite: A Kimi Coding Plan API Key, set as KIMI_API_KEY in your environment or .env file. 统一前提: 在环境变量或 .env 文件中设置 KIMI_API_KEY


⚡ 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 | AI 智能体接口

Exposes get_kimi_usage to any MCP-compatible AI Agent. 让你的 AI 助手能够主动感知你的额度状态。

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." / "帮我查一下 Kimi 用量。"


💎 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 > kimiUsage):

Setting Description Default
apiKey API key (or reads KIMI_API_KEY env) ""
refreshInterval Auto-refresh in minutes 5
warnPercent Yellow caution threshold 30%
criticalPercent Red alert threshold 10%

Usage: Status bar shows ⬡ W:96% 5H:99%. Hover for details. Cmd+Shift+P → Kimi: Refresh.


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

Haining Yu 精心打磨。作为一名艺术策展人与 Vibecoder,我将代码视作展览,力求在审美策展与直觉化 AI 编程之间寻找完美的平衡。


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.0.tar.gz (999.6 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.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kimi_code_usage-0.1.0.tar.gz
  • Upload date:
  • Size: 999.6 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.0.tar.gz
Algorithm Hash digest
SHA256 8e81132f6edf81ca451c1f240e5c9a6eedf8a50904cedecfdd644664730b63fb
MD5 f8ba971d6f50a8c759f5db5c2ef29c1a
BLAKE2b-256 ea55457c989eea85c3751a1632cc16448b92db0b85e40c450af40a87bb6fd1d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kimi_code_usage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c804161b967ffeb23d92bd5237def917c3abd287d5d7ca84f8efe6a213f7be8b
MD5 02745d6835395b70fd2df5b58fd9d112
BLAKE2b-256 8487dd6a5d77b9e63a2589bdd8fef4cc9678aee90c270dbce839d9ebcf73f2cf

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