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

Codex Usage

0libots0libots28 downloads

Display CodexBar-style AI coding usage data inside Obsidian using managed local helpers.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates15

An Obsidian plugin for displaying CodexBar-style AI coding usage data using managed local helpers.

This is an independent project. It is not an official CodexBar, Win-CodexBar, Obsidian, or OpenAI project.

Status and platforms

The MVP supports Obsidian Desktop on macOS arm64/x64 and Windows x64. It is desktop-only because managed executables require Node/Electron APIs unavailable to Obsidian Mobile.

The plugin shows a compact status-bar summary and a customizable dashboard. Quotas, credits, cost, tokens, and pace form the clean default; account identity, helper metadata, every normalized field, and raw output can be enabled in settings. Quotas can display remaining or used capacity.

The last successful snapshot is stored locally and displayed immediately on startup. Each successful refresh also writes a limited Codex Usage/Dashboard.md note so the current summary remains readable through normal vault sync on Windows and mobile. Raw output, logs, and credentials are excluded from that note.

Managed helper 0.38.1 packages are published separately for all supported targets and pinned by SHA-256 in the bundled manifest.

Managed helpers

Users explicitly choose Install Helper or Update Helper. The plugin then:

  1. selects the package for the current platform;
  2. downloads it from the controlled URL in helpers/manifest.json;
  3. verifies its SHA-256 checksum;
  4. extracts it into the platform-native Codex Usage application-data directory;
  5. runs it locally through its dedicated adapter.

Helpers are never silently updated. The dashboard currently queries Codex only. Provider-specific fields are retained in raw. Provider setup entered in Obsidian is written directly to the CLI's device-local configuration and is never synced.

See Provider setup for managed CLI paths, provider authentication, diagnostics, and cross-device behavior.

Development

Requires Node.js 20 or newer.

npm ci
npm test
npm run build

Copy or symlink this repository into:

<vault>/.obsidian/plugins/codex-usage

Ensure main.js, manifest.json, and styles.css are present, enable community plugins, then enable Codex Usage for Obsidian.

Releases

Push a semantic-version tag such as 0.2.0 or v0.2.0. release.yml removes an optional v, synchronizes package.json, package-lock.json, manifest.json, and versions.json, commits changed metadata to the default branch, runs tests/checks/build, attests main.js, manifest.json, and styles.css, and creates or updates the normalized release tag. Helper binaries remain in separate helper releases.

The daily helper watcher checks steipete/CodexBar and Finesssee/Win-CodexBar. For an unambiguous upstream CLI asset it builds a candidate package, calculates SHA-256, uploads it to a draft helper release, updates compatibility metadata, runs checks, and opens a pull request. It never auto-merges. A reviewer must test each target and publish the helper release.

Troubleshooting

  • Helper missing: Open plugin settings and choose Install Helper.
  • Manifest unavailable: Confirm GitHub is reachable and the plugin version includes a published helper manifest.
  • Checksum failed: The helper is not executed. Report the release URL and checksum.
  • Command or parse failure: Run Diagnostics, inspect Raw Output, and check Obsidian’s developer console.
  • Provider setup: Follow the managed CLI provider guide.
  • Logs: Use Open Logs in plugin settings. Logs are stored beside the helper in the platform-native application-data directory and never written into notes.
  • Application data: macOS uses ~/Library/Application Support/Codex Usage/; Windows uses %LOCALAPPDATA%\Codex Usage\. The limited cross-device dashboard is stored at Codex Usage/Dashboard.md inside the vault.
  • Stale usage: A refresh failed and the last successful cache entry is being shown with a warning.

Security and attribution

See SECURITY.md. Downloaded executables, caches, raw output, and logs remain in platform-native application data. Only the generated summary note is written into the vault.

CodexBar and Win-CodexBar are separate upstream projects with their own licences. Any redistributed helper release must include its exact upstream licence and notice files under helpers/licences/; this repository does not claim ownership of those components.

The Codex Usage plugin source is available under the MIT License.

HealthExcellent
ReviewSatisfactory
About
Display CodexBar-style AI coding usage and cost in a compact status-bar and an expandable dashboard with session/weekly usage, account/cost data, cache age, helper info, warnings, and raw output. Store the last snapshot locally for instant startup and run managed helpers on demand with explicit install and SHA‑256 checks.
AIStatus bar
Details
Current version
0.2.3
Last updated
Yesterday
Created
2 days ago
Updates
15 releases
Downloads
28
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
0libots0libots0libote
GitHub0libote
  1. Community
  2. Plugins
  3. AI
  4. Codex Usage

Related plugins

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Copilot

Your AI Copilot: Chat with Your Second Brain, Learn Faster, Work Smarter.

Agent Client

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

Text Generator

Generate text content using GPT-3 (OpenAI).

Smart Composer

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

HiNote

Add comments to highlighted notes, use AI for thinking, and flashcards for memory.

Semantic Notes Vault MCP

Give Claude Desktop and other AI assistants semantic access to your notes through a built-in Model Context Protocol (MCP) server.

Khoj

An AI personal assistant for your digital brain.

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.