# Send OpenRouter Usage to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openrouter-usage",
    "name": "OpenRouter Usage",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/rosseyre/openrouter-usage",
    "canonicalUrl": "https://clawhub.ai/rosseyre/openrouter-usage",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openrouter-usage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-usage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/stats.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openrouter-usage",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T21:35:35.320Z",
      "expiresAt": "2026-05-06T21:35:35.320Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-usage",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-usage",
        "contentDisposition": "attachment; filename=\"openrouter-usage-1.1.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openrouter-usage"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openrouter-usage"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openrouter-usage",
    "downloadUrl": "https://openagent3.xyz/downloads/openrouter-usage",
    "agentUrl": "https://openagent3.xyz/skills/openrouter-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openrouter-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openrouter-usage/agent.md"
  }
}
```
## Documentation

### What this skill does

Retrieves OpenRouter usage and cost data via:

Live totals (Today / Week / Month) from /auth/key
Historical per-model breakdown from /activity (completed UTC days only)

### How to run (recommended)

Set environment variables (recommended) or create a credentials.env file:

export OPENROUTER_API_KEY=your_key_here
export OPENROUTER_MGMT_KEY=your_mgmt_key_here  # optional, enables model breakdown

Then execute: python3 scripts/stats.py

Alternatively, create credentials.env in the skill directory:

OPENROUTER_API_KEY=your_key_here
OPENROUTER_MGMT_KEY=your_mgmt_key_here

### Fallback method (no Python)

If Python is unavailable, query endpoints directly:

Live totals
curl -sS -H "Authorization: Bearer $OPENROUTER_API_KEY"
https://openrouter.ai/api/v1/auth/key

### Configuration

Required:

OPENROUTER_API_KEY - Required for real-time usage totals and balance

Optional:

OPENROUTER_MGMT_KEY - Enables per-model spend breakdown from activity endpoint

Credentials can be provided via:

Environment variables (recommended for security)
credentials.env file in skill directory (fallback)

### Output format

💰 OpenRouter Usage
Today: $X.XX* | Week: $X.XX | Month: $X.XX
Balance: $X.XX / $X.XX

### Edge cases

/activity only returns completed UTC days.
Today’s spend may appear in totals but not per-model data until next UTC rollover.
Invalid keys → 401/403.
Rate limiting → 429.
Network failures should be retried or surfaced.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: rosseyre
- Version: 1.1.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T21:35:35.320Z
- Expires at: 2026-05-06T21:35:35.320Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openrouter-usage)
- [Send to Agent page](https://openagent3.xyz/skills/openrouter-usage/agent)
- [JSON manifest](https://openagent3.xyz/skills/openrouter-usage/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openrouter-usage/agent.md)
- [Download page](https://openagent3.xyz/downloads/openrouter-usage)