Skip to main content

Overview

The zeroclaw 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
All configuration is stored in 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_keys
  • bot_token
  • paired_tokens
  • db_url
  • secret_key
  • webhook_secret
  • http_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 to config.toml.

Usage

Type Inference

Values are automatically parsed:
  • true / false → Boolean
  • null → Null
  • 123 → Integer
  • 3.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 to config.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:
Environment overrides are not persisted when using 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 settings
  • agent - Agent behavior and limits
  • autonomy - Autonomy level and restrictions
  • memory - Memory backend configuration
  • security - Security features (OTP, e-stop)
  • channels - Channel integrations (Telegram, Discord, etc.)
  • peripherals - Hardware peripheral settings
  • cron - Scheduled task settings
  • heartbeat - Health monitoring
  • observability - Logging and tracing

Backup and Restore

Backup Configuration

Restore Configuration

Validation and Testing

Exit Codes

  • 0 - Success
  • 1 - Error (key not found, invalid value, write failure)
  • 2 - Configuration file error

See Also