---
title: "Install with the script"
description: "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."
updated: 2026-11-16
canonical: https://holaclaw.ai/docs/server/install-script
---

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 `amd64` or `arm64`.
- 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](/docs/server/providers-and-models).

## Run the script

```sh
curl -fsSL https://holaclaw.ai/install.sh | bash
```

To read the script before you run it, download it first and run `bash install.sh`.

The script asks three things:

1. **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.
2. **Whether to set up the browser**, so the agent can open web pages.
3. **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 on `127.0.0.1:8484`, on this machine only. It runs without `sudo` under rootless Docker, Podman, or a Docker your user may use without `sudo`.
- **The system service** is hardened and runs under its own `holaclaw` user. It needs `sudo`.
- **As your own user** is a systemd user service that runs as you. The script offers it when `sudo` fails.

## The browser

- **In the container**, the browser is on by default. The container runs with `--security-opt seccomp=unconfined` for Chromium's sandbox. Saying no runs the `slim` image, 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 --`:

```sh
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 codex` command 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, `--provider` is required, and the script prints the `holaclaw auth set` command that stores the API key.

## What happens next

The daemon is running. Continue with [Your first chat](/docs/server/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](/docs/server/container), [Debian and Ubuntu](/docs/server/debian) or [As your own user](/docs/server/user-service).

## If the script does not work

- **"this needs root or sudo"**: the system service needs `sudo`. Run the script again with `--user`, or with `--container` if 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`. Run `holaclaw status` (the way your deployment does) to check.

