meterbar.app
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
This is a lightweight macOS menu bar application that monitors and displays usage limits for AI coding assistants like Claude Code, Codex CLI, and Cursor.
Security Assessment
The application accesses sensitive data by reading local authentication tokens and SQLite databases to function as intended. However, the automated code scan of 12 files found no dangerous patterns, no hardcoded secrets, and no excessive or dangerous permissions requested. The README clearly states that no API keys are needed, as it simply reads existing local credentials. The app is not currently notarized by Apple, which is a minor security consideration requiring a manual gatekeeper bypass to run. Overall risk is rated as Low.
Quality Assessment
The project is actively maintained, with the most recent push occurring today. It uses a standard permissive MIT license. The primary concern is its low visibility and community trust level; it currently has only 5 GitHub stars and a relatively unknown developer footprint. Being a native Swift application built with SwiftUI for macOS 13.0+, it is a focused desktop utility rather than an expansive or complex system.
Verdict
Safe to use, though users should be aware of the tool's low community visibility and the manual system permission bypass required for the non-notarized pre-built binary.
Track your AI coding assistant usage limits from the macOS menu bar
MeterBar
Track your AI coding assistant usage limits from the menu bar
Note: MeterBar is currently in active development. The app is not yet available on the Mac App Store but will be published soon. For now, you can build from source or download pre-built binaries from the Releases page.
A lightweight macOS menu bar app that monitors Claude Code, Codex CLI, and Cursor usage at a glance.
Screenshots
Features
- Menu Bar App: Quick access to usage data from your menu bar
- Widget Support: macOS widget for at-a-glance monitoring
- Multi-Service Support: Track Claude Code, Codex CLI, and Cursor
- Zero Configuration: Automatically reads credentials from CLI tools (no API keys needed)
- Real-time Updates: Background refresh every 15 minutes
- Accordion UI: Collapsible cards show compact progress bars
- Color-coded Status: Green (good), Yellow (warning), Red (critical)
Supported Services
| Service | Auth Method | Metrics Tracked |
|---|---|---|
| Claude Code | OAuth token from claude login |
5h session, 7-day all models, 7-day Sonnet |
| Codex CLI | OAuth token from codex login |
5h limit, weekly limit, code review |
| Cursor | Local SQLite database | Monthly usage |
Installation
Homebrew (Recommended)
brew tap shipshitdev/tap
brew install --cask meterbar
To update:
brew upgrade --cask meterbar
Manual Download
Download the latest release from the Releases page.
Note: Since the app isn't notarized, you may need to right-click and select "Open" the first time, or run:
xattr -cr /Applications/MeterBar.app
Build from Source
Prerequisites: macOS 13.0+, Xcode 15.0+
git clone https://github.com/shipshitdev/meterbar.app.git
cd meterbarapp
open MeterBar.xcodeproj
# Build and run (Cmd+R)
Setup
Claude Code
- Install Claude Code CLI:
npm install -g @anthropic-ai/claude-code - Log in:
claude login - The app automatically reads credentials from
~/.claude/
Codex CLI
- Install Codex CLI:
npm install -g @openai/codex - Log in:
codex login - Select your team/workspace when prompted
- The app automatically reads credentials from
~/.codex/auth.json
Cursor
- Install and log into Cursor IDE
- The app automatically reads from Cursor's local database
Usage
- Launch the app - It appears in your menu bar
- Click the icon - See all your usage metrics
- Click a card header - Expand/collapse to see details
- Refresh - Click the refresh icon to update metrics
Understanding the Display
Collapsed view: Shows service name + compact progress bar for quick status
Expanded view: Shows detailed metrics:
- Usage percentage and progress bar
- Reset time (when limits refresh)
- Subscription type badge
Status Colors
| Color | Meaning |
|---|---|
| Green | < 50% used - plenty remaining |
| Yellow | 50-80% used - approaching limit |
| Red | > 80% used - near or at limit |
CLI Tool
MeterBar includes a command-line tool for scripts and automation.
# Show current usage
meterbar usage
# JSON output for scripts
meterbar usage --json
# Filter by provider
meterbar usage --provider claude
# Show token costs (last 30 days)
meterbar cost
# Cost for specific period
meterbar cost --days 7 --json
The CLI is automatically installed when using Homebrew. For manual installs, it's located at:
/Applications/MeterBar.app/Contents/Helpers/meterbar
How It Works
MeterBar reads authentication tokens from local files created by CLI tools:
~/.claude.ai/ # Claude Code OAuth
~/.codex/auth.json # Codex CLI OAuth
~/Library/Application Support/Cursor/ # Cursor local DB
It then calls the respective APIs to fetch current usage data:
- Claude:
https://api.anthropic.com/settings/usage - Codex:
https://chatgpt.com/backend-api/wham/usage - Cursor: Local SQLite queries
No API keys are stored - the app uses the same OAuth tokens as the CLI tools.
Privacy & Security
- All credentials remain in their original locations (managed by CLI tools)
- No data sent to external servers (only official API calls)
- Sandboxed app with minimal file system access
- Open source for full transparency
Architecture
- SwiftUI - Modern declarative UI
- Combine - Reactive data flow
- App Sandbox - Secure with specific entitlements for credential access
- URLSession - Native networking
Troubleshooting
"Not configured" for a service
Make sure you're logged into the CLI tool:
claude login # For Claude Code
codex login # For Codex CLI
Codex showing "Free" instead of Team
Run codex logout && codex login and select your team workspace when prompted.
App can't read credentials
The app needs sandbox exceptions to read CLI credential files. Rebuild from source if using a modified entitlements file.
Contributing
Contributions welcome! Please open an issue first to discuss changes.
License
MIT License - see LICENSE for details.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi