2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Codeトークン使用量をリアルタイムに確認する方法🚀

Last updated at Posted at 2025-06-26

結論

Claude Code Usage Monitorが便利です!

image.png

流れ

まずはインストール!

# uvをインストール(まだの場合)
curl -LsSf https://astral.sh/uv/install.sh | sh

# ターミナルを再起動
exec $SHELL

# PyPIからインストール
uv tool install claude-monitor

# インストール確認
claude-monitor --help

Claude Codeでセッションを開始!

# 別ターミナルでClaude Codeを起動
claude

# Claude Codeでメッセージを送信(セッション開始のため)
> こんにちは!

Usage Monitorを起動!

# どのディレクトリからでも実行可能!
claude-monitor --timezone Asia/Tokyo

トークン使用量が見れます!🙌

✦ ✧ ✦ ✧ CLAUDE TOKEN MONITOR ✦ ✧ ✦ ✧
============================================================

📊 Token Usage:    🟢 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.1%

⏳ Time to Reset:  ⏰ [█████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░] 2h 25m

🎯 Tokens:         5 / ~7,000 (6,995 left)
🔥 Burn Rate:      0.1 tokens/min

🏁 Predicted End: 15:34
🔄 Token Reset:   04:00

⏰ 15:34:32 📝 Smooth sailing... | Ctrl+C to exit 🟨

📊 表示画面の項目について!

📊 Token Usage: 現在のトークン使用率
⏳ Time to Reset: セッションリセットまでの残り時間
🎯 Tokens: 使用済みトークン/制限値(残りトークン)
🔥 Burn Rate: 1分あたりのトークン消費率
🏁 Predicted End: 現在のペースでの使い切り予測の時間
🔄 Token Reset: 次のリセット時刻

おまけ(オプション設定・便利設定(エイリアス)など折り畳みました)

オプション設定

プラン

# Pro プラン(デフォルト・7,000トークン)
claude-monitor --plan pro

# Max5 プラン(35,000トークン)
claude-monitor --plan max5

# Max20 プラン(140,000トークン)
claude-monitor --plan max20

# 自動検出(過去の最大使用量から判定)
claude-monitor --plan custom_max

タイムゾーン設定

# 日本時間
claude-monitor --timezone Asia/Tokyo

# 米国東部時間
claude-monitor --timezone US/Eastern

# ロンドン時間
claude-monitor --timezone Europe/London

# UTC
claude-monitor --timezone UTC

カスタムリセット時間

# 朝9時にリセット
claude-monitor --reset-hour 9 --timezone Asia/Tokyo

# 深夜0時にリセット
claude-monitor --reset-hour 0 --timezone Asia/Tokyo

便利設定

# ~/.zshrc または ~/.bashrc に追加
echo 'alias cm="claude-monitor --timezone Asia/Tokyo"' >> ~/.zshrc
source ~/.zshrc

# 今後は短縮コマンドで実行
cm
cm --plan max20

アップデート

uv tool upgrade claude-monitor

アンインストール

uv tool uninstall claude-monitor

トラブルシューティング

No active session found エラー

Claude Codeでメッセージを送信してからUsage Monitorを起動してみてください!

終わりに

お読み頂きありがとうございました!
良いClaude Codeライフを!😁

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?