Overview

The /usage command is an inline command available inside an interactive Gizzi Code session. It prints your Allternit plan (Free, Plus, Max or Ultra, named as Allternit Desktop names them), your credits and Cloud balance, the plan limits of each CLI brain you are signed in to, and a live summary of the current session: the active model, context-window use, cost, duration and tokens. The footer shows your credit balance next to the context meter, for example credits $41.20 · context: 12% (24k/200k). It is hidden when you are not signed in. Settings › Usage shows the same plan and limits.

/status tabs

/status holds four tabs: Status, Usage, Cost and Stats. Press Tab or the left and right arrow keys to switch. /status usage, /status cost and /status stats open that tab directly. The old commands still work for one release as hidden aliases. They no longer appear in /help or the slash menu: In print mode (gizzi -p), --remote sessions and Remote Control, /usage and /cost still print the text summary described below, because those places cannot show tabs. Use it when you want to:
  • Check how much of the model’s context window is occupied
  • See the running cost and duration of the current session
  • Verify which model and directory the session is using
  • Diagnose rate-limit or context-overflow warnings
/usage is a session-local command, not a top-level shell command. Run it from the Gizzi Code REPL/TUI prompt by typing /usage and pressing Enter.

gizzi usage (shell command)

gizzi usage prints your Allternit Cloud inference usage from the shell, using the credential you already have from gizzi login (or ALLTERNIT_API_KEY / ALLTERNIT_API_TOKEN).
The table shows requests, prompt tokens, completion tokens and cost in USD per group, with a total row. Requests Gizzi Code sends to Allternit Cloud carry an X-Allternit-Client: gizzi-code/<version> header so they appear under the gizzi-code client. If the server does not offer usage reporting yet, the command says so.

Command reference

/usage works in both interactive and non-interactive sessions. It does not modify session state and can be run any number of times.

Output sections

Running /usage produces a small inline panel with the following sections.

Session context

Context window

A progress bar shows the percentage of the active model’s context window currently consumed. The bar changes color based on utilization: The count includes input tokens, cache-read tokens, and cache-creation tokens.

Session totals

Allternit account

Read from Allternit Cloud (GET /api/v1/me/usage, the route Desktop’s plan meter uses). It costs nothing and runs no model. Gizzi signs in with ALLTERNIT_API_TOKEN, ALLTERNIT_API_KEY, or the device token from gizzi login, in that order. The billing line comes from GET /api/v1/billing/subscription (billing_provider). /upgrade for a plan billed by Apple or Google tells you to change it in the App Store or Google Play instead of opening web checkout. Not signed in: the section says so and names gizzi login. Nothing is made up.

CLI brains

The plan limits that each CLI brain reports for your own subscription (5-hour and weekly windows, with reset times). A CLI you are not signed in to is left out.

Usage examples

Check usage mid-session

Example output:

Use in non-interactive mode

/usage is also available in non-interactive sessions, making it useful in scripts or remote/attached sessions where you want a quick consumption snapshot without leaving the terminal.

Common flags

/usage does not accept any flags or arguments. All displayed values are derived automatically from the current session state.

Interpreting context-window color

If the context bar is yellow or red, consider one of the following:
  • Start a fresh session for a new task
  • Use gizzi run --continue or gizzi run --session to fork or switch sessions
  • Compact the conversation with /compact if available
  • Reduce the amount of attached context or file attachments