ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 Lunik

usage-tracker

구독 요금제와 세션/주간 사용량 창을 임계값 토스트와 함께 하단 그리드에 표시하는 Claude Code 플러그인입니다.

Lunik@Lunik

Lunik/gmz-claude-marketplace/tree/master/usage-tracker

번역 완료

이 mod 소개

usage-tracker는 Claude Code 마켓플레이스 플러그인으로, claude auth status에서 플랜을 읽고 5시간 세션 및 7일 주간 사용량 막대를 오른쪽 아래 그리드 행에 그립니다. 막대는 10개 셀을 사용하며 80%/90%에서 녹색/주황색/빨간색으로 바뀌고, 각 임계값을 처음 넘을 때 토스트를 냅니다(재설정 후 다시 무장). 세션은 모델 요청마다, 주와 플랜은 턴마다 새로 고칩니다. 시작 시 Anthropic OAuth 사용량 엔드포인트를 조회해 빈 창을 미리 채웁니다(토큰은 자식 python3 프로세스에서 macOS 키체인으로 읽고 api.anthropic.com에만 보냄). 응답이 오면 엔진 자체 값으로 교체됩니다. macOS가 아니거나 조회가 실패하면 첫 응답까지 막대를 -로 둡니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add Lunik/gmz-claude-marketplace
claude plugin install usage-tracker
원문 / README

usage-tracker

Shows your Claude subscription plan and how much of the 5-hour (session) and 7-day (week) usage windows you have used.

Claude Pro ┃ session ▰▰▰▱▱▱▱▱▱▱ 32% ┃ week ▰▰▰▰▰▰▰▰▱▱ 82%

Behavior

  • Row in the bottom-right grid. Bars have 10 cells, colored green below 80%, orange from 80%, red from 90%.
  • Toast when a window first crosses 80% and again at 90%. The toast rearms after the window resets.
  • The plan label comes from claude auth status (Claude Pro, Claude Max, ...), Claude if unknown.
  • session refreshes after every model request, week and the plan after every turn.
  • Shows - and empty bars until data is available.

Startup data

Rate limits normally arrive with the first API response. To show them earlier, the plugin queries https://api.anthropic.com/api/oauth/usage at session start and on the first render:

  • The OAuth token is read from the macOS keychain (Claude Code-credentials) inside a child python3 process, so it never appears in a command line, and is sent only to api.anthropic.com.
  • Values from this call only fill empty windows. The engine's own figures replace them once a response arrives.
  • On other platforms, or if the lookup fails, the bars stay at - until the first response.

Requirements

claude on PATH (plan lookup). macOS and python3 for the startup fetch.

비슷한 프로젝트