MCPcopy Create free account
hub / github.com/Javis603/token-monitor

github.com/Javis603/token-monitor

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.93.1 ↗ · + Follow · compare 18 versions
13,852 symbols 48,510 edges 1,316 files 27 documented · 0% ● updated 48d agov0.65.0 · 2026-10-02★ 2,55269 open issues

Browse by type

⨍ Functions 13,484◇ Types & classes 368
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

EN | 简 | 繁 | KO | JA | PT

<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/app.png" alt="Token Monitor logo" width="120">
<h1>Token Monitor</h1>







<em>すべての AI コーディングツールのリアルタイム使用量を一画面で、複数デバイス間で同期。</em>







<a href="https://github.com/Javis603/token-monitor/releases"><img src="https://img.shields.io/github/v/release/Javis603/token-monitor?include_prereleases&style=flat-square&label=release&color=22c55e" alt="最新リリース" /></a>
<a href="https://github.com/Javis603/token-monitor/releases"><img src="https://img.shields.io/github/downloads/Javis603/token-monitor/total?style=flat-square&color=22c55e" alt="総ダウンロード数" /></a>
<img src="https://img.shields.io/badge/Windows-10%2B-0078D4?style=flat-square" alt="Windows 10 以降" />
<img src="https://img.shields.io/badge/macOS-13%2B-0A84FF?style=flat-square&logo=apple&logoColor=white" alt="macOS 13 以降" />
<img src="https://img.shields.io/badge/Linux-x64-64748b?style=flat-square&logo=linux&logoColor=white" alt="Linux x64" />
<a href="https://discord.gg/HmdNVVvw5P"><img src="https://img.shields.io/discord/1344259784219689031?color=5865F2&label=Discord&logo=discord&logoColor=white&style=flat-square" alt="Discord"></a>
<a href="https://github.com/Javis603/token-monitor/raw/v0.93.1/LICENSE"><img src="https://img.shields.io/badge/license-MIT-A855F7?style=flat-square" alt="ライセンス: MIT" /></a>







<a href="https://trendshift.io/repositories/47497?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-47497" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/47497" alt="Javis603%2Ftoken-monitor | Trendshift" width="250" height="55"/></a>







<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/demo.gif">

Token Monitor とは

Claude Code、Codex、Cursor、GitHub Copilot、Cherry Studio など 54+ 種類の AI コーディングツールのリアルタイムトークン使用量と AI ツール制限を表示するデスクトップアプリです。複数デバイス間のリアルタイム同期、使用履歴トレンド、ツール・デバイス・モデル・セッション・プロジェクト別の内訳表示に対応しています。メインウィンドウ、MacBook のノッチ、メニューバーやシステムトレイ、画面の端、フローティングバブル、ネイティブ macOS ウィジェットなど、目に入るあらゆる場所で確認できます。

対応ツール

普段使っている AI コーディングツールやプロバイダーから、トークン使用量・AI ツール制限・セッション詳細を読み取ります。

<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/claude.png" width="40" alt="Claude Code" title="Claude Code" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/codex.png" width="40" alt="Codex" title="Codex" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/opencode.png" width="40" alt="OpenCode" title="OpenCode" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/hermes-agent.png" width="40" alt="Hermes Agent" title="Hermes Agent" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/openclaw.png" width="40" alt="OpenClaw" title="OpenClaw" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/cursor.png" width="40" alt="Cursor" title="Cursor" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/antigravity.png" width="40" alt="Antigravity" title="Antigravity" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/gemini-cli.png" width="40" alt="Gemini CLI" title="Gemini CLI" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/cline.png" width="40" alt="Cline" title="Cline" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/amp.png" width="40" alt="Amp" title="Amp" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/droid.png" width="40" alt="Factory Droid" title="Factory Droid" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/kimi.png" width="40" alt="Kimi" title="Kimi" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/qwen.png" width="40" alt="Qwen" title="Qwen" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/xai.png" width="40" alt="Grok Build" title="Grok Build" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/copilot.png" width="40" alt="GitHub Copilot" title="GitHub Copilot" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/pi.png" width="40" alt="Pi" title="Pi" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/omp.png" width="40" alt="Oh My Pi" title="Oh My Pi" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/senpi.png" width="40" alt="OmO Native" title="OmO Native" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/goose.png" width="40" alt="Goose" title="Goose" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/zed.png" width="40" alt="Zed" title="Zed" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/kilo.png" width="40" alt="Kilo" title="Kilo" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/commandcode.png" width="40" alt="Command Code" title="Command Code" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/mimo.png" width="40" alt="MiMo" title="MiMo" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/muse.png" width="40" alt="Muse / Muse Code" title="Muse / Muse Code" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/zcode.png" width="40" alt="ZCode" title="ZCode" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/kiro.png" width="40" alt="Kiro" title="Kiro" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/codebuddy.png" width="40" alt="CodeBuddy" title="CodeBuddy" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/workbuddy.png" width="40" alt="WorkBuddy" title="WorkBuddy" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/proma.png" width="40" alt="Proma" title="Proma" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/catpaw.png" width="40" alt="CatPaw" title="CatPaw" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/qoder.png" width="40" alt="Qoder" title="Qoder" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/reasonix.png" width="40" alt="Reasonix" title="Reasonix" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/deepseek.png" width="40" alt="DeepSeek" title="DeepSeek" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/cherrystudio.png" width="40" alt="Cherry Studio" title="Cherry Studio" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/lmstudio.png" width="40" alt="LM Studio" title="LM Studio" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/unsloth.png" width="40" alt="Unsloth" title="Unsloth" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/devin.png" width="40" alt="Devin" title="Devin" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/fx.png" width="40" alt="fx" title="fx" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/minimax.png" width="40" alt="MiniMax" title="MiniMax" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/mistral.png" width="40" alt="Mistral Vibe" title="Mistral Vibe" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/prime-agent.png" width="40" alt="Prime Agent" title="Prime Agent" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/jcode.png" width="40" alt="Jcode" title="Jcode" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/typesafe.png" width="40" alt="TypeSafe" title="TypeSafe" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/openrouter.png" width="40" alt="OpenRouter" title="OpenRouter" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/volcengine.png" width="40" alt="Volcengine" title="Volcengine" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/ollama.png" width="40" alt="Ollama" title="Ollama" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/trae.png" width="40" alt="Trae CN" title="Trae CN" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/alibaba.png" width="40" alt="Alibaba Cloud" title="Alibaba Cloud" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/stepfun.png" width="40" alt="StepFun" title="StepFun" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/notion.png" width="40" alt="Notion AI" title="Notion AI" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/manus.png" width="40" alt="Manus" title="Manus" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/hark.png" width="40" alt="Hark" title="Hark" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/opendesign.png" width="40" alt="OpenDesign" title="OpenDesign" />
<img src="https://github.com/Javis603/token-monitor/raw/v0.93.1/github/assets/tools-icon/thirdparty.gif" width="40" alt="サードパーティAPI" title="サードパーティAPI" />

各ツールの対応範囲とデータパスを見る →

ショーケース

デスクトップ上で

ノッチパネル ノッチパネル — 実行中のセッションをノッチの横に表示。下にスワイプすると今日の使用量、全アカウントの制限、セッション、内訳を確認
エッジドック エッジドック — 画面の端に制限と使用量を常駐。ホバーで制限、最近のセッション、トークンを表示 メニューバーとポップオーバー メニューバーとトレイ — プリセットを選ぶか自分で組み立て:ツールアイコン、制限バー、リセット時間、コスト、リアルタイム tok/s

アプリ内

制限ビュー 複数アカウントを並べて表示、Codex はローカルアカウントをワンクリック切り替え ツールビュー 任意のツールをクリックして入力/出力とキャッシュヒットの内訳を展開 セッションビュー 単一セッションを開いて、プロンプトごとにトークンと使用ツールを分解

その他のビュー — プロジェクト、モデル、デバイス

プロジェクトビュー プロジェクトごとの使用量とコスト、ツール・デバイスをまたいで集計 モデルビュー ツール横断で各モデルの使用量とコストを集計 デバイスビュー 各デバイスの使用量・コスト・同期状態、展開でマシン別詳細

使用ダッシュボード

使用ダッシュボード概要 全デバイス横断の 1 年分アクティビティヒートマップと連続日数 使用ダッシュボードトレンド 1 年分の日次トレンド、ツール/モデル別に積み上げ、K 線対応

Token Monitor を使う理由

多くの使用量モニターは、実行しているマシン上でのみ役立ちます。Token Monitor はマルチデバイス作業のために設計されています。各デバイスがローカルログを監視し、hub にサマリーを送信すると、接続されたすべてのウィジェットがトークンの変化をほぼリアルタイムで確認できます。

クイックインストール

macOS では公式の Homebrew Cask からインストールできます:

brew install --cask token-monitor

または GitHub Releases から macOS、Windows、Linux 向けのアプリをダウンロードできます。

アプリを起動すると、このデバイスのローカル使用量の追跡が始まります。hub の設定は不要です。詳しくはインストールをご覧ください。

機能

使用量の追跡

  • リアルタイムトークン追跡 — Claude Code、Codex、Cursor、GitHub Copilot、Antigravity、OpenCode など 42+ 種類の AI ツール、各ターンから数秒以内に UI 更新(全リストは上の表を参照)
  • リアルタイムトークンレート — 生成速度を tok/s、総消費を tok/min で表示する任意のライブ表示
  • セッション別詳細 — セッションを開くとプロンプトごとのトークン、各応答のトークン分割・使用ツールまで展開(ローカル transcript/DB を必要時のみ読み込み、同期しない)
  • キャッシュヒット統計 — ツール・モデルをクリックすると入力トークン(キャッシュ hit/miss)、出力トークン、ヒット率の詳細
  • コストと通貨 — トークン数とともにコストを表示。USD、CNY、TWD、HKD、KRW、JPY、BRL などに対応し、為替レートは毎日自動更新、設定で手動上書き可能
  • カスタムスキャンパス — セッションが既定の場所にない場合、ツールごとに追加フォルダーを指定できます
  • WSL 使用量 (Windows) — 実行中の WSL ディストリビューションのファイルベースの使用量を約 5 分ごとに合算。OpenCode や Hermes など SQLite ベースのツールでは、WSL 内のヘッドレスエージェントが必要になる場合があります

制限・トレンド・エクスポート

  • AI ツール制限検出 — Claude Code、Codex、Cursor、OpenRouter、サードパーティAPI、GLM、Kimi など 34+ プロバイダーの session/daily/weekly/billing/credits、複数の OpenRouter/サードパーティプロファイル、残高型アカウント(Claude クレジット、DeepSeek のプリペイド残高と使用履歴、サードパーティ残高)
  • 複数アカウントと Codex 切り替え — 1 つのプロバイダーで複数アカウントを追跡し、それぞれの制限を表示。追跡済みの Codex アカウントは、再認証なしでローカルアカウントとしてワンクリック切り替え可能
  • Codex リセット予測 — 任意で有効にできるサードパーティのリセット予測。予測されるリセット時刻、リセットタイプ(Regular / Banked)、前回のリセット時刻を表示
  • 削除されたセッション使用量を保持 — 多くのツールは古いセッションを削除します(Claude Code はデフォルトで 30 日後にトランスクリプトを削除)。有効にすると、Token Monitor は観測済みの日別ツール/モデル使用量をローカルにアーカイブし、元ファイルが消えてもヒートマップとトレンドを維持します(下記 セッションデータの保持期間 を参照)
  • 使用トレンド & ダッシュボード — ホーム画面のアクティビティヒートマップ・トレンドチャート、連続日数・全デバイス横断のツール/モデル別累積使用(棒・K 線)専用ダッシュボードウィンドウ
  • 固定期間レンジ — ネイティブの日・月・累計に加えて、今週・過去 7 日・過去 30 日を切り替え可能
  • ステータスビュー(任意) — Claude、OpenAI、Cursor、DeepSeek のステータスページを手動/定期確認
  • データエクスポート — ツール非依存の CSV + JSON で手動エクスポートまたはフォルダへの自動書き込み(スプレッドシート、Obsidian、Grafana、スクリプト用);docs/export.md を参照
  • サブスクリプション記録 — 各 AI アカウントの実際の費用を手動で記録します。プランラベルのツールチップに料金、次回更新日または終了日、利用期間、当月の使用量コストが支払額の何倍かが表示され、定期プランとチャージ履歴のどちらにも対応

マルチデバイスとデプロイ

  • マルチデバイス同期 — Hub 同期は Server-Sent Events で数秒以内に他のデバイスへ反映。iCloud Drive 同期は eventual consistency
  • ローカルファースト — 単一デバイスではサーバー不要
  • セルフホスト同期 — ウィジェット内 hub、Node CLI hub、Cloudflare Worker
  • Headless agent — デスクトップアプリなしでサーバー、SSH ホスト、WSL の使用量を送信。Headless agent を参照
  • iOS ウィジェット — Worker hub + Widgy、Scriptable
  • プライバシー優先 — プロンプト、応答、ソースコード、ファイル内容はすべてデバイス内に保持

インターフェースと表示

  • ノッチパネル(macOS) — 実行中・待機中のセッションをノッチの横に表示(ノッチのない画面ではピル型で表示)。ホバーまたは下にスワイプすると、今日と過去 7 日間の使用量、全アカウントの制限の並列表示、進行中と最近のセッション、ツール/モデル別の内訳のページを開けます
  • エッジドック(macOS・Windows) — 画面の端で上限と使用量を確認でき、自動非表示、常時表示、「全画面時に自動非表示」の各モードを選べます。項目にホバーすると、各アカウントの上限、最近のセッション、トークン使用量をカードで表示します。設定で項目の選択、並べ替え、調整ができ、メニューバーまたはシステムトレイからオン/オフも切り替えられます
  • メニューバー (macOS) / システムトレイ (Windows) — コスト、トークン、または残量が最も少ないプロバイダー制限 % をアイコン横に表示
  • メニューバーのレイアウト編集 — メニューバーとフローティングバブルは内蔵プリセットのほか、「カスタム…」で自分で組み立て可能。AIツールアイコン、制限バー、パーセント、リセット時間、コスト、トークンレート、カスタムテキストを追加し、ライブプレビューを見ながらドラッグで並べ替え、項目ごとに AIツール・アカウント・制限期間・フォントを指定
  • フローティングバブル — ドラッグ可能なミニウィンドウ、クリック/ホバープレビュー
  • ネイティブ macOS ウィジェット — macOS 14 以降で、小・中・大サイズのレイアウトにトークン使用量とコスト、推移、AI ツールごとのクォータ残量とリセット時刻、アクティビティヒートマップ、ツール・モデル別の内訳を表示します
  • 内訳ビュー — ツール、デバイス、モデル、セッション、プロジェクト、アカウント制限別
  • 外観 — テーマ(ライトモード含む)、ツール別カラー、ガラス透明度・ぼかし、透明ウィンドウ、フォントのカスタマイズ
  • ツールリストのカスタマイズ — 追跡は維持したまま非表示、ピン留め、順序変更
  • グローバルショートカット — どこからでもウィンドウの表示/非表示
  • Discord Rich Presence — 本日のトークン・コスト・主要クライアント(オプトイン)

プラグイン(実験的)

デスクトップのページに独自のコンテンツを追加し、プラグインのページや設定を作成できます。Notch、Edge Dock、メニューバー/システムトレイ、フローティングバブルにもコンテンツを配置できます。作者は独自の UI と、データ取得や計算用の任意のローカル Node バックエンドを開発できます。

「設定 → プラグイン」で管理します。利用ガイド、コミュニティプラグイン、[開発ガイド](docs

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 12,621
Method 863
Class 247
Struct 77
Enum 41
Interface 3

Languages

TypeScript97%
Swift2%
C#1%

Modules by API surface

src/electron/renderer/app.js914 symbols
src/electron/main.js404 symbols
src/shared/collector.js130 symbols
src/electron/renderer/limits/windowsView.js122 symbols
tests/electron/notch.test.js119 symbols
src/shared/providers/claude/limits.js119 symbols
worker/src/shared/usage.js108 symbols
src/shared/usage.js108 symbols
src/electron/renderer/edgeDock/dock.js104 symbols
tests/electron/limitProviderPresentation.test.js98 symbols
src/electron/edgeDock/controller.js96 symbols
src/shared/providers/codex/limits.js89 symbols

Dependencies from manifests, versioned

@electron/asar3.4.1 · 1×
@electron/osx-sign1.3.3 · 1×
@eslint/compat2.1.1 · 1×
@eslint/js10.0.1 · 1×
c812.0.0 · 1×
chokidar4.0.3 · 1×
dotenv17.4.2 · 1×
electron45.2.1 · 1×
electron-builder26.18.1 · 1×
electron-updater6.8.12 · 1×
esbuild0.28.1 · 1×

For agents

$ claude mcp add token-monitor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page