Floating quotas, Claude Code HUD, and dynamic 5h-window schedules — alongside your existing AI tools.
A native macOS companion focused on two jobs: displaying quotas in floating panels and Claude Code HUD, and scheduling small requests to attempt to start eligible providers' dynamic 5h windows.
- Keep quotas visible. See existing accounts' allowances, usage, and reset times in a floating panel or Claude Code HUD without reopening provider dashboards.
- Schedule the start of dynamic 5h windows. For providers whose windows start with the first qualifying request, schedule small calls at chosen times to try to start the next window and align its timing with your working day. Results depend on provider rules: calls do not force a reset, do not guarantee opening a window, and may consume quota.
QuotaNest is not an API gateway. It does not proxy, route, or load-balance your application requests. It works alongside existing AI gateways and account-management tools such as Magpie, CPAMP, 9router, and cc-switch, adding quota visibility and scheduled calls.
Reuse credentials and API Keys you have already configured. For supported source tools and credential formats, imports store read-only source references, so you do not have to re-enter credentials or keep another persistent copy in QuotaNest. Subsequent requests resolve the current authentication from the source configuration. Your existing tools continue to own the connection and credentials; QuotaNest adds floating panels, Claude Code HUD output, and scheduled requests.
quotanest-demo-en.mp4
Watch / download the English MP4 · 中文版视频
The demos use the current native app with isolated sample accounts and illustrative quota values. They do not send paid model requests. Video production follows the screenshot → GSAP → HyperFrames approach used by CCS; reproducible sources and the verified toolchain are in docs/video-source.
| Capability | What it does |
|---|---|
| Four floating layouts | Card, glass, compact, and list; drag from anywhere. The title appears on click and hides five seconds after the pointer leaves. |
| Claude Code HUD | Choose displayed accounts in settings or the account display page; both controls share the same preference. |
| Small scheduled calls | Configure local-time requests for eligible plans with dynamic usage windows. Calls consume quota and cannot guarantee opening or resetting a window. |
| Read-only imports | Reference existing records from 9router, cc-switch, CPAMP, or Magpie, preserving original record and provider IDs. |
| Multi-account overview | View quota windows, balances, reset times, old data, and configuration health without opening each provider site. |
| 55 built-in types | 22 types declare quota queries and model calls; 33 currently support quota queries only. See the provider catalog. |
| Auth or API Key | Use the authentication modes declared by each provider. Quota queries inherit the same base authentication. |
| Source synchronization | Check imported references hourly while the app runs, or sync now. Correct changed record IDs only when the identity is uniquely established. |
| English / 中文 | Change the interface language immediately in Settings & Appearance. The app follows the macOS light/dark appearance. |
| History migration | Automatically migrate the former TokenHUD account directory and preferences to QuotaNest with verification, backup, and rollback. |
Homebrew (recommended):
brew install --cask biedongbin/tap/quotanestHomebrew 7+ requires approval for a new third-party cask. If it reports an untrusted tap, trust only this cask and retry:
brew trust --cask biedongbin/tap/quotanest
brew install --cask biedongbin/tap/quotanestThe cask supports Apple Silicon and Intel on macOS 14+ and installs Node.js for the quota adapters. It removes the quarantine attribute only from the installed QuotaNest app, matching the CpampBar installation approach. The app is ad-hoc signed, without Apple Developer ID signing or notarization.
For later releases, use brew upgrade --cask quotanest. You can pass --appdir="$HOME/Applications" to keep applications in your home directory; quit and remove an older manually installed app bundle before taking it over with Homebrew. Account data is stored separately.
Manual download: get QuotaNest-1.0.0-universal.zip from Release v1.0.0, verify it against SHA256SUMS, unzip it, and move QuotaNest.app to Applications. macOS may require approval in System Settings → Privacy & Security on first launch.
Requirements: macOS 14+, the Swiftly-managed Swift toolchain, and Node.js for the bundled JavaScript quota adapters. Node.js 18+ is recommended.
git clone https://github.com/biedongbin/QuotaNest.git
cd QuotaNest
export PATH="$HOME/.swiftly/bin:$PATH"
zsh scripts/package.sh
open ~/Applications/QuotaNest.appQuit a running copy before packaging. The script builds a local app, includes its icon and resources, applies an ad-hoc signature, and installs it in ~/Applications. This is a local build workflow; a notarized download is not assumed.
The system Command Line Tools Swift version can be incompatible with this package's manifest ABI. Use swiftly run swift … rather than switching toolchains mid-build.
Screenshots show isolated demo data, not personal credentials or live service validation. Provider-returned text and user-defined account names remain unchanged when switching languages.
Search built-in types and inspect their authentication and quota/call capabilities before creating an account. Choosing a type opens a draft; it does not immediately create an account.
Each provider determines which modes are supported. Auth references declared JSON credential layouts; API Key accounts use their configured base connection. Quota queries reuse that authentication instead of asking for a separate query key.
| API Key connection | Existing Auth file |
|---|---|
Quota details keep the billing windows and account identity separate. Missing values stay unknown; a failed request is not presented as a successful refresh.
For supported types, select a model that belongs to the intended plan or quota pool, then configure local-time calls. A small request can attempt to start a first-use window when the provider supports that behavior. It is not a reset command, and every request may consume quota.
Import previews show the source tool, provider identity, source record ID, authentication mode, quota adaptation, and import status. Unsupported or unadapted rows are disabled; the column header stays visible while scrolling.
| Source | Current boundary |
|---|---|
| 9router | References providerConnections records by original primary key and provider identity; the authentication layout must be adapted. |
| cc-switch | Currently supports the Claude namespace, identified by id + app_type. Other namespaces are shown as unsupported. |
| CPAMP | References supported CPA JSON authorization files by filename and type. |
| Magpie | Supports adapted provider keys and plugin credential slots; preserves original provider IDs and supports an explicit portable configuration directory. Native CLI/Keychain-owned logins are not imported. |
Imported connection fields are read-only. Maintain credentials in the source tool; local monitoring, visibility, quota queries, and removing the association remain available. Deleting the association does not delete the source.
Automatic synchronization runs hourly while QuotaNest is running. A source record ID is corrected only with a unique, compatible identity match. Ambiguous records, missing evidence, or simultaneous ID/token changes without a trustworthy relationship need manual review. Source checks do not make model calls.
All layouts share the same account data and official provider brand mapping. Color marks retain their colors; monochrome marks adapt to appearance.
| Card | Glass |
|---|---|
| Compact | List |
|---|---|
- Card: side-by-side quota windows in an account card.
- Glass: the highest-used window takes priority, with the remaining periods below.
- Compact: narrow rows with a small gap and no separator lines.
- List: aligned account, period, progress, and value columns with account separators.
Click the menu-bar item for the overview, double-click it to toggle the floating panel, or right-click for actions. Drag anywhere on the floating panel. Its title starts hidden, appears when clicked, and hides five seconds after the pointer leaves; returning cancels that timer. Appearance follows macOS — there is no separate in-app theme switch.
Use Settings & Appearance → Claude Code HUD to select accounts horizontally with automatic wrapping. The account's Display page uses the same state. Changes sync immediately; a failed HUD write restores the previous selection. Disabled accounts retain their preference for when they are enabled again.
The following is a user-supplied Claude Code HUD example. Its project-directory line was removed before publication; the Chinese usage labels are retained as provided.
Use Report a Problem / Request Support in the provider catalog, or Report Import Problem in the import window. Enter a description, preview the complete safe diagnostic draft, and explicitly confirm public submission.
Claude is optional. Without it, the app still generates the draft locally. With an authenticated gh, submit directly; without gh or a usable login, copy the draft or complete submission in your browser. Nothing is installed automatically.
This version generates diagnostics entirely in the app and does not invoke Claude, even if it is installed. An isolated CLI prototype is kept in test-only code: its privacy checks pass, but the restricted runtime's DNS/TLS path is not verified, so it is not exposed as an app action. See the feedback and privacy guide for exact limits. The feedback feature is included in the refreshed v1.0.0 download. If you installed the original 1.0.0, update the tap and run brew reinstall --cask quotanest to receive the replacement package.
The Star on GitHub button sits above Settings & Appearance in the sidebar. Clicking it uses the local authenticated gh to star QuotaNest; if the tool or login is unavailable, a project-page link is offered. No star is added automatically.
| Item | Location / behavior |
|---|---|
| Application | ~/Applications/QuotaNest.app |
| Account manifests | ~/Library/Application Support/QuotaNest/providers/ |
| Preference domain | local.quotanest |
| Claude HUD integration | ~/.claude/hud/ and Claude's settings.json; CLAUDE_CONFIG_DIR is supported. |
| Previous TokenHUD data | Migrated before initializing language, account state, or background work. The original data is archived under QuotaNest/MigrationBackups/, with a migration report. |
Imported credentials are resolved from their source for the current request; persistent account settings store references. Manually configured API Keys are app-owned credentials and are stored with restrictive file permissions. External Auth files are not refreshed or overwritten.
Do not manually move source files to the app directory. Unsupported Keychain, encrypted, or unadapted credential formats do not become supported merely because they can be exported. The app does not provide a browser OAuth login flow.
Custom accounts support API Key authentication with OpenAI-compatible or Anthropic-compatible model calls. Supply the complete quota URL; the default query is HTTP GET and inherits the base key. There is no independent quota key/cookie field and no guessed billing URL.
Standard quota JSON can include these fields, optionally wrapped in data:
{
"five_hour": { "used_percentage": 25, "resets_at": 1793462400 },
"seven_day": { "used_percentage": 40 },
"windows": [
{ "label": "Monthly", "amount": 12, "limit": 50, "unit": "USD" }
]
}See the provider catalog, account/authentication contract, and verification notes for detailed boundaries. Built-in adaptation is not proof of live connectivity for every vendor or plan.
- Linux.do — community discussions and project sharing.
- Magpie — provider ecosystem and interface references.
- CCS — README structure and demo-video approach.
- Claude Code — Claude Code HUD integration.
MIT. Third-party assets retain their accompanying licenses and notices.