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

ai-usage

bshandley 제작

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

요약

Check AI usage across Anthropic and other providers.

설명

이 스킬이 하는 일

Checks AI token usage and quota across Anthropic and other providers. Reads live quota data from Anthropic's OAuth API using Claude Code's credentials, and parses OpenClaw session logs for per-model token and cost stats from any routed provider.

It pulls real quota percentages directly from Anthropic's OAuth API rather than estimating from logs, so weekly and rolling-window numbers reflect actual limits.

사용 시점

  • Checking remaining Anthropic quota before starting a long task
  • Reviewing end-of-month spending across AI providers
  • Running a daily background heartbeat on token consumption
  • Identifying which models have been called most this week
  • Feeding usage data into a cron job or dashboard via JSON output

예시 워크플로

입력

User asks: what's my Anthropic quota usage this week?

에이전트
  1. 1

    Reads OAuth token from ~/.claude/.credentials.json

  2. 2

    Refreshes the token if expired by invoking Claude Code once

  3. 3

    Calls GET https://api.anthropic.com/api/oauth/usage for live quota data

  4. 4

    Parses OpenClaw session logs for per-model token and cost counts

  5. 5

    Prints a formatted report with utilization gauges and a reset countdown

출력

Console report showing weekly utilization %, 5-hour rolling window %, model-specific breakdowns for Sonnet and Opus, and token/cost stats from any other detected providers

요구 사항

  • Claude Code installed and authenticated (claude CLI in PATH with valid credentials)

설치

clawhub install bshandley/ai-usage

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

링크