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

token-meter

상태 표시줄에 실시간 token 처리량(tok/s, tok/min, tok/hr)을 보여 주는 Claude Code mod입니다. 출력 token만 세며 응답이 스트리밍되는 동안 학습된 실시간 추정치를 표시합니다.

NotRedFox@NotRedFox

NotRedFox/NotRedFoxs-Claude-skills/tree/main/mods/token-meter

번역 완료

이 mod 소개

Token Meter는 Claude Code mod(v0.2.0)으로, Claude가 얼마나 빠르게 작성하는지를 상태 표시줄에 보여 줍니다. 현재 응답 속도를 tok/s로 표시하고(스트리밍 중에는 ~가 붙은 추정치, 응답이 끝나면 정확한 값), 최근 60초와 최근 1시간 동안 작성된 token 수도 보여 줍니다. 출력 token만 세며 사고와 도구 호출은 포함하지만 입력은 포함하지 않습니다.

응답이 스트리밍되는 동안 문자를 세고 token당 3문자에서 시작해 세션에서 완료된 응답으로부터 실제 비율을 학습합니다. 숨겨진 사고가 있는 응답은 실시간 값을 건너뛰고 끝에 정확한 값을 표시합니다. API 자체의 총계와 비교한 테스트는 모든 실행에서 정확히 일치했고, 실시간 ~ 추정치는 정확한 속도에서 약 15% 이내였습니다. 6개 자동화 테스트가 정확한 속도, 실시간 추정, 비율 학습, 숨겨진 사고, 분당 창 및 상태 표시줄 지우기를 다룹니다(claude plugin test mods/token-meter로 실행).

claude plugin marketplace add NotRedFox/NotRedFoxs-Claude-skills를 실행한 뒤 claude plugin install token-meter@notredfox를 실행해 설치하거나, 세션 안에서 /plugin 명령을 사용한 다음 /reload-plugins를 실행하세요. 터미널과 Claude Desktop Code 탭에는 나타나지만 VS Code 채팅 패널이나 claude -p에는 표시되지 않습니다. Claude Code v2.1.287 이상이 필요합니다. 응답과 시계만 읽고 상태 표시줄에 기록합니다.

설치

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

claude plugin marketplace add NotRedFox/NotRedFoxs-Claude-skills
claude plugin install token-meter
원문 / README

Token Meter

Version 0.2.0. See CHANGELOG.md.

A Claude Code mod that shows how fast Claude is writing, live, in the status line:

~95 tok/s | 1.2k tok/min | 8.4k tok/hr
  • tok/s: speed of the current reply, timed from when the request is sent. While Claude is still writing it starts with ~, an estimate from the text so far. When the reply ends it switches to the exact number from the API.
  • tok/min: tokens Claude wrote in the last 60 seconds.
  • tok/hr: tokens Claude wrote in the last hour.

It counts output tokens only (what Claude writes, including thinking and tool calls), not what it reads.

What's a mod?

A mod is a plugin with code that runs inside Claude Code, so it can draw in the interface and react to events like tool calls and replies. Skills are instructions Claude reads; mods change Claude Code itself. They need Claude Code v2.1.287 or later. See Anthropic's mods overview.

How the live estimate works

The API only reports the token count when a reply ends, so while Claude writes, the meter counts characters instead. It starts at 3 characters per token, measured on Claude's replies, then learns the real ratio from each finished reply in your session. When Claude's thinking is hidden it costs tokens but shows no text, so the meter skips the live figure for that reply and shows the exact one when it ends.

Tested

Installed from this repo's marketplace and run in real sessions of three replies each (a story, a command, a story, a command, a story):

| | Result | |---|---| | Exact counts | Matched the API's own totals in every run (for example 1,462, 1,567 and 1,471 tokens) | | Live ~ estimate against the exact speed | Within about 15%: 73 vs 83, 77 vs 90, 84 vs 93, 92 vs 86, 90 vs 80, 104 vs 94 tok/s | | Before the 0.2.0 fixes | 2.5k tok/s on replies that thought first, and live estimates 30 to 40% low |

6 automated tests cover the exact speed, the live estimate, learning the ratio, hidden thinking, the per-minute window and clearing the status line. Run them with claude plugin test mods/token-meter.

The test sessions ran headless, where the meter writes to the debug log instead of a status line. I couldn't open an interactive terminal on the test machine, so I haven't seen it drawn on screen myself.

Install

In your terminal:

claude plugin marketplace add NotRedFox/NotRedFoxs-Claude-skills
claude plugin install token-meter@notredfox

Or inside a Claude Code session, /plugin marketplace add NotRedFox/NotRedFoxs-Claude-skills then /plugin install token-meter@notredfox, then /reload-plugins.

To check what it does before installing, clone this repo and run claude plugin validate mods/token-meter. It only reads replies and the clock and writes to the status line.

Where it shows

The terminal and the Code tab of the Claude Desktop app. It runs but shows nothing in the VS Code chat panel and claude -p.

To update it: claude plugin update token-meter@notredfox. To remove it: claude plugin uninstall token-meter@notredfox.

비슷한 프로젝트