Skip to main content

Module usage

Module usage 

Source
Expand description

One view of “how much is left”, whatever shape it arrived in. Usage comes as a limits[] array or as named five_hour/seven_day objects; both are normalised at the boundary, and a value that fails to normalise is dropped rather than drawn.

Structs§

Snapshot
Window

Enums§

Source
Where a measurement came from, so a stale number is never shown as a live one.

Functions§

anthropic_window_length
How long one of Anthropic’s windows runs, from its kind.
from_config_cache
Claude Code’s own cache. It records the account it was measured for, so a reading for another account can be told apart and ignored.
from_usage_object
A reading taken from Anthropic’s usage endpoint just now.