Docs/Server/Install with the script
Install with the script
Install HolaClaw Server on Linux with one command. The script sets up a container, a system service or a service for your own user, and initialises it for your provider.
- Server
- Installation
- Linux
- Beginner
The install script is the quickest way to run HolaClaw Server on Linux. It works on amd64 and arm64, asks a few questions, and leaves you with a running daemon and the command to chat with it.
Before you start
You need:
- Linux on
amd64orarm64. - Docker or Podman for the container, or systemd for a service.
- A model provider: an OpenRouter or OpenAI API key, a ChatGPT subscription, or an OpenAI-compatible endpoint such as Ollama. See Providers and models.
Run the script
curl -fsSL https://holaclaw.ai/install.sh | bashTo read the script before you run it, download it first and run bash install.sh.
The script asks three things:
- How to run HolaClaw Server. It offers what the machine supports: the container when Docker or Podman is present, the system service, or a service for your own user.
- Whether to set up the browser, so the agent can open web pages.
- Your provider and its API key. It then runs
holaclaw init, which writes a config for that one provider and model, starts the daemon, and prints the command to chat.
It always asks before installing anything.
How each choice runs
| Choice | Needs | Config in | Chat with |
|---|---|---|---|
| Container (recommended) | Docker or Podman | the holaclaw-config volume |
docker exec -it holaclaw holaclaw chat |
| System service | systemd, sudo |
/etc/holaclaw |
sudo -u holaclaw holaclaw chat |
| As your own user | systemd, no sudo |
~/.config/holaclaw |
holaclaw chat |
- The container (
ghcr.io/ikitana/holaclaw) is isolated from the host. Its config, secrets and data live in three named volumes, and the daemon answers on127.0.0.1:8484, on this machine only. It runs withoutsudounder rootless Docker, Podman, or a Docker your user may use withoutsudo. - The system service is hardened and runs under its own
holaclawuser. It needssudo. - As your own user is a systemd user service that runs as you. The script offers it when
sudofails.
The browser
- In the container, the browser is on by default. The container runs with
--security-opt seccomp=unconfinedfor Chromium's sandbox. Saying no runs theslimimage, which has no Chromium. - As a service, the browser is off by default. Saying yes installs Chromium and Xvfb with
apt. As your own user, they must be installed already.
Options
Every question has a flag, so you can run the script without prompts:
| Flag | What it does |
|---|---|
--container, --service, --user |
how HolaClaw Server runs |
--browser, --no-browser |
whether the browser is set up |
--provider <name> |
openrouter, openai, openai-codex or openai-compat |
--model <id> |
replaces the provider's default model |
--base-url <url> |
the endpoint, for openai-compat |
Pass them after bash -s --:
u=https://holaclaw.ai/install.sh
curl -fsSL $u | bash -s -- --provider openrouter # asks for the API key
curl -fsSL $u | bash -s -- --provider openai # asks for the API key
curl -fsSL $u | bash -s -- --provider openai-codex # a ChatGPT subscription
curl -fsSL $u | bash -s -- --provider openai-compat \
--base-url http://localhost:11434/v1 --model gemma4:e2b # Ollama on this machine- With a ChatGPT subscription, you sign in once the daemon runs. The script prints the
holaclaw login codexcommand for your install. - For Ollama from the container, use
http://host.docker.internal:11434/v1, and make Ollama listen beyond loopback (OLLAMA_HOST=0.0.0.0). - With no terminal, as in CI,
--provideris required, and the script prints theholaclaw auth setcommand that stores the API key.
What happens next
The daemon is running. Continue with Your first chat to talk to the agent, sign in to ChatGPT if you chose it, and pair a device.
To see exactly what the script did for your choice, read the matching guide: Container, Debian and Ubuntu or As your own user.
If the script does not work
- "this needs root or sudo": the system service needs
sudo. Run the script again with--user, or with--containerif you have Docker or Podman. - "the browser needs Chromium and Xvfb": the script installs them only with
apt. Install them with your package manager, or run with--no-browser. - The daemon does not answer right away: it answers a few seconds after
init. Runholaclaw status(the way your deployment does) to check.
Was this page helpful?
