Install
openclaw skills install cost-monitorReal-time token usage and cost tracking for OpenClaw agents. Supports MiMo Token Plan (Credits) and DeepSeek pay-as-you-go (RMB). Shows per-turn consumption and remaining balance after every reply.
openclaw skills install cost-monitorThis skill activates automatically on every assistant reply. No user trigger needed.
Install:
clawhub install cost-monitor
Zero configuration. Works out of the box with default settings.
First-time setup (optional):
# Set your MiMo balance (copy from backend: consumed / total)
set-balance mimo 4,250,108,284 / 11,000,000,000
# Set your DeepSeek balance (RMB)
set-balance deepseek 18.00
MiMo (Token Plan):
MiMo:61.4% | 603.5k · in 333+264.9kcached(99%) · out 202
DeepSeek (Pay-as-you-go):
DeepSeek:¥18.00 | ¥0.0045 · in 111+198.0kcached(99%) · out 192
| Field | Description |
|---|---|
61.4% / ¥18.00 | Remaining balance (percentage for MiMo, RMB for DeepSeek) |
603.5k / ¥0.0045 | Cost of this turn (Credits or RMB) |
in X+Ycached(Z%) | New input tokens + cached tokens (cache hit rate) |
out X | Output tokens generated |
| Model | Billing | Auto-detected |
|---|---|---|
xiaomi/mimo-v2.5 | Token Plan Credits | ✅ |
xiaomi/mimo-v2.5-pro | Token Plan Credits | ✅ |
deepseek/deepseek-v4-flash | RMB (pay-as-you-go) | ✅ |
deepseek/deepseek-v4-pro | RMB (pay-as-you-go) | ✅ |
moonshot/kimi-k2.6 | RMB (pay-as-you-go) | ✅ |
MiMo: Copy consumed / total from the backend:
校准 mimo 4,250,108,284 / 11,000,000,000
DeepSeek: Automatic via API:
校准 deepseek
Both automatically deduct the current turn's consumption.
cost-monitor/
├── SKILL.md # This file
├── pricing.json # Official pricing (auto-updated)
├── balance.json # Balance tracking (auto-updated)
├── scripts/
│ ├── cost.py # Core calculation engine
│ ├── calibrate.py # Balance calibration
│ └── set-balance.sh # Quick balance setter
└── references/
└── detailed-guide.md # Full documentation
MiMo Token Plan includes a 0.8× coefficient during off-peak hours (Beijing Time 00:00-08:00). This is automatically applied.
Balance not updating?
balance.json exists in the skill directoryWrong model pricing?
pricing.json with official rates from provider websites_source field in pricing.json tracks the data originDisplay not appearing?
clawhub list