Docs/Server/config.toml reference

config.toml reference

Every setting in HolaClaw Server's config.toml — server, providers, models, browser, backups and retention — with types, defaults and examples.

6 min read Updated November 16, 2026
  • Server
  • Configuration
  • Reference

config.toml is the main configuration file of a HolaClaw Server installation. It sits at the root of the config directory and holds the server settings, the providers and models, the browser, the daemon's backups and how long trace data is kept.

This reference mirrors the schema holaclaw check validates against. For the machine-readable version, run holaclaw config schema config.toml. The generated reference in the repository is docs/reference/config.md.

A complete example

toml
version = 1

[server]
listen     = "127.0.0.1:8484"
public_url = "https://claw.example"

[providers.openrouter]
type     = "openai-compatible"
base_url = "https://openrouter.ai/api/v1"
auth     = "api-key"
sort     = "throughput"

[models.default]
provider = "openrouter"
id       = "deepseek/deepseek-v4.1-flash"
context  = 128000
tools    = true

[browser]
headless = false

[backups]
every = "24h"
keep  = 7

[retention]
events_days = 30

version

Key Type Required Description
version integer yes The config directory version. Currently 1. Every file of the directory must carry the same value.

server

The Control API and the storage locations.

Key Type Default Description
server.socket string /run/holaclaw/holaclaw.sock for a system install Unix socket path for the Control API. The holaclaw command talks to the daemon here.
server.listen string unset Optional TCP address, such as 127.0.0.1:8484. Off loopback, it needs a token and TLS. HOLACLAW_LISTEN wins.
server.public_url string unset The address devices reach the Control API at, used for pairing links. Unset, devices use listen unless it is loopback or a wildcard. HOLACLAW_PUBLIC_URL wins.
server.tls_cert string unset TLS certificate file for listen.
server.tls_key string unset TLS key file for listen.
server.allow_insecure_transport boolean false Serve an off-loopback listen over plain http, without TLS. A token is still required. Use it only behind a TLS proxy or inside a container. HOLACLAW_ALLOW_INSECURE_TRANSPORT wins.
server.data_dir string the data directory inside the config directory Directory holding the SQLite database and the blob store. A relative path is relative to the config directory.
server.secrets_dir string /etc/holaclaw-secrets Absolute path of the directory holding auth.toml. init sets it to the secrets directory inside the config directory on a host install.

A non-loopback listen without TLS or allow_insecure_transport is an error (NET001).

providers

Named connections to model endpoints: [providers.<name>]. The name is yours to choose and is what models point at.

Key Type Allowed values Default Description
type string openai-compatible, codex Required. openai-compatible covers OpenAI, OpenRouter, Ollama and any endpoint that speaks the OpenAI API. codex is a ChatGPT subscription.
base_url string The endpoint's base URL, ending in /v1 for an OpenAI-compatible endpoint.
auth string none, api-key, subscription none How HolaClaw Server authenticates. api-key sends the key stored with holaclaw auth set. subscription is for codex.
api_key string Only an env:VAR reference, such as "env:OPENROUTER_API_KEY". A literal key here is an error (CFG009): store it with holaclaw auth set instead.
max_concurrent integer unlimited Requests in flight at once on this provider.
sort string throughput, latency, price Routing preference for a multi-provider gateway, sent as OpenRouter's provider.sort. throughput is the fast choice.
toml
[providers.ollama]
type     = "openai-compatible"
base_url = "http://localhost:11434/v1"
max_concurrent = 1

models

Named model profiles: [models.<name>]. Agents refer to them by name in their roles.

Key Type Allowed values Default Description
provider string Required. The provider serving this model.
id string Required. The model id on the wire, such as deepseek/deepseek-v4.1-flash.
api string chat, decisions, images chat The API this model speaks. decisions is for a guard or browser decision model, images for image generation.
context integer Context window in tokens. Required for a chat model, ignored otherwise. It must match the window the endpoint actually runs.
tools boolean The model supports native tool calling.
vision boolean The model accepts image input.
reasoning string none, minimal, low, medium, high, xhigh, max, ultra the model's default Reasoning effort for calls that set none. none turns thinking off; the others are passed through, and a model may refuse one it does not support.
timeout duration Whole-request timeout, such as "120s".
url string Absolute endpoint override. Required for a decisions model.
schema_profile string llamacpp Strips JSON-schema keywords that llama.cpp's grammar cannot handle.
strict boolean Promote tool calls the model leaked into its text into real tool calls.
thinking_tags list of strings Extra reasoning-tag names to scrub from replies.
toml
# A decision model, for the guard or the browser
[models.jev]
provider = "openrouter"
id       = "~typesafe/jev-latest"
api      = "decisions"
url      = "https://openrouter.ai/api/alpha/decisions"

# An image model; turns on the image.generate tool when an agent's image role names it
[models.muse]
provider = "openrouter"
id       = "meta/muse-image"
api      = "images"

browser

The browser sidecar connection. With no [browser] table, there is no browser unless HOLACLAW_BROWSER_ENABLED is true. Once it is on, every agent gets the browser.do tool unless its agent.toml turns it off. See The browser.

Key Type Default Description
browser.enabled boolean true once the table exists Turn the browser on. HOLACLAW_BROWSER_ENABLED wins.
browser.socket string /run/holaclaw-browser/browser.sock Unix socket where the sidecar (holaclaw browser) listens.
browser.binary string discovered at runtime Absolute path to the browser binary, only when Chromium is not on PATH.
browser.headless boolean false Run without a visible window. By default the browser draws to a window on Xvfb; set true on hosts without Xvfb.

backups

The daemon's own automatic backups. See Backups and restore.

Key Type Default Description
backups.every duration 24h How often the daemon takes an automatic backup.
backups.keep integer 7 Automatic backups to keep, the oldest deleted first. 0 takes none. Backups you asked for are never deleted.

retention

How long traceability data is kept.

Key Type Default Description
retention.events_days integer 30 Days of trace events to keep. The ids of sent messages, which route reactions, are kept as long.

Was this page helpful?

Can’t find what you need?

Ask the community on Discord.