Skip to content

Repository files navigation

TokPace

Deutsch

TokPace shows whether your Claude and Codex subscription quotas are on pace to last until reset. It lives in the macOS menu bar and reads quota percentages from your local Tokscale installation.

TokPace showing a weekly quota forecast

The 30-second version

  • The large number is the remaining quota reported by Tokscale.
  • A fixed-window quota gets a linear target, actual history, and exhaustion forecast.
  • TokPace selects the fixed-window quota with the highest projected usage.
  • Rolling quotas, including Codex Spark weekly, show their current value without an invented pace forecast.
  • Local history starts when you first run TokPace.

TokPace tracks provider quotas. It does not count every token in a coding session. Tokscale has separate views for token consumption and cost.

Requirements

  • macOS 14 or newer
  • Xcode with a Swift 6.2-compatible toolchain
  • Tokscale installed as a persistent executable

Tokscale publishes a tokscale npm binary. Install it globally:

npm install --global tokscale@latest
tokscale usage --json

TokPace does not install Tokscale for you.

Build and install from source

This release is source-only. There is no notarized public binary yet.

cd tokpace
cd app
swift test
swift build -c release
cd ..
chmod +x scripts/package-tokpace.sh
./scripts/package-tokpace.sh

The script creates dist/TokPace.app and dist/TokPace.zip. Open the app from dist or move it to /Applications. macOS may warn about a locally built, ad-hoc-signed app. Review the source and build it yourself before allowing it to open.

How TokPace finds Tokscale

The first executable match wins:

  1. The path selected in TokPace Settings
  2. tokscale on PATH
  3. ~/.local/bin/tokscale
  4. ~/.bun/bin/tokscale
  5. /opt/homebrew/bin/tokscale
  6. /usr/local/bin/tokscale

Use Choose path… in Settings if automatic detection misses your installation. TokPace accepts executable files and resolves symlinks. Clearing the custom path restores automatic detection.

What the forecast means

For fixed five-hour and weekly windows, TokPace extends the average usage pace observed so far. The target line spends the quota evenly across the window. The red line projects the current average pace.

TokPace waits until 0.2% of a fixed window has elapsed before projecting its pace. Until then, it reports that more elapsed time is needed instead of calling the quota on track. The estimate reacts to bursty work, provider corrections, plan changes, delayed reporting, and reset metadata. Rolling windows have no fixed start. TokPace therefore omits the target and suggested pace for them.

Settings contains the controls used by this release: language, launch at login, refresh interval, menu-bar display, and Tokscale path.

History

TokPace stores timestamp, provider, plan, metric name, used percentage, remaining percentage, and reset time for eight weeks:

~/Library/Application Support/TokPace/history.json

The historical line appears after TokPace has observed a comparable completed window. Activity from before installation cannot be reconstructed.

Data flow and privacy

TokPace runs the detected executable directly:

tokscale usage --json

There is no shell wrapper. TokPace parses Claude and Codex quota metrics and discards account IDs, email addresses, credit data, and the raw JSON response.

TokPace has no backend, telemetry, TokPace login, leaderboard integration, or tokscale submit call. Tokscale is a separate program with its own behavior and configuration.

Troubleshooting

Tokscale was not found

command -v tokscale
tokscale usage --json

If the first command returns a path but TokPace misses it, select that executable in Settings.

Invalid JSON or timeout

Run tokscale usage --json in Terminal. TokPace keeps the last confirmed values visible when a later refresh fails and marks them as stale.

No historical line

History begins with the first successful refresh. TokPace waits for real samples from a comparable prior window.

Quota and token totals differ

TokPace displays subscription quota percentages from Tokscale's usage command. Token totals in Tokscale describe model consumption. These measurements answer different questions.

Development

cd app
swift test
swift build -c release
cd ..
./scripts/package-tokpace.sh

See CONTRIBUTING.md, SECURITY.md, and CHANGELOG.md.

Credits and license

TokPace is based on AIPace, used under the MIT License. Quota data comes from a separate local installation of Tokscale. See THIRD_PARTY_NOTICES.md.

The project is unofficial and is not affiliated with Anthropic, OpenAI, AIPace, or Tokscale. The root LICENSE remains unchanged and is included in packaged app resources.

About

macOS menu-bar pacing for Claude and Codex quotas from Tokscale

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages