AI Usage Pro is a native macOS menu bar application that helps you monitor your Claude.ai usage across multiple accounts. Stay on top of your session and weekly usage limits with beautiful visual gauges that change color as you approach your limits.
Whether you're managing a single Claude account or juggling multiple accounts across different organizations, AI Usage Pro provides an at-a-glance view of your remaining capacity with session and weekly usage tracking. The app features persistent cookie storage for seamless multi-account management and can automatically wake up sessions when usage resets, ensuring you never miss a beat.
- π₯οΈ Menu Bar Integration β Quick access from your macOS menu bar without cluttering your dock
- β±οΈ Session Usage Tracking β Monitor your rolling session usage limit in real-time
- π Weekly Usage Tracking β Keep track of your rolling weekly usage limits
- π₯ Multi-Account Support β Manage and monitor multiple Claude accounts simultaneously
- π¨ Visual Gauges with Color-Coded Thresholds β Intuitive green/yellow/red indicators show your usage status at a glance
- π Auto-Ping/Wake-Up β Automatically ping sessions when usage resets to 0% to keep them active
- πΎ Persistent Cookie Storage β Securely stores session cookies locally for seamless authentication
- βοΈ Configurable Refresh Intervals β Customize how frequently usage data is fetched to balance accuracy and performance
- macOS 14 (Sonoma) or later β The app requires macOS 14+ to run
- Swift 5.9+ β Required for building from source
- Xcode 15+ (optional) β Recommended for development, but not required for building with Swift CLI
-
Clone the repository
git clone https://github.com/ThrownLemon/ai-usage-pro.git cd ai-usage-pro -
Build the application
For a release build (recommended):
swift build -c release
Or for a debug build:
swift build
-
Locate the built executable
After building, the executable will be located at:
- Release build:
.build/release/ClaudeUsagePro - Debug build:
.build/debug/ClaudeUsagePro
- Release build:
-
Run the application
.build/release/ClaudeUsagePro
To make the app more accessible, you can:
-
Copy to Applications folder (recommended):
cp .build/release/ClaudeUsagePro /Applications/
Then launch it from Spotlight or your Applications folder.
-
Add to Login Items for auto-start on login:
- Open System Settings β General β Login Items
- Click the + button under "Open at Login"
- Navigate to and select
ClaudeUsagePro(from/Applicationsor your build directory) - The app will now launch automatically when you log in
-
Launch the application
Run the app using one of the methods from the Installation section above. Once launched, you'll see a new icon appear in your macOS menu bar.
-
Click the menu bar icon
Click the AI Usage Pro icon in your menu bar to open the main interface.
-
Add your first account
- Click the "Add Account" button (or the "+" button if you already have accounts)
- A WebKit browser window will open showing the Claude.ai login page
-
Authenticate with Claude.ai
- Log in to your Claude.ai account using your credentials in the WebKit browser window
- Once authentication is successful, the browser window will automatically close
- Your account will now appear in the app with its usage data
-
View your usage metrics
Once authenticated, you'll see two visual gauges for each account:
- Session Usage (Circular Gauge) β Shows your current rolling session usage
- Weekly Usage (Linear Bar) β Displays your rolling weekly usage
Both gauges update automatically based on your configured refresh interval (default: 5 minutes).
The visual gauges use intuitive color coding to help you monitor your usage at a glance:
- π’ Green (0-70%) β You have plenty of capacity remaining. Use Claude freely!
- π‘ Yellow (70-90%) β You're approaching your limit. Consider moderating your usage.
- π΄ Red (90-100%) β You're very close to or at your limit. Usage may be restricted soon.
These thresholds apply to both session and weekly usage gauges, making it easy to see your status across both time windows.
If you work with multiple Claude.ai accounts across different organizations:
- Click the "+" button to add additional accounts
- Each account will appear in the interface with its own usage gauges
- Switch between accounts to view their individual usage metrics
- Remove accounts by accessing the Settings panel (gear icon)
AI Usage Pro offers several configurable options to customize your monitoring experience. Access the Settings panel by clicking the gear icon (βοΈ) in the app interface.
The refresh interval controls how frequently the app fetches updated usage data from Claude.ai.
- Default: 5 minutes (300 seconds)
- Purpose: Balance between real-time accuracy and system performance
- Customization: Adjust the interval based on your needs:
- Shorter intervals (e.g., 2-3 minutes) β Get more frequent updates if you're actively monitoring usage
- Longer intervals (e.g., 10-15 minutes) β Reduce system resources and network requests if you only need periodic checks
How to configure: In the Settings panel, use the refresh interval picker to select your preferred update frequency.
The auto-wake feature automatically pings your Claude.ai sessions when usage resets to 0%, helping keep your sessions active.
- Default: Configurable (off by default)
- Purpose: Automatically "wake up" sessions when your usage limits reset, ensuring you can resume work immediately
- Behavior: When your session or weekly usage returns to 0% (indicating a reset), the app will automatically send a ping to Claude.ai to refresh the session
How to configure: In the Settings panel, toggle the "Auto-Wake" switch to enable or disable this feature.
Use case: If you want to ensure your sessions are always ready when usage resets (e.g., at the start of a new session period or weekly cycle), enable this feature. This is particularly useful if you work with Claude during specific time windows and want seamless access when limits refresh.
The Settings panel also provides account management capabilities:
- Add Accounts: Click the "+" button to authenticate and add new Claude.ai accounts
- Remove Accounts: In the Settings panel, you can remove accounts you no longer need to monitor
- View All Accounts: See all your configured accounts in one place with their current usage status
Cookie Storage: All account credentials are stored locally on your Mac using secure cookie persistence. Your authentication data never leaves your device.
AI Usage Pro uses a lightweight, privacy-focused approach to track your Claude.ai usage:
-
Authentication via WebKit β When you add an account, the app opens an embedded WebKit browser window where you log in to Claude.ai using your normal credentials. This ensures your login information is handled securely by Claude.ai's official authentication flow.
-
Session Cookie Persistence β Once authenticated, the app captures and stores your session cookies locally on your Mac. These cookies are stored in your local user preferences (UserDefaults), allowing the app to maintain persistent access to your account without requiring you to re-authenticate each time.
-
Periodic Usage Fetching β The app uses a background WebKit process to periodically fetch usage data from Claude.ai's internal APIs. This happens at your configured refresh interval (default: every 5 minutes) and retrieves your current session and weekly usage metrics.
-
Local Processing β All data processing happens entirely on your device. The app never sends your credentials or usage data to any third-party servers. Your authentication cookies and usage information remain private and stored only on your Mac.
This architecture ensures that AI Usage Pro provides real-time usage tracking while maintaining the security and privacy of your Claude.ai account credentials.
Contributions are welcome! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.
- Check existing issues β Browse the Issues page to see if your bug or feature request already exists
- Open a new issue β If you've found a bug or have a feature idea, create a new issue to discuss it first
- Submit a Pull Request β Fork the repository, make your changes, and submit a Pull Request
For detailed information about the codebase architecture, data flow, and key components, please refer to CLAUDE.md. This file contains:
- Complete architecture overview and data flow diagrams
- Detailed component descriptions (AuthManager, TrackerService, AccountSession, etc.)
- Cookie persistence implementation details
- UserDefaults keys and settings structure
Build commands for development:
# Build and run in debug mode
swift run
# Build release version
swift build -c release
# Run tests
swift testCode quality tools (install with brew install swiftlint swiftformat):
# Check for linting issues
swiftlint lint
# Auto-fix formatting
swiftformat Sources TestsCI/CD: GitHub Actions automatically runs builds, tests, and code quality checks on all PRs.
See CLAUDE.md for detailed build instructions, architecture documentation, and configuration file reference.
This project is licensed under the MIT License. See the LICENSE file for details.
Copyright (c) 2025 ThrownLemon