← 返回
开发者工具 Key 中文

Openrouter Usage

Track OpenRouter API spending — credit balance, per-model cost breakdown, and spending projections from OpenClaw session logs.
追踪 OpenRouter API 支出 — 账户余额、各模型费用明细及基于 OpenClaw 会话日志的支出预测
lcajigasm
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 2
Stars
📥 659
下载
💾 8
安装
1
版本
#latest

概述

openrouter-usage

Track your OpenRouter spending directly from your OpenClaw agent. Shows credit balance, per-model cost/token breakdown, and spending projections.

Trigger

Use when the user asks about OpenRouter credits, costs, spending, balance, usage, billing, or the /usage command.

Commands

Full report (recommended — combines everything)

openrouter-usage report              # credits + today's usage + projection
openrouter-usage report --week       # credits + last 7 days
openrouter-usage report --month      # credits + last 30 days

Credit balance only

openrouter-usage credits

Per-model breakdown only

openrouter-usage sessions --today
openrouter-usage sessions --week
openrouter-usage sessions --month
openrouter-usage sessions --date 2026-02-25
openrouter-usage sessions --from 2026-02-01 --to 2026-02-15

Filtering and output

openrouter-usage report --agent main          # specific agent only
openrouter-usage report --format json         # JSON output
openrouter-usage sessions --today --utc       # use UTC instead of local timezone

Notes

  • API key auto-discovered from OpenClaw auth store or OPENROUTER_API_KEY env var.
  • Session parsing is fully local — reads ~/.openclaw/agents//sessions/.jsonl.
  • Date filters use local timezone by default. Pass --utc to override.
  • Zero dependencies beyond Python 3 stdlib.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 18:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,801
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,203
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,189