Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aaaaqwq avatar

Openrouter Usage

  • 19 installs
  • 82 repo stars
  • Updated August 2, 2026
  • aaaaqwq/claude-code-skills

openrouter-usage is a Claude Code skill that tracks OpenRouter API spending, credit balance and per-model cost from OpenClaw session logs.

About

openrouter-usage is a Claude Code skill that tracks OpenRouter API spending for an OpenClaw agent. It reports credit balance, per-model cost and token breakdowns, and spending projections by parsing local session logs. A developer uses it to check how much they are spending on OpenRouter by day, week or month without leaving the agent.

  • Tracks OpenRouter API spending from OpenClaw session logs
  • Reports credit balance, per-model cost/token breakdown and spending projections
  • Parses sessions locally with zero dependencies beyond Python 3 stdlib

Openrouter Usage by the numbers

  • 19 all-time installs (skills.sh)
  • Ranked #2,031 of 3,280 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
At a glance

openrouter-usage capabilities & compatibility

Free to run; needs an OpenRouter API key (auto-discovered or OPENROUTER_API_KEY) to read credits.

Capabilities
cost tracking · usage reporting · billing monitoring
Works with
openai
Use cases
token optimization
Pricing
Bring your own API key
From the docs

What openrouter-usage says it does

Shows credit balance, per-model cost/token breakdown, and spending projections
SKILL.md
Zero dependencies beyond Python 3 stdlib
SKILL.md
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill openrouter-usage

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs19
repo stars82
Last updatedAugust 2, 2026
Repositoryaaaaqwq/claude-code-skills

What it does

Track OpenRouter credit balance, per-model cost, and spending projections from local session logs.

When should I use this skill?

The user asks about OpenRouter credits, cost, spending, balance, or usage.

By the numbers

  • 3 report scopes (today/week/month)
  • zero dependencies beyond Python 3 stdlib

Files

SKILL.mdMarkdownGitHub ↗

openrouter-usage

  • Author: Daniel Li
  • Copyright © Daniel Li. All rights reserved.

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.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.