create-agent-tui
Scaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents. Generates a…
Discover the OpenRouter analytics schema — available metrics, dimensions, filter operators, and granularities. Use when you need to know what analytics data is queryable, what dimensions you can break down by, or how to map a user's question to the right metric/dimension
$ npx -y skills add openrouterteam/skills --skill openrouter-analytics-schema --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/openrouter-analytics-schemaContext preview
The summary Claude sees to decide when to auto-load this skill.
Discover the OpenRouter analytics schema — available metrics, dimensions, filter operators, and granularities. Use when you need to know what analytics data is queryable, what dimensions you can break down by, or how to map a user's question to the right metric/dimension
name: openrouter-analytics-schema description: Discover the OpenRouter analytics schema — available metrics, dimensions, filter operators, and granularities. Use when you need to know what analytics data is queryable, what dimensions you can break down by, or how to map a user's question to the right metric/dimension combination. version: 0.1.0
Discover what analytics data is available for querying. The meta endpoint returns live, always-current definitions of metrics, dimensions, filter operators, and granularities.
GET https://openrouter.ai/api/v1/analytics/meta Authorization: Bearer sk-or-v1-...
Or via the `openrouter-analytics` skill scripts:
cd <openrouter-analytics-skill-path>/scripts && npx tsx discover-schema.ts
{
"data": {
"metrics": [
{ "name": "request_count", "display_label": "Request Count", "is_rate": false, "display_format": "number" }
],
"dimensions": [
{ "name": "model", "display_label": "Model" }
],
"operators": [
{ "name": "eq", "value_type": "scalar" }
],
"granularities": [
{ "name": "day", "display_label": "Day" }
]
}
}Each metric has:
| Field | Meaning | |---|---| | `name` | Identifier to use in query requests | | `display_label` | Human-readable label | | `is_rate` | Whether this is a ratio/rate (averaged, not summed) | | `display_format` | How the value should be formatted: `number`, `currency`, `percent`, `latency`, or `throughput` |
Most volume and cost metrics support time ranges up to **367 days** with day or coarser granularity. Latency/throughput metrics, `blended_cost_per_million_tokens`, and generations-only dimensions (`provider`, `origin`, `country`, `data_region`, `skin`, `finish_reason`, `external_user`, `context_length_bucket`, `generation_id`, `session_id`, `streamed`) are limited to **31-day** time ranges, as is `hour` granularity. Possible-cache metrics (`possible_cached_tokens`, `possible_cache_hit_rate`, `cache_capture_rate`) always read an hourly rollup, so they are capped at **31 days** too and coarser granularity does not lift that cap.
Exceeding a cap returns 400 with the applicable maximum in the message, not a truncated result. If a query times out instead, try narrowing the time range or removing latency/throughput metrics and per-generation dimensions.
**Volume metrics** (how much):
**Cost metrics** (how much money):
**Performance metrics** (how fast; all 31-day limit, milliseconds unless noted). Each family has `avg_`, `p50_`, `p90_`, `p95_`, and `p99_` variants:
A collection of Agent Skills for building with OpenRouter — a unified API for 600+ AI models.
Scaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents. Generates a…
Scaffolds a headless agent in TypeScript using @openrouter/agent and Bun — for CLI tools, API servers, queue workers, and…
Install Ori and run the user's existing coding agent CLI through Ori on OpenRouter, with OAuth sign-in, model selection,…
Migration guide from @openrouter/sdk to @openrouter/agent for callModel, tool(), stop conditions, and agent features. This skill…
Construct and execute analytics queries against the OpenRouter API — full parameter reference for metrics, dimensions, filters,…
Answer natural-language questions about a user's OpenRouter usage data — spend, request volume, model breakdown, latency, token…