Docs/Server/Run HolaClaw Server in a container

Run HolaClaw Server in a container

Run HolaClaw Server with Docker or Podman from the official multi-arch image, isolated from the host, with its config, secrets and data in named volumes.

6 min read Updated November 16, 2026
  • Server
  • Installation
  • Docker
  • Podman

The container is the recommended way to run HolaClaw Server when the machine does anything else. The agent, its tools and exec see only the container, never the host, and the only programs exec can run are the ones in the image.

The image ghcr.io/ikitana/holaclaw holds the daemon, the browser sidecar, Chromium and Xvfb, for linux/amd64 and linux/arm64. Inside, the daemon and the browser sidecar run as two separate users.

Every command on this page works the same with podman in place of docker, and with Docker or Podman rootless, as your own user.

Before you start

You need:

Image tags

Tag What it is
latest the newest release that is not a pre-release, with the browser
vX.Y.Z a release, with the browser
slim latest without Chromium and Xvfb, and so without the browser
vX.Y.Z-slim a release without the browser

Every image of a release is signed and can be checked with cosign verify.

Step 1: Start the container

Terminal
docker run -d --name holaclaw --restart always \
  -v holaclaw-config:/etc/holaclaw \
  -v holaclaw-secrets:/etc/holaclaw-secrets \
  -v holaclaw-data:/var/lib/holaclaw \
  -p 127.0.0.1:8484:8484 --security-opt seccomp=unconfined \
  --add-host host.docker.internal:host-gateway \
  ghcr.io/ikitana/holaclaw:latest
Volume In the container What it holds
holaclaw-config /etc/holaclaw config.toml, the agents, and channels.toml once you add one
holaclaw-secrets /etc/holaclaw-secrets auth.toml (API keys and sign-in tokens) and the owner's admin token
holaclaw-data /var/lib/holaclaw the database, the blobs and the daemon's backups

Docker or Podman creates the volumes on first start. The container then starts with a config that has no provider, and waits for init.

Use named volumes, not directories of the host. On every start, the entrypoint gives the three directories to the container's own users, which would change the owner of your files on a host directory.

What each flag is for:

  • --security-opt seccomp=unconfined lets Chromium's own sandbox start. HolaClaw Server never runs Chromium with --no-sandbox: without the flag, the sidecar refuses to start a browser, and holaclaw check says why. If you do not use the browser, run the slim image and leave the flag out.
  • -p 127.0.0.1:8484:8484 publishes the daemon's API on the host's loopback only. If nothing on the host reaches the API over TCP, you can leave it out: docker exec needs no port.
  • --add-host host.docker.internal:host-gateway lets the container reach services on the host, such as Ollama.

Step 2: Initialise

init writes a config for one provider and one model, stores the API key, creates the owner and, with --token-file, writes an admin token for the owner to the secrets volume. The daemon starts by itself once it has run, so no restart is needed.

Pick the provider you have.

OpenRouter

Terminal
docker exec -it holaclaw holaclaw init --provider openrouter --token-file /etc/holaclaw-secrets/token

init asks for the API key, without echo, and shows the model, deepseek/deepseek-v4.1-flash. Press Enter to keep it, or type another id.

OpenAI

Terminal
docker exec -it holaclaw holaclaw init --provider openai --token-file /etc/holaclaw-secrets/token

The same as OpenRouter, with an OpenAI API key and the model gpt-6.1-sol.

A ChatGPT subscription

Terminal
docker exec -it holaclaw holaclaw init --provider openai-codex --token-file /etc/holaclaw-secrets/token
docker exec -it holaclaw holaclaw login codex

init asks for nothing secret. login codex signs in once the daemon runs, a few seconds after init: it prints a URL and a code to enter on any device.

Ollama, or another OpenAI-compatible endpoint

Terminal
docker exec -it holaclaw holaclaw init --provider openai-compat \
  --base-url http://host.docker.internal:11434/v1 --model gemma4:e2b
docker exec holaclaw holaclaw check
  • In the container, localhost is the container itself. For an endpoint on this machine, use http://host.docker.internal:<port>/v1. An endpoint on another machine needs no --add-host.
  • Press Enter when init asks for an API key if the endpoint needs none, as Ollama does.
  • Ollama listens on loopback by default, which a container cannot reach. Start it with OLLAMA_HOST=0.0.0.0, and firewall port 11434 to the machines that need it, since Ollama has no authentication.
  • init writes context = 65536 for the model. Start Ollama with OLLAMA_CONTEXT_LENGTH=65536 or more.

From a script

Without -t, init asks nothing. It reads the API key from stdin:

Terminal
read -rs KEY && printf %s "$KEY" | docker exec -i holaclaw holaclaw init --provider openrouter --token-file /etc/holaclaw-secrets/token; unset KEY

Step 3: Check that it runs

The daemon answers a few seconds after init:

Terminal
docker exec holaclaw holaclaw status
docker exec -it holaclaw holaclaw chat

With the browser on, holaclaw check warns BRW005 and BRW006: the agent may open any site, and it has no decision model for the browser. See The browser to address both.

Environment variables

The image sets a few defaults as environment variables, which win over config.toml. Pass -e on docker run to change one:

Variable Config key latest slim
HOLACLAW_LISTEN server.listen 0.0.0.0:8484 0.0.0.0:8484
HOLACLAW_ALLOW_INSECURE_TRANSPORT server.allow_insecure_transport true true
HOLACLAW_BROWSER_ENABLED browser.enabled true not set

To pair devices with a link and a QR code, also pass the address they reach the daemon at, for example -e HOLACLAW_PUBLIC_URL=https://claw.example. See Environment variables for the full list.

To expose the API beyond this machine, change the -p and put TLS in front of it.

Start at boot

--restart always restarts the container when it stops and when the engine starts. Make sure the engine itself starts at boot:

Terminal
sudo systemctl enable docker                       # Docker
sudo systemctl enable podman-restart.service       # Podman as root
systemctl --user enable podman-restart.service     # Podman rootless, with:
sudo loginctl enable-linger "$USER"                # start your services at boot, without a login

Rootless Docker runs as your user's docker.service, which also needs loginctl enable-linger.

Edit the config

Copy the files out of the container, edit them, and write them back over the originals. Writing with cat keeps their owner; docker cp would leave them owned by root, which the daemon cannot read.

Terminal
docker cp holaclaw:/etc/holaclaw/config.toml .
docker cp holaclaw:/etc/holaclaw/agents/main/agent.toml .
$EDITOR config.toml agent.toml
docker exec -i holaclaw sh -c 'cat > /etc/holaclaw/config.toml' < config.toml
docker exec -i holaclaw sh -c 'cat > /etc/holaclaw/agents/main/agent.toml' < agent.toml
read -rs KEY && printf %s "$KEY" | docker exec -i holaclaw holaclaw auth set providers.openai api_key; unset KEY
docker exec holaclaw holaclaw check --offline
docker restart holaclaw

The auth set line stores the key of a provider you added with auth = "api-key", here one named openai; leave it out if you added none. Store secrets this way, never in a file you copy in. See Secrets.

Upgrade

Terminal
docker pull ghcr.io/ikitana/holaclaw:latest
docker rm -f holaclaw
# run the same `docker run` as in step 1
docker exec holaclaw holaclaw config migrate

The volumes keep everything. init refuses to run a second time. See Upgrades.

Remove it

Terminal
docker rm -f holaclaw
docker volume rm holaclaw-config holaclaw-secrets holaclaw-data

Removing the volumes deletes the config, the secrets and the data. Take a backup first if you may want them back.

Build the image yourself

From a checkout of the repository, with Nix:

Terminal
nix build .#container        # this machine's architecture; also .#container-amd64, .#container-arm64
nix build .#container-slim   # also .#container-slim-amd64, .#container-slim-arm64
./result | docker load

Without Nix, the Dockerfile builds equivalent images on Debian: docker build -t holaclaw ., and docker build --target slim -t holaclaw:slim ..

Was this page helpful?

Can’t find what you need?

Ask the community on Discord.