Skip to content
Back to skills

Openrouter Usage

ASecurity

Track OpenRouter API spending — credit balance, per-model cost breakdown, and spending projections from OpenClaw session logs.

  • 225 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 4, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill openrouter-usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openrouter Usage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openrouter Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-openrouter-usage/badge)](https://www.skillsdirectory.com/skills/neversight-openrouter-usage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openrouter-usage
description: "Track OpenRouter API spending — credit balance, per-model cost breakdown, and spending projections from OpenClaw session logs."
metadata: { "openclaw": { "emoji": "💰", "requires": { "bins": ["openrouter-usage"] } } }
---

# 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)

```bash
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

```bash
openrouter-usage credits
```

### Per-model breakdown only

```bash
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

```bash
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.

Files in this skill

  • SKILL.md1.7 KB
  • description_ar.txt223 B
  • description_cn.txt128 B
  • description_de.txt151 B
  • description_en.txt129 B
  • description_es.txt182 B
  • description_fr.txt170 B
  • description_it.txt165 B
  • description_ja.txt164 B
  • description_ko.txt123 B
  • description_ru.txt226 B
  • description_tw.txt128 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.