AlphaMoatによると、2026-09時点でOpenClaw Cost Guard (Budgets + Token-Saving Playbook)のダウンロード数は4,480、スター数は4で、AIスキル全体5,078件中2,156位、データ分析では399件中174位です。
| プラットフォーム | インストール数 | ダウンロード数 | スター数 | コメント |
|---|---|---|---|---|
| SkillHub ↗ | 671 | 4480 | 4 | — |
プラットフォームごとに集計方法と集計時点が異なります。
セッションの JSONL ログにある呼び出し記録を読み、ログが持つ実際の費用を優先して、日次、週次、累計の集計と高額セッションの順位を出します。費用の項目が無い場合はトークン単価で代替推計でき、予算のしきい値で検査を回し、超過時は警告を出して非ゼロの終了コードで終わります。集計と通知だけを行い、求められない限り設定は変えません。 書き込む前に対象ファイル、リポジトリ、ワークスペースを確認してください。ローカル保存内容は残るため、不要な機密情報を含めないでください。
資料公開日 2026-10-27
スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。
2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。
| 月 | ダウンロード数 | 前月比 | スター数 |
|---|---|---|---|
| 2026-09 | 4480 | — | 4 |
| 2026-08 | 3994 | +2.0% | 4 |
| 2026-07 | 3917 | +3.9% | 4 |
| 2026-06 | 3771 | +2.5% | 4 |
| 2026-05 | 3678 | — | 4 |
| 2026-03 | 3279 | — | 4 |
作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。
--- name: openclaw-cost-guard description: Track OpenClaw/Clawdbot token and cost usage from session JSONL logs (prefer real usage.cost when present), generate daily/weekly summaries and top expensive sessions, and run budget checks (exit code on breach). Use to monitor spend, enforce budgets via cron/alerts, and apply a token-saving playbook to reduce output/tool-call cost. --- # OpenClaw Cost Guard Use this skill when you need: - **accurate cost reports** (daily/weekly/lifetime) - **top expensive sessions**
- **guardrails to reduce token burn** (without changing config unless user asks)
## 1) Data source (important)
Prefer **session JSONL** logs (they contain per-call `usage`, often with **real USD cost**):
- OpenClaw: `~/.openclaw/agents/*/sessions/*.jsonl`
- Legacy/compat: `~/.clawdbot/agents/*/sessions/*.jsonl`
Do **not** estimate from “current context window” style token fields.
## 2) Quick commands
### Daily costs (last 7 days)
```bash
python3 {baseDir}/scripts/extract_cost.py --last-days 7
```
### Today / yesterday
```bash
python3 {baseDir}/scripts/extract_cost.py --today
python3 {baseDir}/scripts/extract_cost.py --yesterday
```
### Top expensive sessions
```bash
python3 {baseDir}/scripts/extract_cost.py --top-sessions 10
```
### JSON output (for dashboards)
```bash
python3 {baseDir}/scripts/extract_cost.py --last-days 30 --json
```
## 3) If cost is missing (fallback estimate)
Some providers may omit `usage.cost`. You can provide per-1M-token prices:
```bash
export PRICE_INPUT=1.75
export PRICE_OUTPUT=14
export PRICE_CACHE_READ=0.175
export PRICE_CACHE_WRITE=0
python3 {baseDir}/scripts/extract_cost.py --last-days 7
```
## 4) Budget alerts
The extractor can run as a **budget check**:
```bash
python3 {baseDir}/scripts/extract_cost.py --today --budget-usd 5
```
- If budget is exceeded, it prints an **ALERT** and exits with code **2** (default).
- For non-failing checks:
```bash
python3 {baseDir}/scripts/extract_cost.py --today --budget-usd 5 --budget-mode warn
```
### Wiring it to a cron alert (recommended)
Run it daily (or hourly) and if exit code is 2, send yourself a Telegram message.
(Implementation depends on your OpenClaw channel setup; do not embed secrets in scripts.)
## 5) Token-saving playbook (teach the AI)
When the user says “use as few tokens as possible”, apply:
- **Default response budget:** 1–6 lines, bullets > paragraphs
- **Ask 1 question max** (only if truly blocking)
- **Progressive disclosure:** offer details only if asked
- **Tool calls:** batch; avoid repeated `status`/browser calls
- **No log dumps** into chat; summarize + point to file path
- **Hard limits:** max 3 web iterations (search/fetch) per task
Optional phrasing to keep yourself in check:
> "Answer in <=6 lines. If more is needed, ask permission."AdMapix のデータ取得層で、広告やアプリの問い合わせを API 呼び出しに変え、生の JSON だけを返します。
Tavily 経由で公開ウェブを検索し、リンクと抜粋付きの構造化結果を返します。
データベースや表計算、書き出した生データを意思決定に使える結論へ変えるデータ分析スキルです。
Yahoo Finance のデータで株式と暗号資産を分析し、ポートフォリオを追跡するスキルです。
ローカルのウォッチリストを管理し、銘柄コードごとに同花順の相場と足元の値動きを要約するスキルです。
全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分析(按月/季/年/省份/品牌等维度)、查询品牌型号历史中标单价/价格趋势、市场分析/行业分析/采购寻源/渠道拓展等采购与投标相关场景。即使用户没有提到「知了标讯」,只要涉及招投标、采购、中标、供应商、竞争对手等关键词,都应使用本SKILL。
ブログと RSS/Atom フィードの更新をコマンドラインで追跡します。
Codex や Claude のモデル別の利用コストを集計するスキルです。
データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。