← 返回 Skills 市场
muselinn

Kimi Quota

作者 Linn · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
208
总下载
2
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install kimi-quota
功能描述
查询 Kimi API 用量、订阅额度和账户信息。当用户询问"Kimi 额度"、"API 用量"、"剩余次数"、"订阅状态"或需要查看 Kimi Code 使用情况时使用。支持加密保存登录态,首次配置后自动查询。
使用说明 (SKILL.md)

Kimi Quota

查询 Kimi Code/API 用量、订阅套餐和功能额度。

快速使用

# 首次使用 - 保存 Cookie
python3 scripts/check_quota.py --cookie "kimi-auth=xxx" --save

# 之后使用 - 自动读取保存的 Cookie
python3 scripts/check_quota.py

# 查看 JSON 格式
python3 scripts/check_quota.py --json

# 清除保存的登录态
python3 scripts/check_quota.py --clear

获取 Cookie

  1. 登录 https://www.kimi.com
  2. F12 → Application → Cookies → kimi-auth
  3. 复制值(格式:eyJhbGciOiJIUzUxMiIs...

安全说明

Cookie 使用 Fernet 加密存储,密钥派生自机器标识。也可设置环境变量:

export KIMI_QUOTA_KEY="your-secret-key"

存储位置:~/.config/kimi-quota/cookie.enc

查询内容

  • API 用量: 本周使用百分比、剩余次数、重置时间
  • 频限明细: 5分钟窗口限额、重置时间
  • 订阅信息: 套餐、价格、周期、续费时间
  • 功能额度: 深度研究、Agent、PPT 剩余次数

依赖

pip install requests cryptography
安全使用建议
This skill appears to do what it claims: it requires you to supply your kimi-auth cookie and then calls Kimi's own APIs. Before installing/using: 1) only paste the cookie if you trust the code and the environment; the cookie is essentially an auth token. 2) Install cryptography (pip install cryptography) so the cookie is encrypted; otherwise it will be stored in plaintext. 3) If you prefer stronger secrecy, set KIMI_QUOTA_KEY to a passphrase you control rather than relying on the machine-derived key. 4) To remove credentials later run the script with --clear or delete ~/.config/kimi-quota. 5) If you have any doubt, review scripts/check_quota.py yourself or run it in an isolated environment (container or VM).
功能分析
Type: OpenClaw Skill Name: kimi-quota Version: 1.0.1 The skill is designed to query Kimi API usage and subscription status by interacting with legitimate Kimi.com endpoints. While it handles sensitive session cookies (kimi-auth), it implements local encryption using the Fernet (cryptography) library with machine-derived keys and sets appropriate file permissions (0o600) for the storage directory (~/.config/kimi-quota/). The code in scripts/check_quota.py is transparent, lacks obfuscation, and does not exhibit any signs of data exfiltration to third-party servers.
能力评估
Purpose & Capability
Name/description: query Kimi API usage, subscriptions and account info. The code only contacts https://www.kimi.com API endpoints, accepts a Kimi cookie (kimi-auth), and formats usage/subscription information. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md instructs the user to paste the 'kimi-auth' cookie and run scripts/check_quota.py. The script reads/stores that cookie locally and uses it to call Kimi APIs — this is within scope. Note: the script will store the cookie at ~/.config/kimi-quota/cookie.enc (or plaintext if cryptography is missing); the SKILL.md and script both explain how to clear it. This persistence and local storage are expected but worth noting for privacy.
Install Mechanism
No installer or remote downloads are used. The project is instruction/code-only and asks users to pip install requests and cryptography if needed — a standard, low-risk dependency flow. No external URL downloads or archive extraction are present.
Credentials
No required environment variables are declared. An optional KIMI_QUOTA_KEY env var is supported to provide an explicit encryption key. That is appropriate for protecting the saved cookie. The script also derives a key from local machine identifiers if not provided (not as strong as a user-provided secret).
Persistence & Privilege
The skill writes two files under the user's home config (~/.config/kimi-quota): a salt file and a cookie file. Files are set to mode 600. This is expected for storing login state but gives the skill persistent local presence limited to the user's config directory. always:false and no modification of other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kimi-quota
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kimi-quota 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
kimi-quota 1.0.1 is a minor update with documentation and metadata improvements. - Updated SKILL.md version to 1.0.1 to match the release. - Synced metadata in package.json and documentation for consistency. - No functional code changes included.
v1.0.0
kimi-quota 1.0.0 - 初始版本发布,支持查询 Kimi API 用量、订阅额度和账户信息 - 提供命令行工具保存并加密 Cookie,实现自动化查询 - 支持查看用量百分比、剩余次数、频限明细、订阅套餐与功能额度 - 支持 JSON 输出与登录态清除 - 安全存储 Cookie,支持自定义加密密钥 - 简明依赖:requests、cryptography
元数据
Slug kimi-quota
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Kimi Quota 是什么?

查询 Kimi API 用量、订阅额度和账户信息。当用户询问"Kimi 额度"、"API 用量"、"剩余次数"、"订阅状态"或需要查看 Kimi Code 使用情况时使用。支持加密保存登录态,首次配置后自动查询。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 208 次。

如何安装 Kimi Quota?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kimi-quota」即可一键安装,无需额外配置。

Kimi Quota 是免费的吗?

是的,Kimi Quota 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kimi Quota 支持哪些平台?

Kimi Quota 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kimi Quota?

由 Linn(@muselinn)开发并维护,当前版本 v1.0.1。

💬 留言讨论