# Send OpenRouter Analytics 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-analytics",
    "name": "OpenRouter Analytics",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/plgonzalezrx8/openrouter-analytics",
    "canonicalUrl": "https://clawhub.ai/plgonzalezrx8/openrouter-analytics",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openrouter-analytics",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-analytics",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/endpoints.md",
      "scripts/openrouter_analytics.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openrouter-analytics",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T13:50:54.214Z",
      "expiresAt": "2026-05-13T13:50:54.214Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-analytics",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-analytics",
        "contentDisposition": "attachment; filename=\"openrouter-analytics-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openrouter-analytics"
      },
      "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-analytics"
    },
    "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-analytics",
    "downloadUrl": "https://openagent3.xyz/downloads/openrouter-analytics",
    "agentUrl": "https://openagent3.xyz/skills/openrouter-analytics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openrouter-analytics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openrouter-analytics/agent.md"
  }
}
```
## Documentation

### OpenRouter Analytics

Use this skill to pull management-level usage data and request-level troubleshooting details from OpenRouter.

### Quick Start

Run from this skill folder:

cd ~/clawd/skills/openrouter-analytics

Management key operations (set OPENROUTER_MANAGEMENT_KEY):

python3 scripts/openrouter_analytics.py activity --limit 20
python3 scripts/openrouter_analytics.py activity --date 2026-02-18
python3 scripts/openrouter_analytics.py activity --from 2026-02-01 --to 2026-02-18 --summary --csv /tmp/activity.csv
python3 scripts/openrouter_analytics.py credits
python3 scripts/openrouter_analytics.py keys --limit 50 --summary
python3 scripts/openrouter_analytics.py report --from 2026-02-01 --to 2026-02-18 --format markdown

Request-level troubleshooting (set OPENROUTER_API_KEY):

python3 scripts/openrouter_analytics.py generation --id <generation_id>

Use --raw on any command to print full JSON.

### Workflow

Check macro activity

Run activity for daily spend/traffic patterns.


Check account-level usage

Run credits to review consumed vs remaining credits.


Find key-level consumers

Run keys to identify which keys are driving usage.


Investigate incidents

Run generation --id ... for detailed logs on one request (latency, fallback providers, finish reason, token and cost details).

### Notes

activity, credits, keys, and report require a Management API key.
generation uses a standard OpenRouter API key and requires the request id.
The script auto-loads ~/.openclaw/.env and current-directory .env before execution.
Use --retries and --timeout to tune robustness under transient API/network issues.
Keep generation IDs in your application logs to support reliable post-incident analysis.

### Resources

Endpoint reference and field guide: references/endpoints.md
CLI helper script: scripts/openrouter_analytics.py
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: plgonzalezrx8
- Version: 1.0.0
## 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-05-06T13:50:54.214Z
- Expires at: 2026-05-13T13:50:54.214Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openrouter-analytics)
- [Send to Agent page](https://openagent3.xyz/skills/openrouter-analytics/agent)
- [JSON manifest](https://openagent3.xyz/skills/openrouter-analytics/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openrouter-analytics/agent.md)
- [Download page](https://openagent3.xyz/downloads/openrouter-analytics)