Docs/Server/Run HolaClaw Server as your own user
Run HolaClaw Server as your own user
Run HolaClaw Server without sudo, from your home directory, as a systemd user service or in a terminal.
- Server
- Installation
- Linux
With no sudo, HolaClaw Server can run as you, from your home directory. It is the quickest way to try HolaClaw Server out on a machine you do not administer.
Warning
Here the agent, and any command its exec tool runs, run as you, with your home directory in reach. When the machine does anything else, the container is the better choice.
With the install script
curl -fsSL https://holaclaw.ai/install.sh | bash -s -- --user --provider openrouterAny provider works, with its flags. Without --provider, init asks for one. The script:
- Installs the binary to
~/.local/bin/holaclaw. - Runs
holaclaw initinto~/.config/holaclaw, which asks for the API key. - Starts the daemon as a systemd user service,
holaclaw, from~/.config/systemd/user/holaclaw.service.
With --browser, it also runs the browser sidecar as a second user service, holaclaw-browser. Install Chromium and Xvfb first.
Start at boot
A user service starts at boot only once you linger, which on Debian only root may allow:
sudo loginctl enable-linger <your user>Day to day
- Edit the config: edit the files in
~/.config/holaclawdirectly, thensystemctl --user restart holaclaw. - Logs:
journalctl --user -u holaclaw. - Upgrade: install the new binary over
~/.local/bin/holaclaw, then restart the same way and runholaclaw config migrate.
By hand, in a terminal
For a quick try with no service at all, run the daemon in a terminal.
Step 1: Put the binary on your PATH
Download and verify the binary as in Install on Debian and Ubuntu, then:
install -Dm755 "holaclaw-linux-$arch" ~/.local/bin/holaclaw
export PATH="$HOME/.local/bin:$PATH"Debian adds ~/.local/bin to your PATH at login only once the directory exists, so add it by hand the first time.
Step 2: Initialise
holaclaw init --provider openrouter --token-file ~/.config/holaclaw/tokenAny provider works the same way, with its own flags. See Providers and models.
Step 3: Run the daemon and chat
holaclaw check --offline
holaclaw run
holaclaw chat # in a second terminalholaclaw chat also works with no daemon running, but the ChatGPT sign-in needs the daemon.
Where things are
As a user other than root, on a machine with no /etc/holaclaw:
| Path | |
|---|---|
| Config directory | $XDG_CONFIG_HOME/holaclaw (~/.config/holaclaw) |
| Secrets directory | ~/.config/holaclaw/secrets |
| Data directory | ~/.config/holaclaw/data |
| Control socket | $XDG_RUNTIME_DIR/holaclaw.sock |
With a system install on the same machine, the defaults are the system install's. Set HOLACLAW_CONFIG=~/.config/holaclaw in every terminal, and set the socket in the [server] table of your config.toml, written out in full, since TOML does not expand variables:
[server]
socket = "/run/user/1000/holaclaw.sock"Related
Was this page helpful?
