Docs/Server/The browser

The browser

Let a HolaClaw Server agent open web pages in Chromium. Set up the browser sidecar for your deployment, and limit where it may go.

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

The browser lets the agent open and use web pages in Chromium, with the browser.do tool. It runs in a separate process, the browser sidecar, under its own user where the deployment allows it, so a compromised page is kept away from the daemon's secrets.

The browser is off until you turn it on: add a [browser] table to config.toml, or set HOLACLAW_BROWSER_ENABLED=true. Once it is on, every agent gets browser.do, unless its agent.toml turns it off. The sidecar needs Chromium, and Xvfb unless headless = true.

Set it up

In a container

Nothing to do. The latest image holds Chromium and Xvfb and sets HOLACLAW_BROWSER_ENABLED=true, and the entrypoint runs the sidecar as its own user next to the daemon. Chromium's sandbox needs the --security-opt seccomp=unconfined of the docker run.

To go without the browser, run the slim image and drop the flag, or pass -e HOLACLAW_BROWSER_ENABLED=false to latest.

As a system service

The sidecar runs as a second user, holaclaw-browser, under its own unit, holaclaw-browser.service, which ships in each release next to holaclaw.service. The install script sets it up with --service --browser, and installs Chromium and Xvfb with apt when they are missing.

To do it by hand, first add an empty [browser] table to /etc/holaclaw/config.toml with sudoedit. Its socket defaults to the unit's. Then, from the directory you downloaded the release into, with $base set as in step 1 of the Debian guide:

Terminal
curl -fL --remote-name-all "$base/holaclaw-browser.service" "$base/SHA256SUMS"
sha256sum --check --ignore-missing SHA256SUMS
sudo apt install chromium xvfb
sudo useradd --system --home-dir /var/lib/holaclaw-browser --shell /usr/sbin/nologin holaclaw-browser
sudo usermod -aG holaclaw-browser holaclaw        # the daemon reaches the sidecar's socket
sudo chgrp holaclaw-browser /etc/holaclaw && sudo chmod 750 /etc/holaclaw
# the sidecar loads the config and the agents:
sudo chgrp -R holaclaw-browser /etc/holaclaw/config.toml /etc/holaclaw/agents
sudo chmod -R g+rX /etc/holaclaw/config.toml /etc/holaclaw/agents
sudo install -m 644 holaclaw-browser.service /etc/systemd/system/holaclaw-browser.service
sudo systemctl daemon-reload
sudo systemctl enable --now holaclaw-browser
sudo systemctl restart holaclaw

The sidecar needs to read config.toml, the agents and, once you add one, channels.toml. Everything else in /etc/holaclaw stays the daemon's alone. Give the group read access again to any agent you add later.

On NixOS

services.holaclaw.browser.enable = true creates the user and the unit, with Chromium and Xvfb, and gives the config directory to the holaclaw-browser group. Make config.toml, the agents and channels.toml readable by that group, and add the [browser] table.

As your own user

install.sh --user --browser runs the sidecar as a second user service, holaclaw-browser, once Chromium and Xvfb are installed.

By hand, install Chromium and Xvfb with your package manager, and put the socket in a directory you own, written out in full (echo $XDG_RUNTIME_DIR prints it):

toml
[browser]
socket = "/run/user/1000/holaclaw-browser.sock"

Start the sidecar before the daemon, with the same config directory:

Terminal
holaclaw browser       # in a terminal of its own; then `holaclaw run`

Warning

Here the sidecar and the daemon run as the same user, so a compromised page is not kept away from auth.toml as it is with a system install or the container. Use it to try the browser out.

Configure it

toml
# config.toml
[browser]
# enabled  = true                # the default once the table exists
# socket   = "/run/holaclaw-browser/browser.sock"
# binary   = "/usr/bin/chromium" # only when Chromium is not on PATH
# headless = false               # true on hosts without Xvfb

[providers.openrouter]
sort = "throughput"              # the route dominates the latency of each move
toml
# agents/main/agent.toml
[models]
decide = "jev"                   # a decision model: one fast call per step
plan   = "small"                 # a fast chat model to plan the moves

[browser]
allow = ["wikipedia.org", "example.com"]
  • Limit where it may go. Without browser.allow, the agent may open any site, and holaclaw check warns BRW005. The policy gate, the taint and the per-step approvals still apply.
  • Give it a decision model. Without a decide role, the chat model answers every step, slowly, and check warns BRW006.
  • Keep one agent off it with browser.enabled = false in its agent.toml.

Every browser key is in the config.toml and agent.toml references.

If the browser does not start

  • BRW003: Chromium's sandbox cannot start. In a container, add --security-opt seccomp=unconfined. HolaClaw Server never runs Chromium with --no-sandbox.
  • The sidecar cannot find Chromium. Set browser.binary to its absolute path.
  • No display. Install Xvfb, or set headless = true.

Was this page helpful?

Can’t find what you need?

Ask the community on Discord.