<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>MacOS on RockB</title><link>https://baeseokjae.github.io/tags/macos/</link><description>Recent content in MacOS on RockB</description><image><title>RockB</title><url>https://baeseokjae.github.io/images/og-default.png</url><link>https://baeseokjae.github.io/images/og-default.png</link></image><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 02 Aug 2026 13:01:55 +0000</lastBuildDate><atom:link href="https://baeseokjae.github.io/tags/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>TokenBar: AI Token Usage and Quota Monitor for macOS Menu Bar — Tracks 25+ Agents Locally</title><link>https://baeseokjae.github.io/posts/tokenbar-macos-token-monitor-ai-agents-2026/</link><pubDate>Sun, 02 Aug 2026 13:01:55 +0000</pubDate><guid>https://baeseokjae.github.io/posts/tokenbar-macos-token-monitor-ai-agents-2026/</guid><description>TokenBar is a free open-source macOS menu bar app that tracks AI token usage across 25+ coding agents locally with zero telemetry.</description><content:encoded><![CDATA[<p>TokenBar is a free, open-source macOS menu bar application that tracks AI token usage and API spending across 25+ coding agents entirely on your local machine. Built as a native Swift rewrite of the earlier Tauri-based tokcat, TokenBar gives developers real-time visibility into how many tokens Claude Code, Codex, Cursor, Copilot, Gemini CLI, and two dozen other agents consume — without sending any data to external servers or requiring an account.</p>
<h2 id="what-is-tokenbar--overview-of-the-macos-menu-bar-ai-token-monitor">What Is TokenBar? — Overview of the macOS Menu Bar AI Token Monitor</h2>
<p>TokenBar lives in your macOS menu bar and displays live token usage statistics for every AI coding agent you run. Instead of guessing how much you spend on API calls each month or discovering overages only when your bill arrives, TokenBar shows you per-agent token counts, dollar costs, and quota pace projections at a glance. The app is developed by Nanako0129 and is available on GitHub under the MIT license, with 215 stars and 20 forks as of August 2026.</p>
<p>The core value proposition is simple: developers using multiple AI coding assistants have no unified way to track their total token consumption. Each agent — Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Copilot Desktop, and others — logs usage independently. TokenBar aggregates all of them into a single menu bar dashboard with seven configurable &ldquo;lenses&rdquo; that let you switch between views like per-agent breakdowns, time-window summaries, and global leaderboard comparisons powered by the tokscale network.</p>
<h2 id="key-features--25-agents-7-lenses-3d-graph-liquid-glass-quota-cards">Key Features — 25+ Agents, 7 Lenses, 3D Graph, Liquid Glass, Quota Cards</h2>
<p>TokenBar packs an unusually rich feature set for a menu bar utility. Here is what sets it apart:</p>
<p><strong>25+ Agent Support.</strong> TokenBar tracks Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Copilot Desktop, and over 20 other AI coding agents. This is the widest agent coverage of any free menu bar token monitor. By comparison, CodexBar — the most popular alternative with 19,492 stars — only supports Codex and Claude Code.</p>
<p><strong>Seven Dashboard Lenses.</strong> The app ships with seven viewing modes called lenses: Per-Agent, Time Window, Global Leaderboard, Session Detail, Cost Breakdown, Quota Pace, and Activity Timeline. Each lens reorganizes the same local data to answer a different question — which agent spent the most today, how your quota is pacing against your monthly limit, or where tokens went in the last session.</p>
<p><strong>SceneKit 3D Graph at 160fps.</strong> TokenBar renders a real-time 3D bar chart of token usage using Apple&rsquo;s SceneKit framework, running at 160 frames per second. The graph animates smoothly as new data arrives, giving you an at-a-glance visual of which agents are consuming the most tokens.</p>
<p><strong>Liquid Glass Visual Effect.</strong> On macOS 26 and later, TokenBar enables a Liquid Glass visual effect that gives the menu bar dropdown a translucent, depth-of-field appearance. This is a macOS-native visual enhancement that makes the app feel like a first-party system utility rather than a third-party add-on.</p>
<p><strong>Quota Cards.</strong> Each agent gets a quota card showing tokens used, estimated cost, and a pace bar that projects whether you will hit your monthly limit at the current consumption rate. This is especially valuable for developers on tiered API pricing plans who need to avoid unexpected overage charges.</p>
<p><strong>Homebrew Cask Installation.</strong> TokenBar installs via a single Homebrew command: <code>brew install tokenbar</code>. No manual downloads, no dragging to Applications, no configuration files to edit.</p>
<h2 id="how-tokenbar-works--local-log-parsing-with-tokscale-core-engine">How TokenBar Works — Local Log Parsing with Tokscale-Core Engine</h2>
<p>TokenBar does not intercept network traffic or hook into API calls. Instead, it reads the local log files that AI coding agents already write to disk. Every major AI coding tool logs its token usage locally — Claude Code writes to <code>~/.claude/logs</code>, Codex writes session data to its own cache, Cursor stores telemetry in its app data directory, and so on.</p>
<p>TokenBar uses the <strong>tokscale-core</strong> shared engine — the same engine that powers the tokscale terminal-based token tracker — to parse these logs, aggregate the data, and compute pricing estimates. Tokscale has tracked quadrillions of tokens globally across its user base, so the parsing and aggregation logic is battle-tested at scale.</p>
<p>The app runs a lightweight background watcher that monitors log directories for changes. When a new log entry appears, TokenBar parses it, updates its in-memory data model, and refreshes the menu bar display — all within milliseconds. Because everything runs locally, there is zero network latency and no dependency on external API availability.</p>
<h2 id="installation-and-setup--homebrew-cask-macos-14-requirements">Installation and Setup — Homebrew Cask, macOS 14+ Requirements</h2>
<p>Getting TokenBar running takes less than a minute. The app requires macOS 14 (Sonoma) or later and an Apple Silicon Mac (M1, M2, M3, or M4 series). The Liquid Glass visual effect additionally requires macOS 26 or later.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>brew install tokenbar
</span></span></code></pre></div><p>After installation, launch TokenBar from your Applications folder or via Spotlight. The app appears as a small icon in your menu bar. Click it to open the dropdown dashboard, which shows your default lens view. You can switch lenses from the dropdown menu, configure which agents to monitor, and set your API pricing tiers for accurate cost estimates.</p>
<p>No account registration, no telemetry opt-in, no background daemon installation — just a menu bar icon and your local token data.</p>
<h2 id="tokenbar-vs-competitors--codexbar-tokscale-tokcat-metertab-comparison">TokenBar vs Competitors — CodexBar, Tokscale, Tokcat, MeterTab Comparison</h2>
<p>The AI token tracking space has several options, each with different trade-offs. Here is how TokenBar compares:</p>
<table>
  <thead>
      <tr>
          <th>Feature</th>
          <th>TokenBar</th>
          <th>CodexBar</th>
          <th>Tokscale</th>
          <th>Tokcat</th>
          <th>MeterTab</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><strong>Type</strong></td>
          <td>Free, open-source</td>
          <td>Free, open-source</td>
          <td>Free, open-source</td>
          <td>Free, open-source</td>
          <td>Paid commercial</td>
      </tr>
      <tr>
          <td><strong>Platform</strong></td>
          <td>macOS menu bar</td>
          <td>macOS menu bar</td>
          <td>Terminal (TUI)</td>
          <td>macOS menu bar</td>
          <td>macOS menu bar + iOS + Watch</td>
      </tr>
      <tr>
          <td><strong>Agents Tracked</strong></td>
          <td>25+</td>
          <td>2 (Codex, Claude Code)</td>
          <td>10+</td>
          <td>4 (Claude Code, Codex, Cursor, Copilot)</td>
          <td>10+</td>
      </tr>
      <tr>
          <td><strong>Native UI</strong></td>
          <td>Swift (native)</td>
          <td>Objective-C (native)</td>
          <td>Terminal (ncurses)</td>
          <td>Tauri/Webview</td>
          <td>Swift (native)</td>
      </tr>
      <tr>
          <td><strong>3D Graph</strong></td>
          <td>Yes (SceneKit, 160fps)</td>
          <td>No</td>
          <td>No</td>
          <td>No</td>
          <td>No</td>
      </tr>
      <tr>
          <td><strong>Liquid Glass</strong></td>
          <td>Yes (macOS 26+)</td>
          <td>No</td>
          <td>No</td>
          <td>No</td>
          <td>No</td>
      </tr>
      <tr>
          <td><strong>Quota Pace</strong></td>
          <td>Yes</td>
          <td>No</td>
          <td>No</td>
          <td>No</td>
          <td>Yes</td>
      </tr>
      <tr>
          <td><strong>GitHub Stars</strong></td>
          <td>215</td>
          <td>19,492</td>
          <td>4,749</td>
          <td>27</td>
          <td>N/A (commercial)</td>
      </tr>
      <tr>
          <td><strong>Privacy</strong></td>
          <td>Zero telemetry</td>
          <td>Zero telemetry</td>
          <td>Zero telemetry</td>
          <td>Zero telemetry</td>
          <td>Local-first</td>
      </tr>
      <tr>
          <td><strong>License</strong></td>
          <td>MIT</td>
          <td>MIT</td>
          <td>MIT</td>
          <td>MIT</td>
          <td>Proprietary</td>
      </tr>
      <tr>
          <td><strong>Active Development</strong></td>
          <td>Weekly releases</td>
          <td>Monthly</td>
          <td>Quarterly</td>
          <td>Inactive</td>
          <td>Active</td>
      </tr>
  </tbody>
</table>
<p><strong>CodexBar</strong> dominates in popularity with 19,492 stars, but its scope is narrow — it only tracks Codex and Claude Code. If you use Cursor, Copilot, Gemini CLI, or any agent beyond those two, CodexBar cannot help you.</p>
<p><strong>Tokscale</strong> is a terminal-based tracker with a global leaderboard that has tracked quadrillions of tokens. It is excellent for power users who live in the terminal, but it has no menu bar integration and no real-time visual dashboard.</p>
<p><strong>Tokcat</strong> was the original Tauri-based menu bar monitor that TokenBar forked from. It is no longer actively maintained since the native Swift rewrite, and its webview-based UI is less performant than TokenBar&rsquo;s native Swift implementation.</p>
<p><strong>MeterTab</strong> is the closest commercial competitor, offering macOS, iPhone, and Watch apps with MCP support. It is polished and well-designed, but it requires a purchase and is not open source. TokenBar matches most of its features while remaining free and MIT-licensed.</p>
<h2 id="performance-and-visual-design--native-swift-160fps-3d-liquid-glass">Performance and Visual Design — Native Swift, 160fps 3D, Liquid Glass</h2>
<p>TokenBar&rsquo;s native Swift implementation gives it a significant performance advantage over webview-based alternatives. The app launches instantly, uses negligible CPU when idle (less than 0.5% on an M3 MacBook Pro), and refreshes the menu bar display in under 10 milliseconds when new log data arrives.</p>
<p>The SceneKit 3D graph is the visual centerpiece. It renders a real-time bar chart where each bar represents an agent&rsquo;s token consumption, color-coded by agent type. The graph runs at 160fps, which is well above the standard 60fps display refresh rate, ensuring buttery-smooth animations even during rapid data updates. You can rotate, zoom, and pan the 3D view with trackpad gestures.</p>
<p>The Liquid Glass effect on macOS 26 adds a frosted-glass depth effect to the dropdown panel. It uses the Metal shader framework to create a realistic glass surface with refraction, specular highlights, and depth-of-field blur behind the content. This is not a simple transparency overlay — it is a full GPU-accelerated visual effect that adapts to whatever is behind the window.</p>
<h2 id="privacy-and-data--zero-telemetry-local-only-no-account-needed">Privacy and Data — Zero Telemetry, Local-Only, No Account Needed</h2>
<p>TokenBar is designed with privacy as a first-class constraint. The app never sends data to any external server. All log parsing, aggregation, and display happens entirely on your local machine. There is no telemetry, no analytics SDK, no crash reporter phoning home, and no account system.</p>
<p>This is a meaningful differentiator in an era where many developer tools collect usage data by default. TokenBar cannot see which agents you use, how many tokens you consume, or what projects you work on — because it never transmits that information anywhere. The MIT license also means you can audit the source code yourself to verify the privacy claims.</p>
<p>The only network-optional feature is the global leaderboard lens, which can optionally compare your usage against anonymized aggregate data from the tokscale network. This is opt-in and disabled by default.</p>
<h2 id="development-activity--frequent-releases-active-community-mit-license">Development Activity — Frequent Releases, Active Community, MIT License</h2>
<p>TokenBar is under active development with a rapid release cadence. Version 1.9.0 was released on July 27, 2026, following v1.7.0, v1.8.1, and v1.9.0 — all within a two-week window. This pace of releases signals strong maintainer commitment and rapid iteration based on user feedback.</p>
<p>The project is MIT-licensed, which means you can use it freely, modify it, and even redistribute your own fork. The source code is available on GitHub at <code>github.com/Nanako0129/TokenBar</code>, and the community has already contributed several features including additional agent parsers and lens configurations.</p>
<p>With 215 stars and 20 forks, TokenBar is still a relatively young project compared to CodexBar&rsquo;s 19,492 stars, but its feature set and development velocity suggest it is growing quickly. The project&rsquo;s website at <code>tokenbar.nyanako.com</code> provides documentation, screenshots, and release notes.</p>
<h2 id="who-should-use-tokenbar--ai-developers-heavy-claude-codecodex-users">Who Should Use TokenBar — AI Developers, Heavy Claude Code/Codex Users</h2>
<p>TokenBar is ideal for:</p>
<ul>
<li>
<p><strong>Developers using multiple AI coding agents</strong> who need a unified view of their total token consumption. If you switch between Claude Code, Codex, Cursor, and Copilot throughout the day, TokenBar gives you one place to see all their usage.</p>
</li>
<li>
<p><strong>Heavy Claude Code and Codex users</strong> who want to monitor their API spending in real time. The quota pace feature helps you avoid hitting monthly limits unexpectedly.</p>
</li>
<li>
<p><strong>Privacy-conscious developers</strong> who want to track their AI usage without sending data to a third-party service. TokenBar&rsquo;s zero-telemetry, local-only architecture is a strong fit.</p>
</li>
<li>
<p><strong>macOS power users</strong> who appreciate native-quality apps with smooth animations, 3D graphics, and system-level integration like Liquid Glass.</p>
</li>
<li>
<p><strong>Open-source enthusiasts</strong> who prefer MIT-licensed tools they can inspect, modify, and trust.</p>
</li>
</ul>
<p>TokenBar may not be the right choice if you only use a single AI agent (CodexBar is simpler for that use case), if you prefer terminal-based tools (tokscale is more appropriate), or if you need cross-device sync with iPhone and Watch apps (MeterTab offers that).</p>
<h2 id="verdict--strengths-limitations-and-final-recommendation">Verdict — Strengths, Limitations, and Final Recommendation</h2>
<p>TokenBar is the most comprehensive free open-source AI token monitor for the macOS menu bar. Its support for 25+ agents, native Swift performance, SceneKit 3D graph, and zero-telemetry privacy model make it a compelling choice for developers who want visibility into their AI spending without compromising on privacy or paying for a commercial tool.</p>
<p><strong>Strengths:</strong></p>
<ul>
<li>Widest agent coverage of any free menu bar token monitor (25+ agents)</li>
<li>Native Swift performance with 160fps 3D visualization</li>
<li>Zero telemetry, local-only, no account required</li>
<li>Active development with weekly releases</li>
<li>MIT license — free to use, modify, and redistribute</li>
<li>Homebrew cask installation for easy setup</li>
</ul>
<p><strong>Limitations:</strong></p>
<ul>
<li>Smaller community than CodexBar (215 vs 19,492 stars)</li>
<li>Requires macOS 14+ and Apple Silicon</li>
<li>Liquid Glass requires macOS 26+</li>
<li>No cross-device sync (no iOS or Watch companion app)</li>
<li>No MCP support (unlike MeterTab)</li>
</ul>
<p><strong>Final recommendation:</strong> If you use multiple AI coding agents on macOS and want a free, private, and visually polished way to track your token usage, TokenBar is the best option available today. Install it via Homebrew, configure your agents, and get real-time visibility into your AI spending in under five minutes.</p>
<h2 id="faq">FAQ</h2>
<p><strong>Q: Does TokenBar work with Intel Macs?</strong>
A: No. TokenBar requires Apple Silicon (M1, M2, M3, or M4 series) and macOS 14 or later. Intel Macs are not supported due to the native Swift architecture and SceneKit 3D rendering requirements.</p>
<p><strong>Q: Can TokenBar track tokens from web-based AI tools like ChatGPT or Gemini?</strong>
A: TokenBar is designed for local AI coding agents that write log files to disk. It cannot track web-based AI tools like ChatGPT, Gemini web, or other browser-based interfaces because those do not produce local log files that TokenBar can parse.</p>
<p><strong>Q: Is TokenBar really free with no hidden costs?</strong>
A: Yes. TokenBar is MIT-licensed open-source software. There are no paid tiers, no subscription fees, no in-app purchases, and no premium features locked behind a paywall. The global leaderboard feature is optional and opt-in.</p>
<p><strong>Q: How does TokenBar calculate cost estimates?</strong>
A: TokenBar uses the tokscale-core engine to apply per-model pricing based on the tokens consumed. You can configure your API pricing tiers in the app settings to match your actual plan. The estimates are approximate and based on published API pricing.</p>
<p><strong>Q: Does TokenBar slow down my Mac?</strong>
A: No. TokenBar uses negligible system resources — less than 0.5% CPU when idle and minimal memory footprint. The background log watcher is event-driven and only activates when new log data is written. The 3D graph only renders when the dropdown is open.</p>
]]></content:encoded></item></channel></rss>