본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

claude-cost-cli

cyberash-dev 제작

Browser & Automation
796clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Query Claude API usage and cost reports from the command line.

설명

이 스킬이 하는 일

CLI tool for querying Anthropic Admin API usage and cost data. Stores the Admin API key in macOS Keychain. Outputs tables or JSON for scripting.

Avoids logging into the Claude Console just to check usage, and outputs JSON for piping into scripts or dashboards.

사용 시점

  • Check daily Claude API spend before end of billing cycle
  • Filter token usage by model to compare costs across deployments
  • Export monthly cost report as JSON for expense tracking
  • Monitor hourly usage spikes during high-traffic periods
  • Audit which API keys are consuming the most tokens

예시 워크플로

입력

User asks: show me my Claude API costs for January 2026 grouped by workspace

에이전트
  1. 1

    Run claude-cost config set-key to store the Admin API key in macOS Keychain

  2. 2

    Run claude-cost cost --from 2026-01-01 --to 2026-01-31 --group-by workspace_id

  3. 3

    Review table output showing Date, Description, Model, Amount (USD), Token Type, Tier per workspace

  4. 4

    Optionally rerun with --json flag to pipe results into another tool

출력

Cost breakdown table for January 2026, one row per workspace entry

요구 사항

  • Anthropic Admin API key (sk-ant-admin...) from Claude Console under Settings > Admin Keys
  • macOS (Keychain storage is required)

설치

clawhub install cyberash-dev/claude-cost-cli

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크