Skip to content

feat: add colab usage for compute-unit balance via ccu-info - #122

Open
zoutei wants to merge 1 commit into
googlecolab:mainfrom
zoutei:feat/ccu-info-usage
Open

zoutei wants to merge 1 commit into
googlecolab:mainfrom
zoutei:feat/ccu-info-usage

Conversation

@zoutei

@zoutei zoutei commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds colab usage, which reports account-level compute-unit balance and consumption rate by calling GET /tun/m/ccu-info on the session backend, using the same bearer token already used for colab new. colab status remains focused on session metadata only; account-level usage gets its own command.

Output

Current balance: 289.81 compute units
Usage rate: 1.54/hr
Active assignments: 1

Testing

Full test suite passes, including client-level request/parsing coverage, formatting coverage, and CLI-level tests for both the success and fetch-failure paths.

Introduce `colab usage`, which reads GET /tun/m/ccu-info on the session
backend (same bearer token as colab new). Keep `colab status` focused on
session metadata only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant