docs/concepts/usage-tracking.md
X% left, even when an
upstream API reports consumed quota, remaining quota, or only raw counts./status and session_status 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./status 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 X% left window./usage off|tokens|full in chats: per-response usage footer (OAuth shows tokens only)./usage cost in chats: local cost summary aggregated from OpenClaw session logs.openclaw status --usage prints a full per-provider breakdown.openclaw channels list prints the same usage snapshot alongside provider config (use --no-usage to skip).stats; stats.cached is normalized into
cacheRead.minimax, minimax-cn, and minimax-portal as the same MiniMax quota
surface, prefers stored MiniMax OAuth when present, and otherwise falls back
to MINIMAX_CODE_PLAN_KEY, MINIMAX_CODING_API_KEY, or MINIMAX_API_KEY.
Usage polling derives the Coding Plan host from models.providers.minimax-portal.baseUrl
or models.providers.minimax.baseUrl when configured, and otherwise uses the
MiniMax CN host.
MiniMax's raw usage_percent / usagePercent fields mean remaining
quota, so OpenClaw inverts them before display; count-based fields win when
present.
start_time / end_time span.model_remains, OpenClaw prefers the
chat-model entry, derives the window label from timestamps when explicit
window_hours / window_minutes fields are absent, and includes the model
name in the plan label.XIAOMI_API_KEY).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.