Cross-session agent statistics and usage rollups. These endpoints return aggregate counters persisted by the agent daemon — session-level statistics, usage rollups grouped by provider/account, and usage rollups grouped by model/provider. Use them to build dashboards, cost reports, or to query historical activity from outside an active session.
Returns the cross-session usage aggregate — per-session counters rolled up over persisted records. Use ?scope=cwd (default) to roll up the current working directory, or ?scope=all to roll up every session. A realm header is rejected on this route.
cwd (default) rolls up the current working directory; all rolls up every session.
X-Hoody-Cwd
header
string
No
Per-request working-directory scope: the .hoody project layer / record cwd / tool+workflow cwd. Required by routes that resolve a cwd.
X-Hoody-Config-Dir
header
string
No
Per-request --config-dir override selecting which on-disk .hoody install a stateless read/write resolves (HoodyPaths).
X-Hoody-Container
header
string
No
Per-request bound remote container (omitted = local). Rejected (400) on routes with no container dimension.
X-Hoody-Realm
header
string
No
Per-request realm selector: global or a 24-hex id (also accepted as ?realm=). Rejected (400 realm_scope_unsupported) on active-only / no-realm routes.
realm
query
string
No
Query alias of the X-Hoody-Realm header (read only when the header is absent): global or a 24-hex id. Rejected (400 realm_scope_unsupported) on active-only / no-realm routes.
Returns a per-(provider, account) usage rollup from the global usage store. Pass ?since=<unix-seconds> to bound the lower timestamp; omit it for all-time. A realm header returns 400 realm_scope_unsupported because the global usage store has no realm dimension.
Unix-seconds lower bound; omit for all-time. A negative/non-numeric value is rejected 400.
X-Hoody-Cwd
header
string
No
Per-request working-directory scope: the .hoody project layer / record cwd / tool+workflow cwd. Required by routes that resolve a cwd.
X-Hoody-Config-Dir
header
string
No
Per-request --config-dir override selecting which on-disk .hoody install a stateless read/write resolves (HoodyPaths).
X-Hoody-Container
header
string
No
Per-request bound remote container (omitted = local). Rejected (400) on routes with no container dimension.
X-Hoody-Realm
header
string
No
Per-request realm selector: global or a 24-hex id (also accepted as ?realm=). Rejected (400 realm_scope_unsupported) on active-only / no-realm routes.
realm
query
string
No
Query alias of the X-Hoody-Realm header (read only when the header is absent): global or a 24-hex id. Rejected (400 realm_scope_unsupported) on active-only / no-realm routes.
Returns a per-(model, provider) usage rollup from the global usage store — call counts, success rate, cost, and latency. Pass ?since=<unix-seconds> (default all-time). The usage store is global and cwd-independent and is not realm-scoped, so a realm header returns 400 realm_scope_unsupported and the rollup is identical regardless of the active realm.
Unix-seconds lower bound; omit for all-time. A negative/non-numeric value is rejected 400.
X-Hoody-Cwd
header
string
No
Per-request working-directory scope: the .hoody project layer / record cwd / tool+workflow cwd. Required by routes that resolve a cwd.
X-Hoody-Config-Dir
header
string
No
Per-request --config-dir override selecting which on-disk .hoody install a stateless read/write resolves (HoodyPaths).
X-Hoody-Container
header
string
No
Per-request bound remote container (omitted = local). Rejected (400) on routes with no container dimension.
X-Hoody-Realm
header
string
No
Per-request realm selector: global or a 24-hex id (also accepted as ?realm=). Rejected (400 realm_scope_unsupported) on active-only / no-realm routes.
realm
query
string
No
Query alias of the X-Hoody-Realm header (read only when the header is absent): global or a 24-hex id. Rejected (400 realm_scope_unsupported) on active-only / no-realm routes.