Expand description
Configuration schema, secrets, and related types for ZeroClaw.
Modules§
- api_
error - Structured error type for the gateway HTTP CRUD surface and its CLI peer.
- autonomy
- comment_
writer - Shared TOML comment-writing helpers used by both the gateway HTTP CRUD
handlers and the CLI
zeroclaw config set --comment/zeroclaw config patchflow. Walks atoml_edit::DocumentMutto a leaf key by dotted path and decorates its leading whitespace with# {comment}\n. Empty comment string strips comment lines from the existing prefix. - config
- Shim module so
Configurablederive macro’s generatedcrate::config::*paths resolve. The macro was written assuming it runs inside the root crate wheremod configexists. - cost
- domain_
matcher - env_
overrides - V0.8.0 env-var override mechanism.
- helpers
- Property helpers used by the
Configurablederive macro and thezeroclaw configCLI. - migration
- multi_
agent - Multi-agent runtime types: alias newtypes, access-mode enum, peer
external entries, and the nested config structs that wire into
crate::schema::AliasedAgentConfigandcrate::schema::Config. - pairing
- paths
- Shared path helpers used by both schema-tier validation and the scoped file browser. Single source of truth for “lexically normalize a path” and “resolve a relative input under a fixed root with no escape”.
- platform
- policy
- provider_
aliases - ModelProvider alias functions used by config validation.
- providers
- scattered_
types - Config types that were originally defined in their home modules (agent, channels, tools, trust) but are needed by the config schema. Moved here to break circular dependencies.
- schema
- secrets
- sections
- Onboarding sections surface — a flat ordered set of
Sections the operator walks (new install) or scans (returning user) to configure a working ZeroClaw deployment. - security
- Shim module so
Configurablederive macro’s generatedcrate::security::*paths resolve. - skill_
bundles - Skill-bundle directory rules and helpers.
- traits
- typed_
value - Strictly-typed JSON-to-
Config::set_propvalue coercion. - validation_
warnings - Non-fatal validation warnings — config that loads and validates
successfully (i.e.
Config::validate()returnsOk(())) but will fail at agent runtime because of a logical inconsistency the schema can’t enforce structurally.
Macros§
- define_
provider_ ref - for_
each_ model_ provider_ slot - Macro that expands to a single source of truth for the per-provider-type
slot list on
ModelProviders. Every helper that needs to walk every slot (first_model_provider,iter_entries,is_empty, etc.) goes through this macro so adding a new model_provider type is a one-line addition here, not a shotgun edit across multiple helpers. - for_
each_ transcription_ provider_ slot - Slot list for transcription providers.
- for_
each_ tts_ provider_ slot - Slot list for TTS providers. Single source of truth shared between the typed-provider wrapper and the cost-rates wrapper — adding a TTS family is a one-line edit here.
- validation_
bail - Per-bail-site shorthand for emitting a structured
ConfigApiErrorinside avalidate()chain that returnsanyhow::Result<()>. Wraps the structured error as the anyhow source soConfigApiError::from_validationdowncasts to it without having to re-classify the message text. Pattern: