Should I install Hermes Agent with sudo on Linux?
Use a normal user or dedicated service user unless you intentionally need a shared system install. Root-mode changes data ownership and blast radius.
Linux install path
On Linux, start with the official installer in a normal user account unless you intentionally need a shared system install. Verify hermes doctor before adding providers, browser automation, gateways, or production files.
Agent Guide is an independent editorial resource. It is not affiliated with, endorsed by, or sponsored by Nous Research, Hermes Agent, or Hermes/Hermes brand owners. Product names and marks belong to their respective owners.
Install Hermes Agent on Linux from the official installation guide, then verify the launcher, data directory, and diagnostics before connecting real credentials. The official docs describe a git-based installer and non-sudo handling for service users.
For a VPS or always-on gateway, treat Linux installation as an operations task: choose user, data directory, port exposure, browser dependency policy, backups, and update path before running real workflows.
The official docs describe separate handling when a service user cannot install Chromium system libraries. Capture installer output because it may print admin commands that need to be run separately.
# Copy from official docs after review
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
# For headless setups that do not need browser automation, verify official skip-browser support first
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --skip-browser
# After a new shell
hermes doctor
| Decision | Default | Reason |
|---|---|---|
| Install user | Normal user for evaluation; dedicated unprivileged user for services | Limits accidental access and makes data ownership clearer. |
| Browser automation | Skip until needed on headless servers | Reduces dependency and attack surface for first setup. |
| Execution backend | Docker for production-like command execution | Keeps generated commands away from the host filesystem. |
| Data backup | Back up ~/.hermes or explicit HERMES_HOME before upgrades | Protects config, sessions, skills, and provider setup. |
| Symptom | Probable cause | Fix |
|---|---|---|
hermes doctor shows missing Chromium libraries | No sudo or missing system dependencies | Follow official dependency output or use --skip-browser for headless use. |
Service cannot find hermes | Minimal service PATH misses ~/.local/bin | Add PATH explicitly or use a controlled symlink as official docs describe. |
| Data appears under the wrong user | Installer ran with root or different account | Stop and decide whether to move state or reinstall under the intended user. |
| Gateway exposed broadly | Port binding or allowlist not reviewed | Bind locally first and configure allowlists before external access. |
On Linux, start with the official installer in a normal user account unless you intentionally need a shared system install. Verify hermes doctor before adding providers, browser automation, gateways, or production files.
This page is part of Agent Guide's independent Hermes Agent cluster. It is source-backed and labelled when first-hand execution has not been run.
| Source | Used for | Last checked | Confidence |
|---|---|---|---|
| Hermes Agent installation guide | Install commands, prerequisites, Windows/native installer details, and post-install checks. | 2026-06-02 | high |
| Hermes Agent Docker guide | Docker run modes, mounted data directory, gateway operation, ports, and production cautions. | 2026-06-02 | high |
| Hermes Agent security guide | Approval modes, gateway authorization, Docker terminal backend hardening, and credential cautions. | 2026-06-02 | high |
Known caveats: Agent Guide did not run the Linux installer in this batch. Use official docs for the final command, distro-specific dependency output, and current service-user behavior.
Use a normal user or dedicated service user unless you intentionally need a shared system install. Root-mode changes data ownership and blast radius.
For many Windows users, WSL2 is the most Linux-like path and easier to compare with official shell examples.
Operator checklist
Receive the smoke-test order for install path, sandbox boundary, provider setup, source review, and production checks.