This guide will walk you through installing Claude Usage Tracker on your Mac.
This is the recommended installation method - Homebrew automatically handles macOS security settings.
You need Homebrew installed. If you don't have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Option A: Two commands
# Add the tap
brew tap masorange/claudeusagetracker
# Install the app
brew install --cask masorange/claudeusagetracker/claudeusagetrackerOption B: One command
brew install --cask masorange/claudeusagetracker/claudeusagetracker- The app is automatically installed to
/Applications - Look for the 💰 icon in your menu bar (top-right corner)
- No need to run
xattror deal with security warnings!
# Update Homebrew
brew update
# Upgrade the app
brew upgrade --cask masorange/claudeusagetracker/claudeusagetrackerbrew uninstall --cask masorange/claudeusagetracker/claudeusagetracker🎉 That's it! Skip to the Usage section
If you prefer not to use Homebrew, you can install manually:
- Go to the Releases page
- Download the latest
ClaudeUsageTracker-vX.X.X.dmgfile - The file will download to your
Downloadsfolder
- Find the downloaded
.dmgfile in yourDownloadsfolder - Double-click the
.dmgfile to open it - A new window will appear showing the app and an Applications folder shortcut
- In the DMG window, drag
ClaudeUsageTracker.appto theApplicationsfolder shortcut - Wait for the copy to complete
- Close the DMG window
- You can eject the DMG from Finder sidebar (click the eject button next to "ClaudeUsageTracker")
IMPORTANT: Since this app is not signed with an Apple Developer certificate, macOS will block it by default.
- Open Terminal (Applications > Utilities > Terminal)
- Run this command to remove the security block:
xattr -cr /Applications/ClaudeUsageTracker.app
- Press Enter
- Go to your Applications folder (⌘ + Shift + A)
- Find
ClaudeUsageTracker.app - Right-click (or Control-click) on the app
- Select "Open" from the menu
- If you see a security warning, click "Open" again
- This is normal for unsigned apps
- You only need to do this the first time
- Look at the top-right corner of your screen (menu bar)
- You should see a 💰 icon
- Click the icon to open the app panel
🎉 That's it! You're all set!
- Download the latest release
- Quit the current app (click 💰 → Quit)
- Replace the old app in Applications with the new one
- Open the new version
# Quit the app
killall ClaudeUsageTracker 2>/dev/null || true
# Delete the app
rm -rf /Applications/ClaudeUsageTracker.app
# (Optional) Remove preferences
defaults delete com.claudeusage.trackerIf you prefer to build the app yourself from source code:
You'll need:
- macOS 13.0 (Ventura) or later
- Xcode Command Line Tools
- Claude Code CLI installed and used
Open Terminal and run:
xcode-select --installClick "Install" when prompted.
# Clone the repository
git clone https://github.com/masorange/ClaudeUsageTracker.git
# Navigate to the folder
cd ClaudeUsageTracker# Make the build script executable
chmod +x build.sh
# Run the build
./build.shWait for the build to complete. You should see:
✅ App compilada en: ClaudeUsageTracker.app
# Open the app
open ClaudeUsageTracker.app# Copy to Applications folder
cp -r ClaudeUsageTracker.app /Applications/
# Open from Applications
open /Applications/ClaudeUsageTracker.app- Look for the 💰 icon in your menu bar (top-right)
- If you don't see it:
- Open Activity Monitor (Applications > Utilities > Activity Monitor)
- Search for "ClaudeUsageTracker"
- If it's running, you should see it in the list
- Click the 💰 icon in the menu bar
- You should see your usage data
- If you see $0.00:
- Wait a few seconds for data to load
- Click the 🔄 refresh button
- Make sure you have used Claude Code before
The app needs to read Claude Code's project files. Check if the folder exists:
ls ~/.claude/projects/You should see a list of project folders. If you get "No such file or directory":
- Make sure Claude Code is installed
- Make sure you've used Claude Code at least once
This is a macOS security feature called Gatekeeper.
IMPORTANT: You must run the xattr command AFTER copying the app to Applications, not while it's still in the DMG (the DMG is read-only).
Solution:
- First, drag the app to Applications folder
- Open Terminal
- Run this command:
xattr -cr /Applications/ClaudeUsageTracker.app
- Now right-click the app in Applications and select "Open"
-
Quit the app completely:
- Open Activity Monitor
- Find "ClaudeUsageTracker"
- Click "✖️" to quit
-
Reopen the app:
- Go to Applications
- Open ClaudeUsageTracker.app
-
Check System Preferences:
- Go to System Settings > Privacy & Security
- Make sure ClaudeUsageTracker has necessary permissions
Possible reasons:
- No data yet: Wait 30-60 seconds for the first load
- No Claude Code usage: The app tracks Claude Code usage, make sure you've used it
- Data location issue: Run this to verify:
ls -la ~/.claude/projects/
Solutions:
- Click the 🔄 refresh button
- Use Claude Code for a task, then refresh
- Check Console.app for error messages from "ClaudeUsageTracker"
Error: xcode-select: error: tool 'xcodebuild' requires Xcode
Install Xcode Command Line Tools:
xcode-select --installError: No such file or directory
Make sure you're in the correct folder:
cd ClaudeUsageTracker
ls -la # Should show build.sh- Download the latest release
- Quit the current app:
- Click 💰 in menu bar
- Click the ✖️ button
- Replace the old app in Applications with the new one
- Open the new version
cd ClaudeUsageTracker
git pull origin main
./build.sh
open ClaudeUsageTracker.appTo completely remove the app:
-
Quit the app:
- Click 💰 in menu bar
- Click ✖️
-
Delete the app:
rm -rf /Applications/ClaudeUsageTracker.app
-
Remove preferences (optional):
defaults delete com.claudeusage.tracker
Note: This does NOT delete your Claude Code data or conversation history. It only removes the tracker app.
If you're still having issues:
- Check the Troubleshooting section in the README
- Search existing issues on GitHub
- Open a new issue with:
- Your macOS version (
sw_vers) - The problem you're experiencing
- Steps you've already tried
- Any error messages from Console.app
- Your macOS version (
Now that you have the app installed:
-
Explore the interface:
- Switch between By Month and By Project tabs
- Check detailed token breakdowns
-
Configure pricing (if needed):
- Click the ⚙️ gear icon
- Adjust pricing to match your Claude API plan
-
Switch language:
- Click the 🇺🇸 flag to toggle between English and Spanish
Enjoy tracking your Claude Code usage! 🎉