Use this file to discover all available pages before exploring further.
Usage tracking
What it is
- Pulls provider usage/quota directly from their usage endpoints.
- No estimated costs; only the provider-reported windows.
- Human-readable status output is normalized to , even when an
upstream API reports consumed quota, remaining quota, or only raw counts.
- Session-level and can fall back to the latest
transcript usage entry when the live session snapshot is sparse. That
fallback fills missing token/cache counters, can recover the active runtime
model label, and prefers the larger prompt-oriented total when session
metadata is missing or smaller. Existing nonzero live values still win.
Where it shows up
- in chats: emoji‑rich status card with session tokens + estimated cost (API key only). Provider usage shows for the current model provider when available as a normalized window.
- in chats: per-response usage footer (OAuth shows tokens only).
- in chats: local cost summary aggregated from OpenClaw session logs.
- CLI: prints a full per-provider breakdown.
- CLI: prints the same usage snapshot alongside provider config (use to skip).
- macOS menu bar: “Usage” section under Context (only if available).
Providers + credentials
- Anthropic (Claude): OAuth tokens in auth profiles.
- GitHub Copilot: OAuth tokens in auth profiles.
- Gemini CLI: OAuth tokens in auth profiles.
- JSON usage falls back to ; is normalized into
.
- OpenAI Codex: OAuth tokens in auth profiles (accountId used when present).
- MiniMax: API key or MiniMax OAuth auth profile. OpenClaw treats
, , and as the same MiniMax quota
surface, prefers stored MiniMax OAuth when present, and otherwise falls back
to , , or .
MiniMax's raw / fields mean remaining
quota, so OpenClaw inverts them before display; count-based fields win when
present.
- Coding-plan window labels come from provider hours/minutes fields when
present, then fall back to the / span.
- If the coding-plan endpoint returns , OpenClaw prefers the
chat-model entry, derives the window label from timestamps when explicit
/ fields are absent, and includes the model
name in the plan label.
- Xiaomi MiMo: API key via env/config/auth store ().
- z.ai: API key via env/config/auth store.
Usage is hidden when no usable provider usage auth can be resolved. Providers
can supply plugin-specific usage auth logic; otherwise OpenClaw falls back to
matching OAuth/API-key credentials from auth profiles, environment variables,
or config.
Related