Docs/Server/Install on Debian and Ubuntu

Install on Debian and Ubuntu

Install HolaClaw Server on Debian, Ubuntu or another Debian derivative as a hardened systemd service running under its own user.

4 min read Updated November 16, 2026
  • Server
  • Installation
  • Debian
  • Ubuntu
  • systemd

This guide takes a fresh Debian-based machine to a running HolaClaw Server daemon. You download the binary, initialise it for your provider, and run it as a hardened system service under its own holaclaw user.

It was tested on Ubuntu 26.04 LTS. Other distributions with systemd work the same way, with their own package manager in place of apt and dpkg. With no sudo, run HolaClaw Server as your own user instead.

The install script runs these same steps for you with --service.

Before you start

You need:

  • Debian, Ubuntu or another Debian derivative, on amd64 or arm64, with systemd.
  • A user with sudo.
  • A model provider. See Providers and models.

Step 1: Download and verify the release

Terminal
arch=$(dpkg --print-architecture)          # amd64 or arm64; elsewhere: uname -m
base=https://github.com/ikitana/holaclaw/releases/latest/download
mkdir -p ~/holaclaw && cd ~/holaclaw
curl -fL --remote-name-all "$base/holaclaw-linux-$arch" "$base/holaclaw.service" "$base/SHA256SUMS"
sha256sum --check --ignore-missing SHA256SUMS

Each file must print OK. Each release has the binary for both architectures, the systemd units (holaclaw.service and holaclaw-browser.service) and SHA256SUMS. Every file of a release is also signed, and can be checked with cosign.

Step 2: Install the binary and create the service user

Terminal
sudo install -m 755 "holaclaw-linux-$arch" /usr/local/bin/holaclaw
holaclaw version

sudo useradd --system --home-dir /var/lib/holaclaw --shell /usr/sbin/nologin holaclaw
sudo install -d -o holaclaw -g holaclaw -m 700 /etc/holaclaw

The daemon runs as holaclaw, a system user with no login shell. Its config directory is /etc/holaclaw, which only that user may read.

Step 3: Initialise

Pick the provider you have, and run only its command.

OpenRouter

Terminal
sudo -u holaclaw holaclaw init --provider openrouter --token-file /etc/holaclaw/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
sudo -u holaclaw holaclaw init --provider openai --token-file /etc/holaclaw/token

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

A ChatGPT subscription

Terminal
sudo -u holaclaw holaclaw init --provider openai-codex --token-file /etc/holaclaw/token

init asks for nothing secret. You sign in once the service runs.

Ollama, or another OpenAI-compatible endpoint

Terminal
sudo -u holaclaw holaclaw init --provider openai-compat \
  --base-url http://localhost:11434/v1 --model gemma4:e2b --token-file /etc/holaclaw/token

This is Ollama on the same machine: install it and pull the model first (ollama pull gemma4:e2b). Any other endpoint works the same way, with its own --base-url and --model.

What init writes

Path What it is
/etc/holaclaw/config.toml the provider, the model and the server settings
/etc/holaclaw/agents/main/ the agent: agent.toml (its tools and models) and prompt.md
/etc/holaclaw/data/ the database and the blobs
/etc/holaclaw/secrets/ auth.toml: API keys and sign-in tokens
/etc/holaclaw/token the owner's admin token, mode 0600

You do not need the token on this machine. The holaclaw command talks to the daemon over its control socket, and file permissions decide who may use it. The token is for scripts that reach the daemon's API over TCP.

Run every command as the holaclaw user. Your own user cannot read /etc/holaclaw or reach the socket. If typing sudo -u holaclaw gets tedious, add an alias:

Terminal
alias hc='sudo -u holaclaw holaclaw'

From a script. Without a terminal, init asks nothing: pass --provider (and --base-url and --model for openai-compat), and the API key on stdin:

Terminal
read -rs KEY && printf %s "$KEY" | sudo -u holaclaw holaclaw init --provider openrouter --token-file /etc/holaclaw/token; unset KEY

Step 4: Start the service

Terminal
sudo install -m 644 holaclaw.service /etc/systemd/system/holaclaw.service
sudo systemctl daemon-reload
sudo systemctl enable --now holaclaw
systemctl status holaclaw

The unit runs holaclaw run as the holaclaw user, behind systemd's sandboxing. It restarts the daemon on failure and starts it at boot. The daemon listens on /run/holaclaw/holaclaw.sock a few seconds after it starts:

Terminal
sudo -u holaclaw holaclaw status

HolaClaw Server is running. Continue with Your first chat.

Optional: set up the browser

The browser sidecar runs as a second user, holaclaw-browser, under its own unit. See The browser for the steps.

Edit the config

Edit the files with sudoedit, which keeps their owner and mode:

Terminal
sudoedit /etc/holaclaw/config.toml
sudoedit /etc/holaclaw/agents/main/agent.toml

If you added a provider with auth = "api-key", store its key with auth set, which reads it from stdin, so it never lands in your shell history:

Terminal
read -rs KEY && printf %s "$KEY" | sudo -u holaclaw holaclaw auth set providers.openai api_key; unset KEY

Then check the config and restart the daemon, which reads it only at start:

Terminal
sudo -u holaclaw holaclaw check --offline
sudo systemctl restart holaclaw

See Configuration overview for what goes in each file.

Upgrade

Download the new release as in step 1, then:

Terminal
sudo install -m 755 "holaclaw-linux-$arch" /usr/local/bin/holaclaw
sudo install -m 644 holaclaw.service /etc/systemd/system/holaclaw.service
sudo systemctl daemon-reload && sudo systemctl restart holaclaw
sudo -u holaclaw holaclaw config migrate     # --write applies any format change

Remove it

Terminal
sudo systemctl disable --now holaclaw
sudo rm /etc/systemd/system/holaclaw.service /usr/local/bin/holaclaw
sudo systemctl daemon-reload
sudo userdel holaclaw
sudo rm -rf /etc/holaclaw /var/lib/holaclaw

The last line deletes the config, the secrets and the data. Take a backup first if you may want them back. With the browser set up, remove holaclaw-browser.service and the holaclaw-browser user the same way.

If something does not work

  • CFG012 config.toml: missing or unreadable file: the command ran as your own user. Run it with sudo -u holaclaw.
  • daemon is not running: the service is stopped, failed, or still starting. Read journalctl -u holaclaw.

More in Troubleshooting.

Was this page helpful?

Can’t find what you need?

Ask the community on Discord.