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

claude-usage-cli

cyberash-dev 제작

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

요약

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

설명

이 스킬이 하는 일

CLI tool for querying Anthropic Admin API usage and cost reports from the terminal. Stores the Admin API key in macOS Keychain. Outputs data as formatted tables or JSON. Note: this package is deprecated; claude-cost-cli is the maintained replacement.

Storing credentials in macOS Keychain avoids plaintext API key files that other CLI tools often require.

사용 시점

  • Check daily token spend across Claude models
  • Pull last 30 days of cost data into a script
  • Filter usage by specific API key IDs
  • Get hourly granularity on a busy billing period
  • Verify total monthly spend before invoice arrives

예시 워크플로

입력

User asks: how much did I spend on Claude last month?

에이전트
  1. 1

    Run claude-usage config set-key to store Admin API key in Keychain

  2. 2

    Run claude-usage cost --period 30d to fetch last 30 days of cost data

  3. 3

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

  4. 4

    Run claude-usage cost --period 30d --sum to get a single total figure

출력

Table of daily cost breakdown by model plus a total USD figure for the past 30 days

요구 사항

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

설치

clawhub install cyberash-dev/claude-usage-cli

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

링크