Install usagebar with one command, by hand from a release, or by building it from source. Plus updating and what it needs.

usagebar is a single small macOS app. There is nothing to configure: once Claude Code is signed in, open usagebar and the numbers appear in the menu bar.

What you need

  • A Mac with Apple silicon, on macOS 13 or later.
  • Claude Code, signed in with a Claude subscription (Pro or Max). usagebar uses that sign-in; it has no login of its own.

Install with one command

curl -fsSL https://usagebar.ashray.xyz/install.sh | bash

The script:

  1. checks that the Mac has Apple silicon (also from a shell running under Rosetta), and stops otherwise,
  2. downloads the archive and its SHA-256 checksum from GitHub Releases,
  3. stops, installing nothing, if the checksum does not match or the app’s signature does not verify,
  4. installs usagebar.app into ~/Applications and opens it.

If a copy is already running from that same location, the script quits it before replacing it.

Options

Set these environment variables on the bash side of the pipe:

Variable Effect
USAGEBAR_VERSION=0.1.1 Install a specific release instead of the latest.
USAGEBAR_INSTALL_DIR=<dir> Install somewhere other than ~/Applications.
USAGEBAR_NO_LAUNCH=1 Don’t open the app afterwards.

For example:

curl -fsSL https://usagebar.ashray.xyz/install.sh | USAGEBAR_NO_LAUNCH=1 bash

Update

Run the install command again. It fetches the latest release and replaces the app in place.

Install by hand

  1. From the releases page, download usagebar-<version>-macos-arm64.tar.gz and the matching .sha256 file.

  2. Check the download:

    shasum -a 256 -c usagebar-*.tar.gz.sha256
  3. Unpack it into ~/Applications:

    tar -xzf usagebar-*.tar.gz -C ~/Applications
  4. Open ~/Applications/usagebar.app.

“Apple could not verify” the first time you open it

usagebar is ad-hoc signed, not notarized: there is no Apple Developer ID behind it. Files fetched with curl (including by the install script) are not quarantined, so they open normally. An archive downloaded with a browser is quarantined, and macOS blocks the first launch. Allow it once under System Settings → Privacy & Security → Open Anyway, or build it from source.

Build from source

You need the Xcode command line tools (usagebar is built with Swift 6.2). There are no other dependencies.

git clone https://github.com/amxv/usagebar && cd usagebar
./build.sh                    # -> dist/usagebar.app
open dist/usagebar.app        # or copy it into ~/Applications first

build.sh calls swiftc directly (no Xcode project, no Swift Package Manager), optimizes for size, strips the binary and ad-hoc signs the app. It builds for Apple silicon only. scripts/release-assets.sh builds the release archive and its checksum from a clean checkout.

To check a build, run its self-test against the repository’s fixtures:

dist/usagebar.app/Contents/MacOS/usagebar --self-test Tests

Next