Skip to main content

ironclaw config

Manage application configuration settings. Settings are stored in the database (if available) or on disk, with environment variables taking precedence.

Subcommands

  • init - Generate a default config.toml file
  • list - List all settings and their current values
  • get - Get a specific setting value
  • set - Set a setting value
  • reset - Reset a setting to its default value
  • path - Show settings storage info

Settings Priority

Settings are resolved in this order (highest to lowest priority):
  1. Environment variables - AGENT_NAME=mybot
  2. config.toml file - ~/.ironclaw/config.toml
  3. Database - Settings table
  4. Defaults - Built-in defaults

ironclaw config init

Generate a default config.toml file with current settings.

Syntax

Flags

--output, -o <PATH> Output path for the config file.
  • Default: ~/.ironclaw/config.toml
--force Overwrite existing file.

Examples

Output

The generated file includes all settings with their current values, organized by category:

ironclaw config list

List all settings and their current values.

Syntax

Flags

--filter, -f <PREFIX> Show only settings matching this prefix.

Examples

Output

Long values are truncated:

ironclaw config get

Get a specific setting value.

Syntax

Arguments

<PATH> Setting path using dot notation (e.g., agent.name, llm.model).

Examples

Error Handling


ironclaw config set

Set a setting value.

Syntax

Arguments

<PATH> Setting path using dot notation. <VALUE> Value to set. Can be a string, number, boolean, or JSON.

Examples

Requirements

  • Requires database connection
  • Setting path must exist in the schema
  • Value must be valid for the setting type

Error Handling


ironclaw config reset

Reset a setting to its default value.

Syntax

Arguments

<PATH> Setting path to reset.

Examples

Behavior

  • Removes the setting from the database
  • The default value will be used
  • Environment variables and config.toml still take precedence

ironclaw config path

Show settings storage information.

Syntax

Output

If config.toml doesn’t exist:

Common Settings

Agent Settings

Heartbeat Settings

LLM Settings

Workspace Settings

Configuration File Format

The config.toml file uses TOML format:

Troubleshooting

”Database connection required”

config set and config reset require a database connection:

“Warning: Could not connect to database”

The command falls back to disk-based configuration. Settings will be read from defaults and config.toml only.

Settings not taking effect

Remember the priority order:
  1. Check environment variables: env | grep -i <setting>
  2. Check config.toml: cat ~/.ironclaw/config.toml
  3. Check database: ironclaw config get <path>
  • onboard - Initial configuration wizard
  • doctor - Validate configuration