Manages OpenRouter expenses by calculating token costs, tracking credit balances, and identifying the most cost-effective AI models.
This skill provides a comprehensive toolkit for managing OpenRouter expenditures directly within Claude Code. It allows users to query real-time model pricing via the API, calculate specific request costs based on prompt and completion tokens, and monitor credit balances to prevent service interruptions. By leveraging model variants like ':floor' for the cheapest provider and understanding tiered pricing structures—from free testing models to premium reasoning models—developers can optimize their AI spend and implement better budgeting logic in their applications.
Key Features
01Enterprise spend controls including per-key credit limit management
02Automated cost calculation for prompt and completion tokens
03Credit balance tracking and usage monitoring utilities
04Optimization strategies for :floor and :free model variants
05Real-time pricing queries for 200+ AI models via API
062,028 GitHub stars
Use Cases
01Auditing exact per-generation costs for production monitoring
02Comparing provider costs to find the cheapest Claude or Llama endpoints
03Budgeting for large-scale AI automation and agentic workflows