{"skill":{"slug":"balance-checker","displayName":"Balance Checker","summary":"查询 AI API 服务商的余额（DeepSeek、Moonshot/Kimi、火山引擎）。当用户说\"查余额\"、\"还有多少额度\"、\"余额多少\"时自动触发。","description":"---\nname: balance-checker\ndescription: 查询 AI API 服务商的余额（DeepSeek、Moonshot/Kimi、火山引擎）。当用户说\"查余额\"、\"还有多少额度\"、\"余额多少\"时自动触发。\n---\n\n# Balance Checker Skill\n\n一次查询所有 AI API 服务商的余额。\n\n## 支持的服务商\n\n| 服务商 | 查询方式 | 环境变量 |\n|--------|----------|----------|\n| DeepSeek | REST API | `DEEPSEEK_API_KEY` |\n| Moonshot/Kimi | REST API | `MOONSHOT_API_KEY` |\n| 火山引擎 | Python SDK | `VOLCENGINE_ACCESS_KEY` + `VOLCENGINE_SECRET_KEY` |\n\n## 触发关键词\n\n- \"查余额\"\n- \"还有多少额度\"\n- \"余额多少\"\n- \"看看余额\"\n- \"API 余额\"\n\n## 安装\n\n火山引擎查询需要 Python SDK，首次使用请运行：\n\n```bash\ncd ~/.openclaw/skills/balance-checker\n./setup_volcengine.sh\n```\n\n## 配置\n\n### 环境变量（推荐）\n\n```bash\nexport DEEPSEEK_API_KEY=sk-xxx\nexport MOONSHOT_API_KEY=sk-xxx\nexport VOLCENGINE_ACCESS_KEY=AKLTxxx\nexport VOLCENGINE_SECRET_KEY=xxx\n```\n\n### OpenClaw 配置\n\n在 `~/.openclaw/openclaw.json` 的 `env` 部分添加上述环境变量。\n\n## 输出示例\n\n```\n🔍 正在查询 API 余额...\n\n💰 DeepSeek 余额\n- 总余额: 304.54 CNY\n- 赠金余额: 0.00 CNY\n- 充值余额: 304.54 CNY\n- 状态: 可用 ✅\n\n🌙 Moonshot/Kimi 余额\n- 可用余额: 450.79 CNY\n- 现金余额: 450.79 CNY\n- 代金券余额: 0 CNY\n\n🌋 火山引擎余额\n- 可用余额: 86.68 CNY\n- 现金余额: 86.68 CNY\n\n✅ 余额查询完成\n```\n\n## 文件结构\n\n```\nbalance-checker/\n├── SKILL.md              # Skill 描述\n├── check_balance.sh      # 主入口脚本\n├── query_balance.py      # 火山引擎查询（Python）\n├── setup_volcengine.sh   # 火山引擎 SDK 安装脚本\n└── venv/                 # Python 虚拟环境（自动创建）\n```\n\n## API 文档\n\n- DeepSeek: https://api-docs.deepseek.com/zh-cn/api/get-user-balance\n- Moonshot: https://platform.moonshot.cn/docs/api-reference#user-balance\n- 火山引擎: https://www.volcengine.com/docs/6269/1593138\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":1966,"installsAllTime":3,"installsCurrent":3,"stars":1,"versions":1},"createdAt":1770199771426,"updatedAt":1778486017068},"latestVersion":{"version":"1.0.0","createdAt":1770199771426,"changelog":"Initial release of balance-checker skill.\n\n- Allows users to check balances across DeepSeek, Moonshot/Kimi, and 火山引擎 AI API providers with one command.\n- Triggers automatically on common balance-related keywords (e.g. \"查余额\", \"余额多少\").\n- Supports balance lookup via API keys and environment variables.\n- Includes scripts and setup instructions for initial installation, especially for 火山引擎 (Python SDK required).\n- Provides a sample output for easy reference.\n- Documentation covers supported providers, configuration, and links to respective API docs.","license":null},"metadata":null,"owner":{"handle":"kyya","userId":"s1780ndkmn44942ajpzvcgf84s8434t7","displayName":"kyya","image":"https://avatars.githubusercontent.com/u/13448248?v=4"},"moderation":null}