Skip to main content

Module cloud

Module cloud 

Source
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::ProviderHost port. The extra-roots HTTP client and the claude --version UA 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§

ExtraUsage
Bonus / overage credits view returned alongside the per-window utilization figures.
UsageSnapshot
Snapshot of the user’s Anthropic plan utilization at a point in time. Composed by the forge-gateway backends and rendered by a view.
UsageWindow
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 UsageSnapshot field holds the value - no in-struct label.

Enums§

UsageSourceKind
Origin of a UsageSnapshot, and with it which half of the snapshot carries data: Oauth and ZaiMonitor fill the windows, OpenRouterKey fills UsageSnapshot::spend.