Docs/Server/agent.toml reference
agent.toml reference
Every setting in a HolaClaw Server agent's agent.toml — tools, model roles, tool policy, limits, browser, skills and connectors — with defaults and examples.
- Server
- Configuration
- Reference
- Security
Each agent has its own directory under agents/ in the config directory, with an agent.toml and a prompt.md. holaclaw init creates one agent, main. agent.toml decides which tools the agent may use, which models fill its roles, what it may do on its own and what needs your approval.
prompt.md is the agent's system prompt, in Markdown. Edit it to change the agent's personality and instructions.
The agent init writes
version = 1
tools = ["memory", "files", "fetch", "attach", "task.create"]
[models]
chat = "default"
[policy]
read = "allow"
write = "allow"
external = "allow"
exec = "deny"Top-level keys
| Key | Type | Required | Description |
|---|---|---|---|
version |
integer | yes | The config directory version, 1. |
tools |
list of strings | Tool names or groups this agent may use. A group selects every tool that starts with it: "memory" selects memory.search, memory.save and memory.forget. |
|
connectors |
list of strings | Connector ids from connectors.toml whose tools this agent may use. See connectors.toml. |
Tools
| Tool | Risk class | What it does |
|---|---|---|
memory.search |
read | searches what the agent remembers |
memory.save, memory.forget |
write | saves or forgets a memory |
files.read, files.list |
read | reads the agent's workspace |
files.write |
write | writes to the workspace |
attach |
read | attaches a workspace file to the reply |
react |
read | reacts to the message, on channels with reactions |
skill.load |
read | loads one of the agent's skills |
skill.save, skill.forget |
write | the agent learns or forgets a skill; offered only to an owner or admin |
task.create |
write | schedules work for later |
fetch |
external | an HTTP GET; private and loopback addresses are refused |
image.generate |
external | generates an image; present only when the image role is set |
browser.do |
external | drives the browser; present when the browser is on |
exec |
exec | runs a shell command in the workspace |
Connector tools take their class from the server's hints.
models
The roles this agent gives to models. Each value names a [models.<name>] table from config.toml.
| Role | Used for | When unset |
|---|---|---|
chat |
Required. The agent's main model: every turn and every task run. | |
fallback |
A second chat model, used for the rest of a turn when a call fails on a timeout, a server or network error, a rate limit or a spent quota. Every use is traced. | a failed call fails the run |
summarize |
Compaction: condensing the old part of a long conversation. | the chat model |
guard |
Classifies each tool call the policy does not settle. | the policy alone decides |
decide |
The browser's per-step decisions. A decisions model is much faster. |
the chat model, slowly |
plan |
Chooses the browser's moves on the page it has read. A fast small model is enough. | the chat model |
vision |
Describes images for a chat model without vision. |
images are refused, unless the chat model has vision |
transcribe |
Turns audio into text, on an OpenAI-compatible provider. | audio is refused |
embed |
Vectors for memory search, on an OpenAI-compatible provider. | memory search is full-text only |
image |
Image generation; turns on image.generate. |
no image tool |
[models]
chat = "default"
fallback = "cloud"
guard = "jev"
decide = "jev"
summarize = "small"policy
What the agent may do on its own. Every tool belongs to a risk class, and each class is allow, ask or deny. ask pauses the turn until an owner or admin answers the approval, in the chat or with holaclaw approvals.
| Key | Allowed values | Default | Description |
|---|---|---|---|
policy.read |
allow, ask, deny |
allow |
read-class tools |
policy.write |
allow, ask, deny |
allow |
write-class tools |
policy.external |
allow, ask, deny |
allow |
external-class tools |
policy.exec |
allow, ask, deny |
deny |
exec-class tools |
policy.exec_allow |
list of strings | Commands exec may run without asking, such as "git status". |
|
policy.tools |
map of tool name to allow, ask, deny |
Per-tool overrides. Quote dotted names: "browser.do" = "ask". |
|
policy.guard_mode |
recommend, auto |
recommend |
How a guard verdict is used. recommend shows advice on approvals; auto allows or denies, and nobody is asked. auto needs a guard role. |
policy.guard_threshold |
number | 0.7 |
Score at or above which the guard calls a tool call safe. |
policy.taint_escalates |
boolean | Untrusted content (a fetched page, a connector result) moves exec and external from allow to ask. |
|
policy.taint_threshold |
number | 0.5 |
Taint score at or above which untrusted content escalates the policy. |
policy.taint_decay_calls |
integer | 3 |
Tool calls after untrusted content enters the turn that still count as tainted. |
Guests and tasks
Two sub-tables set the policy for other kinds of runs:
| Table | Applies to | Defaults |
|---|---|---|
[policy.guest] |
pending identities on a channel with dm = "open" |
read = "allow", write, external and exec = "deny" |
[policy.task] |
detached task runs; an ask there is a deny unless a grant answers it |
read, write and external = "allow", exec = "deny" |
Each takes read, write, external and exec.
Enabling exec
Warning
exec runs /bin/sh -c in the agent's workspace with no OS sandbox. What a command can reach is what the daemon's user can reach. Prefer the container, and prefer ask over allow.
tools = ["memory", "files", "fetch", "attach", "task.create", "exec"]
[policy]
exec = "ask"
exec_allow = ["git status", "ls"]holaclaw check warns POL001 for exec = "allow", and notes POL002 when exec is in tools but the policy denies it.
limits
Per-turn limits. Unset means the built-in default.
| Key | Type | Default | Description |
|---|---|---|---|
limits.max_steps |
integer | built-in | Hard step limit per turn. |
limits.reply_reserve |
integer | built-in | Tokens of the context window reserved for the reply. |
limits.images_per_day |
integer | 20 |
Generated images per agent and UTC day. 0 refuses every call. |
browser
Per-agent browser limits, when the browser is on in config.toml.
| Key | Type | Default | Description |
|---|---|---|---|
browser.enabled |
boolean | true |
false keeps browser.do from this agent. |
browser.allow |
list of strings | any site | Host allow-list the agent's browser may navigate to, such as ["wikipedia.org"]. Without one, check warns BRW005. |
skills
| Key | Type | Description |
|---|---|---|
skills.disabled |
list of strings | Skill names kept out of this agent's index at every level. |
Related
Was this page helpful?
