Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Claude Usage

Alexander HerrmannAlexander Herrmann132 downloads

Shows your Claude subscription usage (5-hour and weekly windows) in the status bar.

Add to Obsidian
Claude Usage screenshot
  • Overview
  • Scorecard
  • Updates3

Disclaimer: This plugin is an independent community project and is not affiliated with, endorsed by or supported by Anthropic. It uses an undocumented endpoint of the Claude OAuth API that may change or stop working at any time without notice.

Obsidian plugin that shows your Claude subscription usage in the status bar: the 5-hour window, the weekly window and, if present, the weekly window for top-tier models.

The plugin reads the OAuth token from the Claude Code credentials file (or the login keychain on macOS) and uses it to query the usage endpoint. It never writes the token and never refreshes it itself.

Display

One 14px ring per window, followed by the percentage and the time left until reset (47m, 4h52m, 4d7h).

  • Below the warning threshold: neutral ring
  • At or above the warning threshold (default 75 %): ring in --text-warning
  • At or above the critical threshold (default 90 %): ring in --text-error plus a ⚠ glyph, so the state does not depend on colour alone

Hovering the status bar item shows all windows with their reset time and the timestamp of the last fetch. Clicking it shows the same values as a notice.

Requirements

  • Obsidian 1.13.0 or newer, desktop only
  • Claude Code installed and signed in via /login. The token needs the user:profile scope. A token from claude setup-token is not sufficient.
  • Linux and Windows: credentials file at ~/.claude/.credentials.json (path configurable in settings)
  • macOS: Claude Code stores the credentials in the login keychain (service Claude Code-credentials). The plugin reads them via /usr/bin/security; the file is only a fallback. If macOS asks for keychain access, choose "Always Allow".

Installation

Manual:

  1. Copy main.js, manifest.json and styles.css to <Vault>/.obsidian/plugins/claude-usage/
  2. Reload Obsidian and enable the plugin under Community plugins

Via BRAT: add eightk1ll/obsidian-claude-usage as a beta plugin.

Settings

Option Default Meaning
Credentials path ~/.claude/.credentials.json File the token is read from (Linux, Windows; fallback on macOS)
Poll interval 15 minutes Time between two API requests
Warning threshold 75 % Ring switches to warning colour
Critical threshold 90 % Ring switches to error colour plus glyph
Show time until reset on Countdown next to the percentage

The command Refresh usage now in the command palette triggers a manual fetch.

Error handling and backoff

Errors that do not resolve on their own (expired token, 401, 403, 429, network errors) put the plugin on hold. The hold grows with each consecutive failure: 15, 30, 60, 120, 240 minutes. A Retry-After header from the server extends the hold but never shortens it. The hold also applies to manual refreshes.

The backoff state is persisted in data.json, so restarting Obsidian does not reset it. Without this, a permanent error would produce hundreds of requests overnight and trigger a 429 on its own.

An expired token is detected before the request is sent and shown as a hint. The fix in all cases: run claude and execute /login.

Why these permissions

Obsidian's automated review flags three behaviours. All of them are needed for the plugin to work:

  • Filesystem access (fs): reads ~/.claude/.credentials.json on Linux and Windows. Nothing is written.
  • Shell execution (child_process): on macOS only, runs /usr/bin/security find-generic-password -s "Claude Code-credentials" -w to read the token from the login keychain. No other command is executed, and only on darwin.
  • Network: one request to api.anthropic.com/api/oauth/usage per poll interval.

Privacy

  • The token is read from the local credentials file or the macOS login keychain only. It is sent exclusively to api.anthropic.com as a bearer header.
  • No telemetry, no third-party services, no data stored outside data.json in the plugin folder.
  • Network access is limited to the usage endpoint listed below.

Technical notes

  • The usage endpoint is not part of Anthropic's public API. Expect breakage after upstream changes; the plugin fails closed (shows Claude ?, backs off) instead of retrying aggressively.
  • Endpoint: https://api.anthropic.com/api/oauth/usage with header anthropic-beta: oauth-2025-04-20
  • Requests go through requestUrl from the Obsidian API
  • No build step: main.js runs as is, no dependencies beyond the Obsidian API

License

MIT

HealthExcellent
ReviewSatisfactory
About
Display Claude subscription usage in the status bar, showing the 5-hour, weekly, and (when present) top‑tier weekly windows. Show a 14px progress ring per window with percentage and time until reset, switch ring color at warning/critical thresholds, and reveal full details on hover or click.
Status barAIIntegrations
Details
Current version
1.3.0
Last updated
Last week
Created
2 weeks ago
Updates
3 releases
Downloads
132
Compatible with
Obsidian 1.13.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
Alexander HerrmannAlexander Herrmanneightk1ll
GitHubeightk1ll
  1. Community
  2. Plugins
  3. Status bar
  4. Claude Usage

Related plugins

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Smart Composer

AI chat with note context, smart writing assistance, and one-click edits for your vault.

Claude Sidebar

Run Claude Code in your sidebar.

Claude Code IDE

Connect your vault to Claude Code and share editor context with the CLI.

Snipd Official

Sync Snipd podcast highlights to your vault with transcript, notes, AI summaries and metadata.

Plaud Sync

Sync Plaud voice recordings into Markdown notes with transcripts, AI summaries, and highlights.

BRAT

Easily install a beta version of a plugin for testing.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.