Strip: the API key's balance beside a key, on API-key conversations #18

Merged
merge-queue merged 1 commit from api-balance into main 2026-12-01 21:18:54 -08:00
Owner

The strip had no way to show how much prepaid credit is left on the Anthropic API key (SES-397).

Added: Balance (the Console's prepaid credit as strip-owner last read it: cents, currency, auto-reload, when, signed out, why a read failed), BalanceLine (a key, then the amount: red at nothing, amber under $10 without auto-reload, "sign in" when the Console sign-in is gone, a dim dash before a first reading) as the clickable balance range, Usage.APIKey and Report.APIKey (the conversation's claude bills to the key), and Model.Balance.
Changed: UsageLine takes the balance and shows the balance part between the conversation's cost and the account's windows, only when the conversation is on the API key.
Left alone: subscription conversations draw exactly as before. Nothing fills Balance or APIKey yet: strip-owner, tmux-strip and at-claude follow.

https://openproject.home.romaine.life/wp/SES-397

The strip had no way to show how much prepaid credit is left on the Anthropic API key ([SES-397](https://openproject.home.romaine.life/wp/SES-397)). **Added:** `Balance` (the Console's prepaid credit as strip-owner last read it: cents, currency, auto-reload, when, signed out, why a read failed), `BalanceLine` (a key, then the amount: red at nothing, amber under $10 without auto-reload, "sign in" when the Console sign-in is gone, a dim dash before a first reading) as the clickable `balance` range, `Usage.APIKey` and `Report.APIKey` (the conversation's claude bills to the key), and `Model.Balance`. **Changed:** `UsageLine` takes the balance and shows the balance part between the conversation's cost and the account's windows, only when the conversation is on the API key. **Left alone:** subscription conversations draw exactly as before. Nothing fills `Balance` or `APIKey` yet: strip-owner, tmux-strip and at-claude follow. https://openproject.home.romaine.life/wp/SES-397
Strip: the API key's balance beside a key, on API-key conversations
All checks were successful
Suite release / scope (pull_request) Successful in 11s
Suite release / reserve (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite go / reused-checks (pull_request) Successful in 8s
merge-queue landed on main
Suite default / scope (pull_request) Successful in 9s
Suite default / check-fetches (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 10s
Suite release / publish (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 11s
Suite go / check-format (pull_request) Successful in 12s
merge-queue / group release built the releases of the 3 repositories its landing bumps before it lands [p:ec7b32f2c161948216a29eec]
Suite go / check-test-windows (pull_request) Successful in 54s
Suite go / check-services (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 11s
Suite default / reused-checks (pull_request) Successful in 10s
merge-queue / group passed with the 3 modules that use it [k:d6b890bc]
4a74075c3e
https://openproject.home.romaine.life/wp/SES-397
merge-queue deleted branch api-balance 2026-12-01 21:18:54 -08:00
Collaborator

merge-queue is delivering this change's apps together, in one run: romaine-life/strip-owner v0.1.21, romaine-life/tmux-strip v0.1.15, romaine-life/work-item-management v0.1.18. Each PC installs them in one pass.

merge-queue is delivering this change's apps together, in [one run](https://forgejo.romaine.life/romaine-life/pipeline-templates/actions/runs/2506): romaine-life/strip-owner v0.1.21, romaine-life/tmux-strip v0.1.15, romaine-life/work-item-management v0.1.18. Each PC installs them in one pass.
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/strip!18
No description provided.