返回顶部
c

clawcost

Track OpenClaw agent costs. Check daily/weekly spending and model breakdown.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
716
下载量
0
收藏
概述
安装方式
版本历史

clawcost

# ClawCost Run this command: ```bash python3 {baseDir}/scripts/clawcost.py --budget 10 ``` ## Output JSON with: - `balance`: {initial, spent, remaining} or null - `today`: cost, budget, pct - `week`: total week cost - `total`: all-time cost, tokens - `models`: breakdown all-time - `models_today`: breakdown for today only - `daily`: cost per day (last 7 days) ## Set Balance User sets INITIAL balance (when they top up): ```bash python3 {baseDir}/scripts/clawcost.py --set-balance 50.00 ``` Remaining auto-calculates: initial - total_spent ## How to Present **Tone:** Friendly, like a helpful assistant checking expenses. Use emojis sparingly. **Format:** Use tree-style (├ └) for clean output: ``` 💰 clawleaks ├ Balance $42.98 / $50 remaining ├ Today $1.36 / $10 (14%) ✅ ├ Week $7.02 └ Total $7.02 (15.5M tok) 📈 Sonnet $3.99 (57%) • Haiku $2.06 (29%) • Opus $0.97 (14%) ``` **Rules:** - Skip $0 models - Add brief insight ("Opus only 14%, nice savings 👍") **Alerts (IMPORTANT):** - If `today.pct` > 80%: Start with ⚠️ **"Warning: Daily budget {pct}% used!"** - If `today.pct` > 100%: Start with 🚨 **"OVER BUDGET! ${cost} spent"** - If `balance.remaining` < 5: Warn "💸 Low balance: ${remaining} left" - If `balance` is null: Suggest "Set initial balance with --set-balance" - If budget is fine: End with ✅ **Contextual:** - Quick question → short answer - Wants detail → full breakdown + daily - Over budget → always show warning first, suggest switching to Haiku

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawcost-1776419971 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawcost-1776419971 技能

通过命令行安装

skillhub install clawcost-1776419971

下载 Zip 包

⬇ 下载 clawcost v1.0.2

文件大小: 5.8 KB | 发布时间: 2026-4-17 19:52

v1.0.2 最新 2026-4-17 19:52
Security fix: Use $HOME paths instead of /home/{user}/, removed --user arg, added security docs

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部