Kazuki Kuramochi1 downloadsShow remaining Codex and Claude subscription usage limits in the status bar.
Show remaining Codex and Claude subscription usage limits in the Obsidian desktop status bar. The display stays visible when you switch notes or hide your chat sidebar. No dependency on Claudian or another chat plugin.
This is an independent community project, not an official OpenAI, Anthropic, or Obsidian product. Community-directory submission and approval are separate from the GitHub release.
—, never a guessed 100% or an unlimited allowance.Example only (not live account data):
Codex 残り 5h:72% / 週:45% Claude 残り 5h:38% / 週:61%
The initial interface is primarily Japanese, with English access disclosures and enable switches. 残り means remaining, 週 means week, 未取得 means unavailable, 更新停止 means stale/failed update, and 再取得待ち means waiting for refreshed data.
account/rateLimits/read.codex.exe; a .cmd-only npm shim is not detected. Do not assume the macOS test results apply to other platforms.Until this plugin is approved in the community directory, use manual installation:
main.js, manifest.json, and styles.css from the same GitHub release..obsidian/plugins/ai-usage-status/ inside your vault.You do not need a separate core.js file. The release's main.js contains all runtime code.
※ means additional provider/model-specific windows exist; inspect the details before assuming every model has the same remaining allowance.Read this before enabling a provider. Enabling the plugin alone does not access credentials or query a provider. Per-provider consent flags are the only settings saved by this plugin, in Obsidian's plugin data.json.
PATH and standard installation locations outside the vault.codex app-server --stdio process with the vault as its working directory. It uses the CLI's existing authentication/configuration outside the vault and the CLI communicates with OpenAI's Codex/ChatGPT services to retrieve usage limits.account/rateLimits/read. It does not create a thread, read note contents, or send prompts. The Codex CLI controls its own configuration, authentication storage, and network behavior; review those settings independently./usr/bin/security to read Claude Code-credentials from your macOS Keychain. The Keychain entry can contain both access and refresh tokens; the plugin uses only the access token and does not refresh or rewrite the entry.CLAUDE_CONFIG_DIR), reads the existing .credentials.json in Claude Code's configuration directory outside the vault. An existing CLAUDE_CODE_OAUTH_TOKEN environment variable takes precedence.https://api.anthropic.com/api/oauth/usage, to retrieve your usage-limit percentages/reset times. It does not follow redirects or transmit tokens to this project's author.| Display / issue | Meaning / next step |
|---|---|
未接続 / Off |
Open the detail dialog and explicitly enable the desired provider. |
— |
The service did not supply that window, or its reset time has passed. Not equivalent to 100%. |
未取得 |
No successful response yet. Open details for a sanitized error and verify CLI installation/login. |
更新停止 |
Last update failed or is at least ten minutes old. Old numbers appear only in details, labeled as previous values. |
| Authentication error | Reauthenticate in the provider's CLI. The plugin does not modify login credentials. |
| Rate-limit error | Wait before trying again; do not repeatedly toggle the provider or force requests. |
| macOS permission prompt | Review the request yourself. The plugin needs access to the existing Claude Code Keychain item only if Claude is enabled. |
If reporting a problem, include your OS, Obsidian/CLI versions, and the sanitized error. Never include tokens, Keychain output, credential files, raw account responses, or personal vault content.
Requires Node.js 18+ for development. No package installation is necessary.
npm run check
npm test
npm run build
src/core.js contains normalization and read-only provider transports; src/main.js contains the Obsidian UI. scripts/build.cjs creates a readable, deterministic, single-file CommonJS bundle without downloading dependencies. Tests are offline and use synthetic data and mock processes; they do not contact providers or read credentials.
Release tags must exactly match manifest.json (for example 1.0.1, without a v prefix). Attach main.js, manifest.json, and styles.css to the release. Runtime files must not depend on files outside those three assets.
Obsidian最下部にCodex/Claudeの**契約利用枠の残り%**を常時表示します。ノート切替やClaudianの開閉には依存しません。最初は両方とも未接続です。表示をクリックし、認証情報の読取・通信先の説明を確認して、必要なサービスだけ有効にしてください。
クリックでリセット日時・最終取得日時・手動更新を表示し、約5分ごとに自動更新します。未提供の枠は —、失敗や古い値は「未取得/更新停止」として区別します。Claudeは非公開仕様に依存し、将来動かなくなる可能性があります。認証情報や残量をVaultへ保存せず、ノート内容を送信せず、AIの会話生成も行いません。
MIT, Copyright (c) 2026 KKuramochi.