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

token-watch

vedantsingh60 제작

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

요약

**Track, analyze, and optimize token usage and costs across AI providers.

설명

이 스킬이 하는 일

TokenWatch is a local Python library for tracking token usage and costs across AI providers. It records API calls, calculates costs against a pricing table of 41 models across 10 providers, and fires budget alerts when configured thresholds are crossed. All usage data stays on your machine with no external connections.

Unlike provider billing dashboards, it captures per-call cost data in real time and surfaces ranked optimization suggestions before the monthly bill arrives.

사용 시점

  • Checking daily AI spend before a budget limit is reached
  • Comparing model costs for a specific input/output token count before choosing a model
  • Getting automatic alerts when monthly spending hits a set percentage of budget
  • Identifying which tasks or models are driving the highest per-call costs
  • Estimating cost before running a large batch of API calls

예시 워크플로

입력

User asks: How much did I spend on Claude this week and how can I reduce it?

에이전트
  1. 1

    Calls get_spend_by_model(period="week") to retrieve spending broken down by model

  2. 2

    Calls get_spend_by_provider(period="week") to see Anthropic's share of total spend

  3. 3

    Calls get_optimization_suggestions() to generate ranked cost-reduction tips with estimated monthly savings

  4. 4

    Calls format_dashboard() to render a visual summary with budget progress bars

출력

Weekly spend by model alongside optimization suggestions, such as swapping Claude Opus for Sonnet on non-reasoning tasks to save an estimated $8.20/month

설치

clawhub install vedantsingh60/token-watch

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

링크