# Send claude-usage-cli 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": "claude-usage-cli",
    "name": "claude-usage-cli",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/cyberash-dev/claude-usage-cli",
    "canonicalUrl": "https://clawhub.ai/cyberash-dev/claude-usage-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/claude-usage-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-usage-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "_meta.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "claude-usage-cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T19:37:42.509Z",
      "expiresAt": "2026-05-18T19:37:42.509Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-usage-cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-usage-cli",
        "contentDisposition": "attachment; filename=\"claude-usage-cli-0.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "claude-usage-cli"
      },
      "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/claude-usage-cli"
    },
    "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/claude-usage-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/claude-usage-cli",
    "agentUrl": "https://openagent3.xyz/skills/claude-usage-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claude-usage-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claude-usage-cli/agent.md"
  }
}
```
## Documentation

### claude-usage-cli

⚠️ DEPRECATED — This skill is no longer maintained. Please use claude-cost-cli instead, which provides the same functionality with active support.

A CLI for querying Anthropic Admin API usage and cost data. Requires an Admin API key (sk-ant-admin...) from Claude Console → Settings → Admin Keys. Credentials are stored in macOS Keychain.

### Installation

Requires Node.js >= 18 and macOS. The package is open source: https://github.com/cyberash-dev/claude-usage-cli

npm install -g claude-usage-cli

Install from source (if you prefer to audit the code before running):

git clone https://github.com/cyberash-dev/claude-usage-cli.git
cd claude-usage-cli
npm install && npm run build && npm link

After installation the claude-usage command is available globally.

### Quick Start

claude-usage config set-key     # Interactive prompt: enter Admin API key (masked)
claude-usage usage              # Token usage for the last 7 days
claude-usage cost               # Cost breakdown for the last 7 days
claude-usage cost --sum         # Total spend for the last 7 days

### API Key Management

Store API key (interactive masked prompt, validates sk-ant-admin prefix):

claude-usage config set-key

Show stored key (masked):

claude-usage config show

Remove key from Keychain:

claude-usage config remove-key

### Usage Reports

claude-usage usage                                    # Last 7 days, daily, grouped by model
claude-usage usage --period 30d                       # Last 30 days
claude-usage usage --from 2026-01-01 --to 2026-01-31 # Custom date range
claude-usage usage --model claude-sonnet-4            # Filter by model
claude-usage usage --api-keys apikey_01Rj,apikey_02Xz # Filter by API key IDs
claude-usage usage --group-by model,api_key_id        # Group by multiple dimensions
claude-usage usage --bucket 1h                        # Hourly granularity (1d, 1h, 1m)

JSON output (for scripting):

claude-usage usage --json
claude-usage usage --period 30d --json

Output columns: Date, Model, Input Tokens, Cached Tokens, Output Tokens, Web Searches.

### Cost Reports

claude-usage cost                                           # Last 7 days, grouped by description
claude-usage cost --period 30d                              # Last 30 days
claude-usage cost --from 2026-01-01 --to 2026-01-31        # Custom date range
claude-usage cost --group-by workspace_id,description       # Group by workspace and description
claude-usage cost --sum                                     # Total cost only

JSON output (for scripting):

claude-usage cost --json
claude-usage cost --sum --json

Output columns: Date, Description, Model, Amount (USD), Token Type, Tier.

### usage

FlagDescriptionDefault--from <date>Start date (YYYY-MM-DD or ISO)7 days ago--to <date>End date (YYYY-MM-DD or ISO)now--period <days>Shorthand period (7d, 30d, 90d)7d--model <models>Filter by model(s), comma-separatedall--api-keys <ids>Filter by API key ID(s), comma-separatedall--group-by <fields>Group by model, api_key_id, workspace_id, service_tiermodel--bucket <width>Bucket width: 1d, 1h, 1m1d--jsonOutput as JSONfalse

### cost

FlagDescriptionDefault--from <date>Start date (YYYY-MM-DD or ISO)7 days ago--to <date>End date (YYYY-MM-DD or ISO)now--period <days>Shorthand period (7d, 30d, 90d)7d--group-by <fields>Group by workspace_id, descriptiondescription--sumOutput total cost onlyfalse--jsonOutput as JSONfalse

### Security and Data Storage

Admin API key: stored exclusively in macOS Keychain (service: claude-usage-cli). Never written to disk in plaintext.
No config files: all settings are passed via CLI flags. Nothing is stored on disk besides the Keychain entry.
Network: the API key is only sent to api.anthropic.com over HTTPS. No other outbound connections are made.
Scope: the Admin API key grants read-only access to organization usage and cost data. It cannot modify billing, create API keys, or access conversation content.
No caching: query results are not cached or persisted to disk.

### API Reference

This CLI wraps the Anthropic Admin API:

Usage: GET /v1/organizations/usage_report/messages
Cost: GET /v1/organizations/cost_report

Documentation: https://platform.claude.com/docs/en/build-with-claude/usage-cost-api
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: cyberash-dev
- Version: 0.2.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-11T19:37:42.509Z
- Expires at: 2026-05-18T19:37:42.509Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/claude-usage-cli)
- [Send to Agent page](https://openagent3.xyz/skills/claude-usage-cli/agent)
- [JSON manifest](https://openagent3.xyz/skills/claude-usage-cli/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/claude-usage-cli/agent.md)
- [Download page](https://openagent3.xyz/downloads/claude-usage-cli)