openrouter-usage
Installation
SKILL.md
OpenRouter Usage
Query OpenRouter API costs and generate usage reports via the command line.
When to Use
- Checking OpenRouter spend over the last 30 days
- Breaking down costs by model, provider, or date
- Exporting usage data as CSV or JSON for accounting
- Auditing which models and API keys consume the most credits
Prerequisites
OPENROUTER_API_KEYenvironment variable (or in a project.envfile)- The key must be a Management key — create one at https://openrouter.ai/settings/management-keys
- Regular provisioning keys return 401/403 on analytics endpoints