Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 778 Bytes

File metadata and controls

22 lines (15 loc) · 778 Bytes

Throttle

macOS menu bar app + WidgetKit widget tracking Claude Max and Codex Pro usage limits.

Build

  • Requires: Xcode 16.4+, macOS 14.0+ (Sonoma), XcodeGen
  • Generate project: xcodegen generate
  • Build: xcodebuild -project Throttle.xcodeproj -scheme Throttle -destination 'platform=macOS' build
  • Test shared lib: cd ThrottleShared && swift test

Architecture

Three targets sharing a Swift Package:

  • Throttle — menu bar app, owns polling loop
  • ThrottleWidget — WidgetKit extension, reads App Group store
  • ThrottleShared — models, API clients, Keychain, App Group store

API Endpoints (internal, undocumented)

  • Claude: GET https://claude.ai/api/organizations/{org_id}/usage
  • Codex: GET https://chatgpt.com/backend-api/wham/usage