Docs/Server/Configuration overview

Configuration overview

How HolaClaw Server is configured — the files in the config directory, where secrets live, how to validate a change with holaclaw check, and how to apply it.

3 min read Updated November 16, 2026
  • Server
  • Configuration

HolaClaw Server is configured with a handful of TOML files in its config directory. holaclaw init writes a working set for one provider and one model; you edit them to change the model, add channels, connect tools or tighten the policy.

The files

File What it configures Reference
config.toml the server, the providers, the models, the browser, backups and retention config.toml
agents/<name>/agent.toml one agent: its tools, its model roles, its policy and limits agent.toml
agents/<name>/prompt.md that agent's system prompt, in Markdown
channels.toml the chat apps the agents answer on, and who may talk channels.toml
connectors.toml remote MCP servers whose tools agents may use connectors.toml
auth.toml (in the secrets directory) API keys, bot tokens and sign-in tokens Secrets

channels.toml and connectors.toml are optional. Every file carries version = 1, and every file of one directory must carry the same version.

init creates one agent, main. Its directory is agents/main/.

Where the config directory is

Deployment Config directory
Container /etc/holaclaw, in the holaclaw-config volume
System service /etc/holaclaw
Your own user ~/.config/holaclaw
NixOS /etc/holaclaw

Every holaclaw command reads /etc/holaclaw by default. --config <dir> or the HOLACLAW_CONFIG environment variable points it elsewhere. As a user other than root, on a machine with no /etc/holaclaw, the default is $XDG_CONFIG_HOME/holaclaw.

How to edit it

How you edit the files depends on the deployment:

  • Container: copy the file out, edit it, and write it back. See Edit the config.
  • System service: sudoedit /etc/holaclaw/config.toml, which keeps the owner and mode.
  • Your own user: edit the files in ~/.config/holaclaw directly.
  • NixOS: edit on the machine with sudoedit, or declare the files in Nix.

Never put a secret in config.toml or any other file you edit. Store it with holaclaw auth set. See Secrets.

Step 1: Check the config

Terminal
holaclaw check --offline

ok: no findings means the config loads. Otherwise each finding names a rule, such as CFG001 for an unknown key or SEC002 for a provider without its key.

  • holaclaw check exits with 0 when clean, 1 on warnings and 2 on errors.
  • --offline skips the calls to the model endpoints. Without it, check also asks each endpoint, and reports, for example, when a model's real context window is smaller than the config says (MOD002).
  • --only and --skip take rule ids or prefixes.

The full list of rules is in the check rules reference.

Step 2: Restart the daemon

The daemon reads its config only at start, so restart it after every change:

Deployment Restart
Container docker restart holaclaw
System service, NixOS sudo systemctl restart holaclaw
Your own user systemctl --user restart holaclaw, or stop and start holaclaw run

A restart is safe: a message interrupted by a stop is queued again and replayed when the daemon starts.

Useful commands

Command What it does
holaclaw check validates the config, as above
holaclaw config env lists the keys an environment variable may set, their value, and where it comes from
holaclaw config schema <file> prints the JSON Schema of config.toml, channels.toml, connectors.toml or agent.toml, for your editor
holaclaw config migrate after an upgrade, prints the diff to the current format; --write applies it after taking a timestamped backup

Value formats

  • Durations are Go duration strings: "90s", "15m", "24h".
  • Paths are written out in full. TOML does not expand variables such as $HOME or $XDG_RUNTIME_DIR.
  • Dotted tool names in a table key must be quoted: "browser.do" = "ask".

Was this page helpful?

Can’t find what you need?

Ask the community on Discord.