0libots28 downloadsDisplay CodexBar-style AI coding usage data inside Obsidian using managed local helpers.
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.
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.
Users explicitly choose Install Helper or Update Helper. The plugin then:
helpers/manifest.json;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.
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.
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.
~/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.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.