CodexBar
AGENTS.md22k starsChanged 5 months agoMITView on GitHub
- Reads credentials
Trending
More talk lately.about the whole repository
Who's talking about steipete/CodexBar
- @midu.dev“¡Esta app del creador de OpenClaw es brutal! CodexBar te muestra del uso de tus suscripciones: ✓ Disponible …”Bluesky · Feb 1, 2026 · 23 likes
- @anon5r.com“ステータスバーに常駐して各種エージェントの残トークン数を視覚化してくれるOSSアプリ、いいね。 github.com/steipete/Cod... brew install --cask …”Bluesky · Feb 26, 2026 · 13 likes
- baanish/CodexBar“Show Grok pace for late-cycle credit windows”GitHub · Jul 25, 2026 · 4 reactions
- @midu.dev“¡Esta app del creador de OpenClaw es brutal! CodexBar te muestra del uso de tus suscripciones: ✓ Disponible …”Bluesky · Jul 11, 2026 · 4 likes
- @samhh.com“I was going to contribute and then discovered this (FYI): github.com/steipete/Cod...”Bluesky · Apr 10, 2026 · 3 likes
The biggest 5 of 65 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 65
Talked about on GitHub, Bluesky and the web (65 times).
On GitHub · 50
- Jul 25, 2026Show Grok pace for late-cycle credit windows — baanish/CodexBar4 reactions · 1 comment
- Jun 8, 2026[Feature Request] Provide a Bearer-authenticated, real-time aggregated usage / quota API for third-party tools (e.g. CodexBar) — deepseek-ai/awesome-deepseek-integration2 reactions · 2 comments
- Oct 12, 2026feat(notion): add Notion Credits support — fakepooh/CodexBar1 reaction · 9 comments
- Oct 10, 2026Add strict descriptor-anchored current Local Storage reads — steipete/SweetCookieKit1 reaction · 3 comments
- Oct 10, 2026fix: select current Chromium LevelDB records by sequence — steipete/SweetCookieKit1 reaction · 2 comments
45 more on GitHub
- Oct 5, 2026Parse optional Codex remaining credits — MEK-Org/rusa1 reaction · 5 comments
- Oct 2, 2026[Feature]: Expose Codex reset-credit inventory and expiry dates through usage APIs — openclaw/openclaw1 reaction · 2 comments
- Sep 15, 2026Check and update also the codexbar CLI — Lucenx9/codexbar-plasma1 reaction
- Sep 5, 2026Deprecated `verified` param in `url` stanza (Casks/codexbar.rb:5) — steipete/homebrew-tap1 reaction · 1 comment
- Aug 24, 2026[Feature]: Add Virtual Key self-service usage analytics endpoint — maximhq/bifrost1 reaction
- Aug 20, 2026[macOS 27] Settings menu silently fails in 0.52.0.1 — o1xhack/CodexBar-Mobile1 reaction · 2 comments
- Aug 14, 2026Homebrew formula doesn't install CodexBar_CodexBarCore.bundle, breaking all JS-based providers (zai, openai, xai, …) — steipete/homebrew-tap1 reaction · 2 comments
- Aug 11, 2026feat: add authenticated in-app updates with Sparkle — Chalet-Labs/portu1 reaction · 2 comments
- Jul 16, 2026上游同步:steipete/CodexBar 已发布 v0.43.0(当前基线 v0.41.0) — o1xhack/CodexBar-Mobile1 reaction
- Jul 4, 2026fix(apply): reconcile labels after re-review commands — openclaw/clawsweeper1 reaction · 7 comments
- Jul 3, 2026Command Code manual cookies with commandcode_prod session names are rejected as NoCookies — nesszer/Win-CodexBar1 reaction · 2 comments
- Jun 11, 2026Fix stale waiting-on-author label after maintainer-review verdict — openclaw/clawsweeper1 reaction · 2 comments
- Mar 4, 2026docs(skills): add Linux install instructions for model-usage skill — openclaw/openclaw1 reaction · 4 comments
- Jan 28, 2026Add Codex Usage — raycast/extensions1 reaction · 11 comments
- Jan 28, 2026Add CodexUsage extension — raycast/extensions1 reaction · 5 comments
- Jan 28, 2026Add CodexUsage extension — raycast/extensions1 reaction · 4 comments
- Jan 27, 2026Add CodexUsage extension" — raycast/extensions1 reaction · 4 comments
- Jan 27, 2026Codex Usage Extension — raycast/extensions1 reaction · 3 comments
- Jan 24, 2026More optimized UI — craft-ai-agents/craft-agents-oss1 reaction · 2 comments
- Jan 21, 2026[Bug]: CodexBar keeps on prompting for credentionals info every 10 mins — openclaw/openclaw1 reaction · 2 comments
- Jan 13, 2026Add detector for Z.ai API keys — trufflesecurity/trufflehog1 reaction · 1 comment
- Oct 31, 2026agent-skills.github.steipete.codexbar: 0.82.0 → 0.83.0 — sudosubin/agents.nix0 reactions
- Oct 29, 2026Antigravity: Mimir her 5 dakikada `agy` çalıştırırken `agy`nin otomatik güncellemesini kapatmıyor (bir kullanıcıda ayda ~2 GB indirme) — erayendes/mimir0 reactions · 1 comment
- Oct 28, 2026Cursor reads its session encrypted at rest (decision 67) — juanpa-a/burnie0 reactions
- Oct 27, 2026Fix Linux archived rollout mirror publication — BananaIIya/CodexBar-fork0 reactions
- Oct 27, 2026docs: link the BarPeek iPhone app in Phone & web — imknight/CodexBar0 reactions
- Oct 27, 2026agent-skills.github.steipete.codexbar: 0.81.0 → 0.82.0 — sudosubin/agents.nix0 reactions
- Oct 24, 2026agent-skills.github.steipete.codexbar: 0.80.0 → 0.81.0 — sudosubin/agents.nix0 reactions
- Oct 23, 2026agent-skills.github.steipete.codexbar: 0.79.0 → 0.80.0 — sudosubin/agents.nix0 reactions
- Oct 21, 2026agent-skills.github.steipete.codexbar: 0.78.0 → 0.79.0 — sudosubin/agents.nix0 reactions
- Oct 20, 2026Add codexbar label — Installomator/Installomator0 reactions
- Oct 20, 2026REA: CodexBar → read-only provider capacity observation donor — rrahul0904/agent-work-os0 reactions
- Oct 19, 2026agent-skills.github.steipete.codexbar: 0.77.0 → 0.78.0 — sudosubin/agents.nix0 reactions
- Oct 16, 2026agent-skills.github.steipete.codexbar: 0.76.0 → 0.77.0 — sudosubin/agents.nix0 reactions
- Oct 15, 2026codexbar: 0.65.0 -> 0.76.0 — NixOS/nixpkgs0 reactions · 1 comment
- Oct 15, 2026agent-skills.github.steipete.codexbar: 0.75.0 → 0.76.0 — sudosubin/agents.nix0 reactions
- Oct 15, 2026[Coffee] External caffeinate processes appear as Coffee Until sessions — raycast/extensions0 reactions · 6 comments
- Oct 14, 2026feat(apps): install Bitwarden and CodexBar on macOS — clarriu97/dotfiles0 reactions
- Oct 14, 2026agent-skills.github.steipete.codexbar: 0.74.1 → 0.75.0 — sudosubin/agents.nix0 reactions
- Oct 13, 2026agent-skills.github.steipete.codexbar: 0.72.0 → 0.74.1 — sudosubin/agents.nix0 reactions
- Oct 12, 2026Show Devin extra-usage balance in the overview and provider tab — stealth-factory/opscope0 reactions · 1 comment
- Oct 11, 2026CI check for steipete/CodexBar#4437 (not for merge) — mjaverto/CodexBar0 reactions · 1 comment
- Oct 5, 2026Fix AI capacity labels and preserve named provider allowances — silas00301/seele-shell0 reactions · 2 comments
- Oct 5, 2026fix(cost): preserve partial Codex daily subtotals — luochen211/CodexBar0 reactions
- Oct 5, 2026agent-skills.github.steipete.codexbar: 0.71.1 → 0.72.0 — sudosubin/agents.nix0 reactions
On Bluesky · 11
- Feb 1, 2026¡Esta app del creador de OpenClaw es brutal! CodexBar te muestra del uso de tus suscripciones: ✓ Disponible en macOS y Windows ✓ Uso… — @midu.dev23 likes and reposts
- Feb 26, 2026ステータスバーに常駐して各種エージェントの残トークン数を視覚化してくれるOSSアプリ、いいね。 github.com/steipete/Cod... brew install --cask steipete/tap/codexbar でインストールできるとのこと。 — @anon5r.com13 likes and reposts
- Jul 11, 2026¡Esta app del creador de OpenClaw es brutal! CodexBar te muestra del uso de tus suscripciones: ✓ Disponible en macOS y Windows ✓ Uso… — @midu.dev4 likes and reposts
- Apr 10, 2026I was going to contribute and then discovered this (FYI): github.com/steipete/Cod... — @samhh.com3 likes and reposts · 1 reply
- Jul 5, 2026📦 steipete / CodexBar ⭐ 15,953 (+98) 🗒 Swift Show usage stats for OpenAI Codex and Claude Code, without having to login. — @github-trending.bsky.social1 likes and repost
6 more on Bluesky
- Apr 15, 2026CodexBar is pretty cool to monitor LLM usage. What I like best, is that it doesn't require access to tokens and keychains - it can use the… — @andri.dk1 likes and repost
- Feb 2, 2026steipete/CodexBar Show usage stats for OpenAI Codex and Claude Code, without having to login. CodexBar 🎚️ - May your tokens never run out.… — @archlinux.activitypub.awakari.com.ap.brid.gy1 likes and repost
- Dec 23, 2025This might work for you github.com/steipete/Cod... — @michaelesteves.bsky.social1 likes and repost
- Aug 24, 2026GitHubを読むと、道具そのものはかなり堅実。CLI、OAuth、APIキー、ブラウザCookie、ローカルログなど、各サービスが出せる情報を集め、使用枠やリセット時刻を並べる。MITライセンスで、macOS 14以降が対象。… — @sara-echosphere.bsky.social0 likes and reposts · 1 reply
- Jul 15, 2026ただし公式READMEは、各プロバイダを有効化し、CLI・OAuth・ブラウザCookie・APIキー・ローカルファイルなど、必要な認証源を用意する設計。macOS版は14+で、一部の取得経路は実験的。59社対応は「同じ設定で59社」ではない。… — @nemu-echosphere.bsky.social0 likes and reposts · 1 reply
- Feb 27, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 steipete / CodexBar ⭐ 6,945 (+377) 🗒 Swift Show usage stats for OpenAI Codex and Claude Code,… — @github-trending.bsky.social0 likes and reposts · 1 reply
On the web · 4
- Oct 24, 2026CodexBar download — sourceforge.net
- Sep 24, 2026CodexBar - Swift Package Registry — swiftpackageregistry.com
- May 7, 2026Monitor Your AI Coding Assistant Usage Limits on macOS with ... — ask.eng.umd.edu
- Feb 2, 2026steipete/CodexBar 2026 — m.vk.ru
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- docs/claude.mdCLAUDE.md
- docs/llms.txtllms.txt
- codexbarSkill
- qa-testSkill
- release-codexbarSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Add/extend XCTest cases under Tests/CodexBarTests/*Tests.swift (FeatureNameTests with test_caseDescription methods).
- Very specific: line 23
Always run make test before handoff.
- Very specific: line 24
After any code change, run make check and fix all reported format/lint issues before handoff.
- Very specific: line 25
Prefer CLI/focused tests over app-bundle live tests when behavior can be verified without relaunching CodexBar.
- Very specific: line 26
Never run tests/checks or ad-hoc validation that can display macOS Keychain prompts.
- Distinctive: line 31
Commit messages: short imperative clauses (e.g., “Improve usage probe”, “Fix icon dimming”).
- Distinctive: line 35
Use the provided scripts and package manager (SwiftPM).
- Very specific: line 40
Run ./Scripts/compile_and_run.sh only when UI/runtime behavior needs bundle-level validation.
- Very specific: line 45
Prefer modern SwiftUI/Observation macros: use @Observable models with @State ownership and @Bindable in views.
- Distinctive: line 47
Keep provider data siloed: when rendering usage or account info for a provider (Claude vs Codex), never display identity/plan fields …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Project Structure & Modules
Sources/CodexBar: Swift 6 menu bar app (usage/credits probes, icon renderer, settings). Keep changes small and reuse existing helpers.Tests/CodexBarTests: XCTest coverage for usage parsing, status probes, icon patterns; mirror new logic with focused tests.Scripts: build/package helpers (package_app.sh,sign-and-notarize.sh,make_appcast.sh,build_icon.sh,compile_and_run.sh). Release wrappers callScripts/mac-release, which resolvesMAC_RELEASE_TOOLor the sharedagent-scriptscheckout.docs: release notes and process (docs/RELEASING.md, screenshots). Root-level zips/appcast are generated artifacts—avoid editing except during releases.
Build, Test, Run
- Dev loop:
./Scripts/compile_and_run.shkills old instances, builds, packages, relaunchesCodexBar.app, and confirms it stays running; add--testfor the sharded full suite. - Quick build/test:
swift build(debug) orswift build -c release;make testfor the sharded full suite. - Package locally:
./Scripts/package_app.shto refreshCodexBar.app, then restart withpkill -x CodexBar || pkill -f CodexBar.app || true; cd /Users/steipete/Projects/codexbar && open -n /Users/steipete/Projects/codexbar/CodexBar.app. - Release flow:
./Scripts/release.sh; app metadata lives in.mac-release.env, repo build/signing stays inScripts/sign-and-notarize.sh, and validation steps live indocs/RELEASING.md.
Coding Style & Naming
- Enforce SwiftFormat/SwiftLint: run
swiftformat Sources Testsandswiftlint --strict. 4-space indent, 120-char lines, explicitselfis intentional—do not remove. - Favor small, typed structs/enums; maintain existing
MARKorganization. Use descriptive symbols; match current commit tone.
Testing Guidelines
- Add/extend XCTest cases under
Tests/CodexBarTests/*Tests.swift(FeatureNameTestswithtest_caseDescriptionmethods). - Swift Testing: prefer backticked sentence names; no camelCase.
- Model names in tests/code: released models or clearly fictitious names only; never expose unreleased names.
- Always run
make testbefore handoff; add focusedswift test --filter ...runs for parser/provider fixes when possible. - After any code change, run
make checkand fix all reported format/lint issues before handoff. - Prefer CLI/focused tests over app-bundle live tests when behavior can be verified without relaunching CodexBar.
- Never run tests/checks or ad-hoc validation that can display macOS Keychain prompts. Live provider probes, browser-cookie imports,
codexbar usageagainst real accounts, and real SecItem reads must be explicitly requested; otherwise use parser tests, stubs, test stores, orKeychainNoUIQuery. - App-group migration tests must inject dictionary-backed defaults, both snapshot URLs, a synthetic home, and a contained recording FileManager. UUID defaults suites and Keychain isolation flags do not isolate defaults search domains or filesystem access. Ordinary SettingsStore tests must not discover shared defaults or run app-group migration.
- macOS CI is brittle around headless AppKit status/menu tests. Prefer covering menu behavior through stable state/model seams (
MenuDescriptor,ProvidersPane,CodexAccountsSectionState, etc.) instead of constructing liveNSStatusBar/NSMenuflows unless the AppKit wiring itself is the thing under test.
Commit & PR Guidelines
- Commit messages: short imperative clauses (e.g., “Improve usage probe”, “Fix icon dimming”); keep commits scoped.
- PRs/patches should list summary, commands run, screenshots/GIFs for UI changes, and linked issue/reference when relevant.
Agent Notes
- Use the provided scripts and package manager (SwiftPM); avoid adding dependencies or tooling without confirmation.
- Menu bar automation: capture the target screen first and verify the CodexBar icon is visibly onscreen. Reject
click-extrasuccess when coordinates fall outside display bounds; hidden menu extras are not click proof. - Validate UI/runtime behavior against the freshly built bundle; restart via the pkill+open command above to avoid running stale binaries.
- To guarantee the right bundle is running after a rebuild, use:
pkill -x CodexBar || pkill -f CodexBar.app || true; cd /Users/steipete/Projects/codexbar && open -n /Users/steipete/Projects/codexbar/CodexBar.app. - For CLI-testable provider/parser/settings behavior, use CLI/focused tests instead of
Scripts/package_app.shor./Scripts/compile_and_run.sh. - Run
./Scripts/compile_and_run.shonly when UI/runtime behavior needs bundle-level validation; it builds, tests, packages, relaunches, and verifies the app stays running. - Widget/Tahoe UI issues: use Parallels macOS VM plus screenshots/clicks for autonomous verification.
- Release script: keep it in the foreground; do not background it—wait until it finishes.
- Sparkle release key: use
.mac-release.envMAC_RELEASE_SIGNING_KEY_FILE, the legacyAGCY8w5vHirVfGGDGc8Szc5iuOqupZSh9pMj/Qs67XI=key. Do not usesparkle-private-key-KEEP-SECURE.txt; that is VibeTunnel's mismatched key. - Swift concurrency: treat sibling
async lettasks as a review red flag when one child is required and another is optional/best-effort. Prefer sequential awaits or a drainedwithThrowingTaskGroupthat surfaces required failures and explicitly contains optional failures; crash stacks mentioningswift_task_deallocorasyncLet_finish_after_task_completionshould trigger an audit of nearbyasync letusage. - Prefer modern SwiftUI/Observation macros: use
@Observablemodels with@Stateownership and@Bindablein views; avoidObservableObject,@ObservedObject, and@StateObject. - Favor modern macOS 15+ APIs over legacy/deprecated counterparts when refactoring (Observation, new display link APIs, updated menu item styling, etc.).
- Keep provider data siloed: when rendering usage or account info for a provider (Claude vs Codex), never display identity/plan fields sourced from a different provider.
- Claude CLI status line is custom + user-configurable; never rely on it for usage parsing by default. A user-enabled, opt-in statusLine JSON feed is permitted as an explicit data source (owner ruling, #2733): it must be off by default, clearly labeled as sourced from the user's own statusLine config, and fail soft when the format drifts.
- Cookie imports: default Chrome-only when possible to avoid other browser prompts; override via browser list when needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

