Questions, bug reports, and feature requests are welcome by email:
Email: [email protected]
If you already use the claude CLI, copy its token to the clipboard with:
security find-generic-password -s "Claude Code-credentials" -w | pbcopy
security is Apple's signed, built-in CLI. If a Keychain prompt appears, click Allow (AI Session Meter itself never touches the Keychain). Then open the popover, paste into the field, and press Save. It shows "Authenticated (auto-refresh)" and refreshes the token for you from then on. If a token expires and you see an error, run claude once to get a fresh session, copy the token again with the command above, and re-paste it via Update token in the popover.
Optional: paste a Claude Admin key (sk-ant-admin…) instead to track API spend, or set a custom Codex sessions folder in Settings if your logs aren't in the default ~/.codex/sessions (the app also honors the CODEX_HOME environment variable).
The usage endpoint that AI Session Meter reads requires a Claude Max or Pro subscription. Free accounts and API-only accounts cannot reach it, so the app cannot show usage for those accounts.
The usage endpoint throttles aggressive polling. On a 429 response, the app waits the server's Retry-After time (plus 60 seconds) and recovers automatically — there's no need to spam the refresh button.
There are two ways to get data on iPhone or iPad:
Codex stats and longer history always come from the Mac app via iCloud sync.
Public DMG distribution has been discontinued. Existing DMG installs keep working but no longer receive updates — install AI Session Meter from the Mac App Store to keep getting updates.
Go to System Settings → General → Login Items and add AI Session Meter.app.
AI Session Meter uses a private usage API and reads local CLI tokens/logs. Provider-side changes at Anthropic or OpenAI can break it until an app update ships.
ご質問・不具合報告は上記メールアドレスまで日本語でお送りいただけます。
メール: [email protected]
claude CLI を使っている場合、ターミナルで次を実行するとトークンがクリップボードにコピーされます。
security find-generic-password -s "Claude Code-credentials" -w | pbcopy
security は Apple 署名済みの標準 CLI です。Keychain 許可ダイアログが出たら 許可 を選択してください(AI Session Meter 本体は Keychain にアクセスしません)。コピーできたらポップオーバーを開いて入力欄に貼り付け、保存 を押します。「認証済み(自動更新)」と表示され、以降はアプリがトークンを自動更新します。トークン失効でエラーが出た場合は、claude を一度実行して新しいセッションを作り、上記コマンドで再度トークンをコピーして、ポップオーバーの トークン更新 から貼り直してください。
任意: 代わりに Claude の Admin キー(sk-ant-admin…)を貼ると今月の API 支出を表示できます。また、ログが既定の ~/.codex/sessions 以外にある場合は、設定で Codex セッションフォルダを指定できます(CODEX_HOME 環境変数も参照します)。
AI Session Meter が読み取る使用量エンドポイントには Claude Max または Pro のサブスクリプションが必要です。無料アカウントや API のみのアカウントではこのエンドポイントにアクセスできないため、使用量を表示できません。
使用量エンドポイントはポーリングを積極的に制限します。429 を受け取ると、サーバーの Retry-After(+60秒)だけ待って自動的に回復します。更新ボタンを連打しないでください。
データを表示する方法は2つあります。
Codex の統計や長期履歴は、常に Mac アプリから iCloud 同期で取得されます。
公開 DMG 配布は終了しました。インストール済みの DMG 版はそのまま動作しますが、今後のアップデートは提供されません。アップデートを受け取るには Mac App Store 版をインストールしてください。
システム設定 → 一般 → ログイン項目と機能拡張 で AI Session Meter.app を追加してください。
AI Session Meter は非公開 API を利用し、ローカルの CLI トークン/ログを読み取ります。そのため Anthropic や OpenAI 側の変更により、アプリの更新が出るまで一時的に動作しなくなることがあります。