Expand description
Network-side state. OAuth flow, account info, usage polling - anything that talks to api.anthropic.com directly (NOT through the claude CLI subprocess).
Re-exports§
pub use provider_host::AgentHost;
Modules§
- provider_
host - forge-agent’s implementation of the
forge_gateway::ProviderHostport. The extra-roots HTTP client and theclaude --versionUA cache stay on this side of the port so forge-gateway carries no process plumbing of its own. - service_
status - Anthropic statuspage poller. Pulls the public summary endpoint and classifies whether Claude Code or the underlying Claude API is in a degraded state.
Structs§
- Extra
Usage - Bonus / overage credits view returned alongside the per-window utilization figures.
- Usage
Snapshot - Snapshot of the user’s Anthropic plan utilization at a point in time. Composed by the forge-gateway backends and rendered by a view.
- Usage
Window - One named usage window inside a snapshot (5-hour, 7-day, etc.).
The window’s identity (5-hour vs 7-day vs 7-day-opus) is implicit
in which
UsageSnapshotfield holds the value - no in-struct label.
Enums§
- Usage
Source Kind - Origin of a
UsageSnapshot, and with it which half of the snapshot carries data:OauthandZaiMonitorfill the windows,OpenRouterKeyfillsUsageSnapshot::spend.