openrouter-cost

Track OpenRouter account spend and remaining credits across model runs.

30|1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/s-choung/Research-Skills --skill openrouter-cost
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openrouter-cost
Source: https://github.com/s-choung/Research-Skills/tree/main/skills/openrouter-cost
Command: npx skills add https://github.com/s-choung/Research-Skills --skill openrouter-cost

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you inspect OpenRouter account usage and remaining credits without exposing API keys, so you can answer “how much did I spend” accurately.

Core Features & Use Cases

  • Account Spend Reporting: Shows credits, used amount, remaining balance, and usage windows like daily, weekly, monthly, and lifetime.
  • Run Cost Measurement: Captures a snapshot before a model run and computes the exact spend delta after the run finishes.
  • Safe Key Handling: Reads credentials from macOS Keychain or an environment variable and never prints the key itself.
  • Use Case: Check current OpenRouter burn before launching a long agent session, then measure the exact cost of that session afterward.

Quick Start

Ask the assistant to check my OpenRouter usage and, if needed, take a before-and-after snapshot to measure how much the last run cost.

Frequently Asked Questions about openrouter-cost

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track OpenRouter spend and remaining credits for my account?

Track OpenRouter spend by reading the platform's auth and credits endpoints to report used amount, remaining balance, and usage windows like daily, weekly, or lifetime without exposing API keys.

Can I measure the exact cost delta of a specific OpenRouter model run?

Measure exact OpenRouter run cost by capturing a credits snapshot before a model run and computing the spend delta after the agent workflow finishes.

How do I securely access OpenRouter API keys for usage monitoring?

Securely access OpenRouter API keys for usage monitoring by retrieving credentials from macOS Keychain or an environment variable, ensuring the key itself is never printed.

Does this method work for checking OpenRouter budget before a long agent session?

Checking OpenRouter budget before a long agent session works by reading current burn rate and remaining credits to verify available funds prior to launching the workflow.

What is the best way to verify post-run expenses for OpenRouter-based agent workflows?

Verify post-run expenses for OpenRouter agent workflows by taking a before-and-after snapshot of account credits to calculate the exact spend delta and confirm the billing amount.