convez.ai
AgenteProdutividadeIntermediário
Nanako0129

TokenBar

Nanako0129/TokenBar

Monitor de tokens de IA para macOS — rastreie 25+ agentes localmente

Ver no GitHub
BomPluginScore · de 0 a 100

Monitor nativo de uso de tokens e cotas de IA na barra de menu do macOS, com suporte a 25+ agentes (Claude Code, Cursor, Codex e outros). Rastreia consumo localmente via logs de sessão, sem telemetria, com dashboard em Liquid Glass e gráfico 3D interativo.

Instalação

$npx convez-ai Nanako0129/TokenBar

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
521
Forks
43
Acompanhando
2
Saúde
42%
Último commit
há 1 dia
Versão
v2.11.3
Issues abertas
12
Contribuidores
3

Casos de uso

  • Monitorar consumo de tokens em tempo real durante desenvolvimento com IA
  • Rastrear custo e quota de subscrição de múltiplos agentes de código
  • Analisar padrões de uso horário e diário com visualizações avançadas

Veredito

Ferramenta bem-executada e focada para desenvolvedores macOS que usam múltiplos agentes de IA. Destaca-se pela leitura local (sem telemetria), UI polida em Liquid Glass e análises detalhadas de consumo — ideal para quem precisa controlar gastos e quota em tempo real.

README

A tradução para o português deste README ainda está na fila.

TokenBar sits in your menu bar and shows what you're spending across 25+ AI coding agents — Claude Code, Codex, Cursor, OpenCode, Gemini CLI and more — read on-device from your local session logs. No Dock icon, no telemetry, no account.

The menu-bar title shows today's tokens, cost, live tokens/min, or how much subscription quota is left — as signal bars, a ring, or a popsicle that melts as your window drains. And the cat sprints faster the more you burn, tracing back to RunCat by Takuto Nakamura.


The dashboard

Click the icon and a Liquid Glass popover opens. A row of app tabs filters which agents you're looking at; a view switch picks how that data is broken down — six lenses, plus the same year of usage as an orbitable 3D graph.

Plus OAuth quota cards with pace projections, a live session trace, streaks, and full keyboard control (⌘1–9 tabs, ⌘G chart toggle, ⌘, settings). A failed refresh never blanks a reading — the last known value stays until a fresh one lands.

Install

brew install --cask nanako0129/tokenbar/tokenbar

In-app updates arrive via Sparkle; betas ride an opt-in channel (Settings → "Receive beta updates"). The app is ad-hoc signed (not notarized) — the cask clears the quarantine attribute on install, as disclosed. Requires an Apple Silicon Mac on macOS 14+ (Liquid Glass needs macOS 26; earlier systems get a vibrancy fallback). Still on macOS 11–13? The final Tauri build stays as tokenbar@legacy.

How it works

Rust owns the data — session parsing, aggregation, pricing, quota fetching — via the vendored tokscale-core, exposed to Swift as a C-ABI staticlib (crates/tb_core_ffi). Swift owns the rest: SwiftUI views, the NSStatusItem shell, Sparkle updates.

make        # cargo build --release, then swift build
make run    # build + run the smoke binary

Run swift build from the repo root — the linker's -L target/release path in Package.swift is relative.

Credits

TokenBar began as a fork of tokcat by handlecusion (the spinning-cat idea is theirs, tracing to RunCat by Takuto Nakamura). Parsing and pricing come from tokscale by Junho Yeo. The menu-bar shell patterns reference CodexBar by Peter Steinberger. All MIT.

Licensed under MIT.

Ver o original no GitHub

Bom para

Relacionados