跳到正文

CodexBar

Peter Steinberger and contributors · 从 macOS 菜单栏监控 AI 编程服务的配额、重置时间和使用费用。

Cask开发工具 2.3万
主页
安装命令
brew install --cask codexbar
近 30 天安装
3,318
App榜第 104
近一年安装
3.3万
365 天累计
最新版本
0.85.0
下载大小
89MB
zip
更新节奏
每天
近 30 天 5 个版本

介绍

CodexBar 由 Peter Steinberger 开发,是一款面向 AI 编码服务的使用量监控工具。它帮助开发者比较所使用提供商之间的可用配额、重置时间和支出。这是一个社区项目,并非 OpenAI 或 Anthropic 的官方客户端,也不提供 AI 订阅,自身不生成代码。

功能

  • 在 Mac 菜单栏中显示受支持提供商的使用量窗口和重置倒计时。
  • 在提供商提供相关读数时,跟踪余额和支出。
  • 查看本地 token 和成本历史记录,并对不可用或不完整的估算进行标注。
  • 监控提供商服务状态,并选择单独或合并的菜单图标。
  • 使用捆绑的命令行配套工具进行使用量和配置工作流。

安装与启动

使用 brew install --cask codexbar 安装,或解压官方 macOS ZIP 并将 CodexBar.app 移到 Applications。启动它并在 Settings 中启用你的提供商。按各集成文档所述的方法进行身份验证。该 cask 还会将捆绑的 CodexBarCLI 辅助工具链接为 codexbar。

要求与兼容性

macOS 应用需要 macOS 14 Sonoma 或更高版本。官方通用 ZIP 适用于 Intel 和 Apple Silicon Macs。当前 cask 未列出额外的 formula 依赖项或明确的冲突 cask。提供商集成仍可能需要它们自己的 CLI、账户凭据或本地应用数据;安装 CodexBar 不会安装或订阅每一个提供商。

该项目另行发布 Linux 桌面应用以及 macOS/Linux CLI 归档。其 Linux 桌面发行版要求 glibc 2.39+、Qt 6.4+、单独的 CLI,以及用于其安装器的 Python 3;它支持 X11 和 Wayland。选择正确的架构并遵循 Linux 安装指南。README 链接了一个使用 WSL2 的独立社区 Windows 托盘项目;那不是 macOS cask。从这些来源无法确定有第一方移动版本。Swift 6.2+ 是源码构建要求,并非安装预构建 Mac 版本所述的前提条件。

经验证的通用 0.73.0 ZIP 下载大小为 77,745,899 字节。这不是安装后占用的存储空间或累积历史记录大小。未确定固定的运行时 RAM 最低要求。官方 README 截图展示了一张 Claude 使用量卡片;其中显示的账户金额和配额是示例,并非优惠或你账户的读数。

账户、隐私、费用与许可

CodexBar 采用 MIT 许可,无需单独的应用订阅即可使用。AI 提供商账户、订阅和 API 使用仍受各提供商的收费和条款约束。配额可用性因提供商和账户而异;本地成本估算不一定等于最终账单。

对 cookies、tokens、本地日志或 Keychain 条目的访问取决于所选的集成。只启用你打算使用的集成,并查看其文档。不要假设每个提供商都使用相同的登录方法或凭据存储策略。

来源:官方带标签 README、Linux 安装、MIT 许可证、官方发布。

基本信息

价格
免费
系统要求
macOS 14 起
芯片
Apple 芯片 · Intel
自动更新
否
仓库
开源 · MIT · 1 天前更新★2.3万
开发者
Peter Steinberger and contributors
Homebrew
可以安装,由 Homebrew 更新
其他名称
codexbar
主页
codexbar.app
软件包标识符
codexbar

核查日期

0.85.0 更新内容

新版本 · 来自 GitHub Release

Highlights

  • Providers: new TrustedRouter key limits and spend, MiMo Token Plan quotas, Notion AI personal allowances, Google Developer Program credits, and DeepSeek Platform spend. Grok prepaid credits reach the menu bar, OpenAI API snapshots carry the legacy credit balance, Helmcode shows billing-period credit usage, and Amp enterprise workspaces load with their recorded cost.
  • Cost: Claude and Pi cost by session and project, Codex Ultrafast and Fast pricing, filled-in Claude model prices, and a Models view in Usage & Spend.
  • Less repeated work: Usage & Spend stops reloading on every refresh tick (about 85% less background CPU at a 1-minute interval in a local profile), Codex cost-cache saves no longer rewrite ~100 MB, cancelled refreshes stop early, and Claude OAuth and Muse Code avoid repeated background Keychain prompts.
  • Claude accounts, CLI and server: claude-swap Overview, Plan Usage, tabs and shared cost follow the presented account, codexbar serve honors allAccounts, dashboard --no-cost skips cost work, and unknown --provider values are rejected.

Added

  • MiMo: add a Token Plan API-key source for China and Singapore, showing reported quota and reset dates without browser access (#5124, #5138). Thanks @whisky0809!
  • Grok: show prepaid Extra Usage Credits in the menu bar Balance element, including a zero balance, while respecting the optional-credits preference (#5127, #5138). Thanks @therealdeadfwd!
  • OpenAI API: include the remaining legacy API credit balance in provider cost snapshots, including CLI JSON, for downstream balance displays (#5109). Thanks @fcakyon!
  • CLI: add codexbar dashboard --no-cost for quota-only snapshots that skip cost refreshes (#5121, #5137). Thanks @get6!
  • Linux: add a pinned compact state to Quick View (#5130). Thanks @WizLiang!
  • Plugins: show point labels, values, and units when hovering detail-chart bars (#5092). Thanks @tangwz!
  • Browser cookies: support Chrome Dev in the shared browser import order while preserving explicit Chrome selections (#5136).
  • Notion AI: show personal Standard and Select monthly allowances alongside the separate workspace Notion Credits balance, preserving legacy windows, exact billing periods, and optional-usage visibility (#2888, #4919, #5102). Thanks @fakepooh and @KennyNoDie!
  • TrustedRouter: show the API key's remaining limit and daily, weekly, monthly, and total spend through the official key endpoint, including reservation-aware remaining amounts and explicit zero-dollar limits (#5119). Thanks @jperla!
  • Usage & Spend: include community plugins' existing cost usage in statistics and sharing without extra dashboard fetches or mixed provider identities (#5084). Thanks @tangwz!
  • Google Developer Program: show the current monthly Gen AI & Cloud credit of Google AI Pro and Ultra from the benefits page, using the signed-in browser session and finding the Google account that holds the credit (#5033, #5035). Thanks @fcakyon!
  • Pi: group local cost by session and project in the cost-history menu, Usage & Spend, and codexbar cost --group-by session|project, with JSON project totals and a one-time history rebuild (#4930, #5025). Thanks @oryband!
  • Claude: group local cost by session and project in the cost-history menu, Usage & Spend, and codexbar cost --group-by session|project, counting copied responses once and rebuilding history once after upgrading (#4930, #5026). Thanks @oryband!
  • DeepSeek: show Platform spend in menu-bar cost elements and Usage & Spend, preserving the reporting period, currency, and unavailable measurements (#5057). Thanks @zhb161!
  • CLI: declare DeepInfra setup guidance with API-key alternatives, piped input, and saved-account priority (#5077). Thanks @vincent-peng!
  • CLI: declare ElevenLabs setup guidance, including API-key alternatives, subscription-read permission, and saved-account priority (#5020). Thanks @vincent-peng!
  • Usage & Spend: add a Models view grouped by currency, preserve partial-history warnings, and match shared cards to the current appearance (#4889, #4888). Thanks @Chipagosfinest!
  • CLI: expose provider-owned setup routes for Copilot, OpenAI API, and Azure OpenAI, with explicit unknown guidance for other providers (#4705, #4916). Thanks @Yuxin-Qiao!
  • Devin: fall back to the desktop app session after browser sources, using only an existing silent Keychain grant and never prompting (#4905). Thanks @kentoku24!

Fixed

  • Codex: price native Ultrafast usage at the published, date-aware rates and keep its tier through cached history (#5133, #5139). Thanks @janishahn!
  • Codex: limit retained cost reports to the requested history period without discarding the wider cached history (#5125). Thanks @Yuxin-Qiao!
  • Muse (muse.ai): restore subscription discovery with immutable Next.js chunks, including stale-action recovery (#5093, #5095, #5120). Thanks @AnsonZhang0129, @ericgitlub, and @Kenlsc!
  • OpenAI API: honor the configured organization for legacy API credit balances without leaking the organization selection between token accounts (#5123, #5135). Thanks @Josephur!
  • Antigravity: discover the agy CLI bundled with Gemini.app after the existing CLI locations and shell lookups (#5113, #5135). Thanks @MaTouNB!
  • Claude: keep account tabs in numeric slot order when switching accounts (#5117). Thanks @sfxsalem!
  • Claude: make Plan Usage follow the presented claude-swap account instead of stale ambient history (#5110). Thanks @davisonio!
  • Claude Platform: keep balance reporting when credit grant details exceed the display limit (#5115). Thanks @Yuxin-Qiao!
  • Storage: keep Claude OAuth and Antigravity session locks in the user Application Support directory (#5122, #5137). Thanks @mrh-is!
  • HTTP server: honor allAccounts on /usage, isolate cached responses per request shape, and preserve explicit Claude token-account selection (#5098, #5099, #5137). Thanks @djbclark!
  • Cost history: align the model-list scrollbar with the menu edge (#5116). Thanks @soohanpark!
  • Cursor: restore Automatic local spend fallback for Tokscale JSON caches, preserving event snapshot deduplication and Manual credential boundaries (#5090). Thanks @vincent-peng!
  • Amp: load enterprise-paid workspaces, which report no balance, instead of failing with “Missing Amp usage data”, and show their 30-day recorded cost with daily cost, token, and model history from amp usage --details in the cost chart and Usage & Spend (#5128). Thanks @gmmeyer!
  • Claude: show the combined local cost history once below claude-swap account cards, as Codex does for its shared spend; Claude accounts mapped to their own config directory keep per-account cost (#5089). Thanks @michael0903!
  • Providers: stop cancelled refreshes before loading or attempting another browser-session candidate (#5085). Thanks @Lucenx9!
  • Plugins: align community-provider card headers with built-in cards and give refresh an explicit accessibility label (#5086). Thanks @tangwz!
  • Menu bar: preserve the full-size leading provider icon beside both text rows in high-contrast custom layouts (#5041). Thanks @deinspanjer and @nunoh!
  • Claude: draw weekly-only plans as a single menu bar meter instead of an empty session lane above the weekly bar (#4914, #5040). Thanks @wizaj!
  • Codex cost: stop rewriting every archived (.jsonl.zst) rollout in the cost cache on each save, which wrote about 100 MB per save on stores with a few thousand archived sessions (#5049). Thanks @oldcai!
  • Droid: correct missing API-key instructions for piped input and modern or custom config locations (#5065). Thanks @vincent-peng!
  • Venice: show the fetched USD or DIEM balance when the API reports calls are blocked instead of the generic unavailable message (#5048, #5050). Thanks @harjothkhara and @djbclark!
  • TypeSafe: send the browser same-origin headers the billing overview API expects so valid sessions stop surfacing as expired (#4922, #5022). Thanks @LeoLin990405 and @johan456789!
  • SiliconFlow: restore China balances through the signed-in console when Web is explicitly selected, keeping Auto and API on the configured API key (#5023). Thanks @NOIPJohnny!
  • Usage & Spend: hide model spend shares when the selected period contains unpriced requests, retaining known amounts and shares for fully priced selected days (#5024). Thanks @Chipagosfinest!
  • MiniMax: recover expired automatic browser sessions without background prompts, while Manual and Off remain isolated from automatic browser fallback (#5027). Thanks @tangwz!
  • Menu bar: keep zero-value secondary quota meters aligned with populated meters, preserving the compact layout when credits are shown (#5029). Thanks @nunoh!
  • Muse (muse.ai): recover usage after stale server-action responses, including HTTP 409, by rediscovering the action once while retaining it on transient failures (#5051, #5030). Thanks @tarunravi and @TM-AIStudios!
  • Helmcode: show NaN billing-period credit usage instead of frozen token quotas, with per-model credit details and purchased credits kept separate from spending (#5044). Thanks @eavilaes!
  • Claude: fill missing model prices in local cost reports, including cache writes, and reprice retained usage without rescanning unchanged transcripts (#5054). Thanks @urda!
  • Muse Code: prevent background and settings Keychain prompts when the CLI's signing-team restrictions exclude CodexBar, preserving the existing manual-refresh allowance (#5069, #5055). Thanks @enieuwy and @pjmuller!
  • Linux: make Quick View tab meters follow the same used-or-remaining preference as detailed quota bars (#5063). Thanks @marcelohildebrand!
  • Codex: apply Fast rates to additional models, including long-context requests, and recalculate saved cost estimates without discarding history (#5067). Thanks @jslabxyz!
  • Notifications: keep the app responsive when the system notification service stalls during notification removal (#5076). Thanks @djbclark!
  • Claude: make the Overview card follow the account presented by claude-swap, including inspected accounts, while retaining provider-wide local costs (#5078). Thanks @davisonio!
  • Linux: keep plan labels on one line and format token counts without duplicate separators on Qt 6.4 (#5052, #5080). Thanks @WizLiang!
  • Menu bar: keep provider-colored icons full size beside both rows of eligible custom layouts (#5031, #5081). Thanks @elpinguinofrio!
  • Claude: prevent repeated background OAuth Keychain prompts after credential updates and share one manual repair allowance with a denial cooldown (#3798, #5082). Thanks @ttoswar, @mskonovalov, @mvicari, and @JacobNWolf!
  • CLI: reject unknown --provider values for usage, cost, and cards with an argument error instead of silently falling back to enabled providers (#5017, #5019). Thanks @coygeek and @harjothkhara!
  • Ollama: support legacy API session and weekly balances while preserving monthly credits. (#5005, #5006) Thanks @Colafornia!
  • Mistral: recover from expired sessions that redirect to sign-in instead of returning HTTP 401/403. (#5000, #5002) Thanks @enieuwy!
  • Cursor: keep Manual credentials and local cost history account-scoped, preserve explicit unified-pool evidence, and use the current login route. (#4998) Thanks @Chipagosfinest!
  • Claude: show Enterprise extra-usage limits in the provider switcher while preserving provider identity boundaries. (#4989) Thanks @jey3dayo!
  • Alibaba: read Team CLI seat quotas, retain browser fallback for unavailable credits, and recognize mainland Qwen aliases. (#5008) Thanks @yinjialu!
  • Share Stats: replace faint provider markers with recognizable provider icons in light and dark cards. (#5011) Thanks @Chipagosfinest!
  • Claude: finish the CLI /usage read as soon as a weekly-only plan's quota is drawn, instead of waiting out the 20-second probe timeout (#5066, #5070). Thanks @mjaverto!
  • Usage & Spend: stop reloading the shared dashboard, and rescanning Codex history, on every refresh tick when Grok, OpenAI API, OpenRouter, Mistral, xAI, DeepSeek, or OpenCode Go is enabled, including when DeepSeek or xAI report no spend analytics; unchanged spend no longer counts as a new source revision, cutting background CPU by about 85% at a 1-minute refresh interval in a local profile (#5071, #5141).
  • OpenCode Go: Auto waits at most 5 seconds for a large local history before returning remote quota, without showing partial history; without remote quota it still returns the local estimate, and the scan keeps warming the cache for a later refresh (#5060, #5062). Thanks @harjothkhara and @faresahmedbaianat-hash!

Changed

  • Codex cost: avoid decoding saved file details twice during local cost reads (#5108, #5137). Thanks @tkafka!
  • Dependencies: update SweetCookieKit 0.6.0, Commander 0.3.1, swift-crypto 5.1.2, swift-log 1.17.2, swift-asn1 1.7.4, and the release Sparkle signing tools 2.10.1 (#5136).
  • Docs: restore the README introduction to the complete provider list and point provider-status instructions to General → Refreshing (#5114, #5105). Thanks @davisonio and @nunoh!
  • Performance: reduce refresh work by preparing only the requested provider's settings instead of every provider's settings (#5083).
  • Claude: reduce local-history memory by sharing identical quota-event buffers while preserving independent reporting windows and cache validation (#5014).
  • Widgets: show provider logos and improve low-quota bar contrast without changing layouts or refresh behavior (#4887). Thanks @Chipagosfinest!

如何在 Mac 上安装 CodexBar

Homebrew 会把应用安装到“应用程序”文件夹。

不用 Homebrew 安装

直接下载 Homebrew 使用的同一个文件: 安装细节

卸载 CodexBar 与可选的数据清理

卸载命令
brew uninstall --cask codexbar

普通卸载会删除应用本身,设置和缓存会保留。

深度清理(可选)
卸载命令
brew uninstall --zap --cask codexbar

--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。

关于 CodexBar 的常见问题

CodexBar 安全吗?

CodexBar 收录在 Homebrew 官方软件库中,没有被停用。自 2026 年 9 月起,Homebrew 会停用没有通过 macOS Gatekeeper 检查的应用。安装时,Homebrew 会用 SHA-256 校验值核对来自 github.com 的安装包。过去 30 天,它通过 Homebrew 安装了 3,318 次。

CodexBar 免费吗?

是的,CodexBar 可以免费使用。来源:codexbar.app,核查于 2026年10月16日。

CodexBar 是开源软件吗?

CodexBar 的源代码公开在 GitHub 上(steipete/CodexBar),使用 MIT 许可证。

怎样在 Mac 上彻底卸载 CodexBar?

运行 brew uninstall --cask codexbar。它会退出应用。要连设置和缓存一起删除,运行 brew uninstall --zap --cask codexbar。--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。这会再删除 21 处文件和文件夹,包括 ~/.codexbar。

CodexBar 支持 Apple 芯片(M1 及更新)的 Mac 吗?

Apple 芯片和 Intel 芯片的 Mac 都能用 Homebrew 安装,两者使用同一个安装包。需要 macOS 14 或更高版本。

CodexBar 的设置和数据保存在哪里?

设置保存在 ~/Library/Preferences/com.steipete.codexbar.plist。数据保存在 ~/.codexbar、~/Library/Application Support/CodexBar和~/Library/Application Support/com.steipete.codexbar。这些位置来自 Homebrew 的清理清单。

CodexBar 的最新版本是多少?

最新版本是 0.85.0,Homebrew 收录于 2026年11月21日。运行 brew upgrade --cask codexbar 即可更新。

安装 CodexBar 还会装上什么?

还会装上 1 个命令行工具:codexbar。

相似应用

  • VSCodium社区构建的 MIT 许可 VS Code 二进制版,默认禁用核心遥测并使用 Open VSX 扩展。
  • Sentry CLI用于 Sentry 构件上传、发布管理及受支持的问题、日志、构建和快照工作流的命令行工具。
  • IntelliJ IDEAJava 和 Kotlin IDE,提供代码洞察、重构与调试;免费核心工具以及可选的 Ultimate 订阅功能。
  • Unity Hub安装 Unity Editor 版本和模块,整理项目,并管理模板和许可证。
查看更多