{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/openrouter-usage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openrouter-usage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/stats.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/openrouter-usage",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "What this skill does",
        "body": "Retrieves OpenRouter usage and cost data via:\n\nLive totals (Today / Week / Month) from /auth/key\nHistorical per-model breakdown from /activity (completed UTC days only)"
      },
      {
        "title": "How to run (recommended)",
        "body": "Set environment variables (recommended) or create a credentials.env file:\n\nexport OPENROUTER_API_KEY=your_key_here\nexport OPENROUTER_MGMT_KEY=your_mgmt_key_here  # optional, enables model breakdown\n\nThen execute: python3 scripts/stats.py\n\nAlternatively, create credentials.env in the skill directory:\n\nOPENROUTER_API_KEY=your_key_here\nOPENROUTER_MGMT_KEY=your_mgmt_key_here"
      },
      {
        "title": "Fallback method (no Python)",
        "body": "If Python is unavailable, query endpoints directly:\n\nLive totals\ncurl -sS -H \"Authorization: Bearer $OPENROUTER_API_KEY\"\nhttps://openrouter.ai/api/v1/auth/key"
      },
      {
        "title": "Configuration",
        "body": "Required:\n\nOPENROUTER_API_KEY - Required for real-time usage totals and balance\n\nOptional:\n\nOPENROUTER_MGMT_KEY - Enables per-model spend breakdown from activity endpoint\n\nCredentials can be provided via:\n\nEnvironment variables (recommended for security)\ncredentials.env file in skill directory (fallback)"
      },
      {
        "title": "Output format",
        "body": "💰 OpenRouter Usage\nToday: $X.XX* | Week: $X.XX | Month: $X.XX\nBalance: $X.XX / $X.XX"
      },
      {
        "title": "Edge cases",
        "body": "/activity only returns completed UTC days.\nToday’s spend may appear in totals but not per-model data until next UTC rollover.\nInvalid keys → 401/403.\nRate limiting → 429.\nNetwork failures should be retried or surfaced."
      }
    ],
    "body": "OpenRouter Usage Monitor\nWhat this skill does\n\nRetrieves OpenRouter usage and cost data via:\n\nLive totals (Today / Week / Month) from /auth/key\nHistorical per-model breakdown from /activity (completed UTC days only)\nHow to run (recommended)\n\nSet environment variables (recommended) or create a credentials.env file:\n\nexport OPENROUTER_API_KEY=your_key_here\nexport OPENROUTER_MGMT_KEY=your_mgmt_key_here  # optional, enables model breakdown\n\n\nThen execute: python3 scripts/stats.py\n\nAlternatively, create credentials.env in the skill directory:\n\nOPENROUTER_API_KEY=your_key_here\nOPENROUTER_MGMT_KEY=your_mgmt_key_here\n\nFallback method (no Python)\n\nIf Python is unavailable, query endpoints directly:\n\nLive totals curl -sS -H \"Authorization: Bearer $OPENROUTER_API_KEY\" https://openrouter.ai/api/v1/auth/key\n\nPer-model activity (7d) curl -sS -H \"Authorization: Bearer $OPENROUTER_MGMT_KEY\" https://openrouter.ai/api/v1/activity\nConfiguration\n\nRequired:\n\nOPENROUTER_API_KEY - Required for real-time usage totals and balance\n\nOptional:\n\nOPENROUTER_MGMT_KEY - Enables per-model spend breakdown from activity endpoint\n\nCredentials can be provided via:\n\nEnvironment variables (recommended for security)\ncredentials.env file in skill directory (fallback)\nOutput format\n\n💰 OpenRouter Usage Today: $X.XX* | Week: $X.XX | Month: $X.XX Balance: $X.XX / $X.XX\n\nRecent Models (7d): • model-name: $X.XX (N) ... * indicates live totals that may not yet appear in model breakdowns.\nEdge cases\n/activity only returns completed UTC days.\nToday’s spend may appear in totals but not per-model data until next UTC rollover.\nInvalid keys → 401/403.\nRate limiting → 429.\nNetwork failures should be retried or surfaced."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/rosseyre/openrouter-usage",
    "publisherUrl": "https://clawhub.ai/rosseyre/openrouter-usage",
    "owner": "rosseyre",
    "version": "1.1.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}