Skip to main content

Module account

Module account 

Source
Expand description

Account identity shapes shared across the forge crates.

Re-exports§

use serde::Deserialize; 🔒
use serde::Deserialize; 🔒
use serde::Serialize; 🔒
use serde::Serialize; 🔒

Structs§

LoadedAccount
One account as the config load produces it. The gateway’s account state is built from these, and the spawn path stamps the per-account env onto the child from here.

Enums§

AccountAuth
How an account proves who it is, which is the only thing that changes what preflight tells you to do about a failed one. Derived from the provider plus the account’s merged env; it carries the distinction and none of the secret.
Provider
Which backend an account talks to, declared per [[accounts]] in forge.toml. This is the single source of truth for how the account is probed and how its usage renders; nothing infers either from ANTHROPIC_BASE_URL, which answers where the credential lives rather than what the backend bills for.