Overview
Thezeroclaw config command provides a complete interface for managing your ZeroClaw configuration. It supports:
- Viewing the full effective configuration
- Querying specific values by dot-path notation
- Setting values and persisting to config file
- Exporting the configuration JSON Schema
config.toml (or ZEROCLAW_CONFIG_DIR if set).
Subcommands
zeroclaw config show
Display the full effective configuration with secrets masked.Usage
Example Output
Secrets Masking
Sensitive fields are automatically masked:api_key,api_keysbot_tokenpaired_tokensdb_urlsecret_keywebhook_secrethttp_proxy,https_proxy,all_proxy
zeroclaw config get
Query a specific configuration value using dot-path notation.Usage
Examples
Dot-Path Syntax
Use dots to traverse nested objects:Error Handling
zeroclaw config set
Update a configuration value and persist it toconfig.toml.
Usage
Type Inference
Values are automatically parsed:true/false→ Booleannull→ Null123→ Integer3.14→ Float{...}or[...]→ JSON object/array- Everything else → String
Examples
Set Simple Values
Set Arrays
Set Objects
Set Enum Values
Validation
Type mismatches are rejected:Persistence
Changes are immediately saved toconfig.toml:
zeroclaw config schema
Export the full configuration JSON Schema (draft 2020-12) to stdout.Usage
Example Output
Use Cases
- Validation: Use schema to validate config files
- Documentation: Generate config reference docs
- IDE support: JSON Schema for autocomplete in editors
- Type generation: Generate types for other languages
Configuration File Location
Default Location
Custom Location
Environment Variable Overrides
Some settings can be overridden via environment variables:config set.
Common Configuration Tasks
Change Default Provider
Adjust Security Settings
Configure Gateway
Tune Agent Performance
Memory Backend
Configuration Sections
Major configuration sections:gateway- Gateway server settingsagent- Agent behavior and limitsautonomy- Autonomy level and restrictionsmemory- Memory backend configurationsecurity- Security features (OTP, e-stop)channels- Channel integrations (Telegram, Discord, etc.)peripherals- Hardware peripheral settingscron- Scheduled task settingsheartbeat- Health monitoringobservability- Logging and tracing
Backup and Restore
Backup Configuration
Restore Configuration
Validation and Testing
Exit Codes
0- Success1- Error (key not found, invalid value, write failure)2- Configuration file error
Related Commands
zeroclaw status- View effective configuration in contextzeroclaw onboard- Initial configuration wizard