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§
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.
- same_
reset - Whether two resets of a limit are one: less than
SAME_RESETapart. Public so that whatever else tells one window of a limit from its next, such as the app deciding whether a spent limit was already mentioned, counts them the way readings are merged.