How to install Hermes Agent on Ubuntu
Install Hermes, connect a model and get your first useful reply.
Run an agent under your own account. First prove it can respond, then try one small business task you can check.
Before you start
- These commands target Ubuntu 24.04 and Bash, on your VPS or local/WSL Ubuntu. Use the regular campus account, not root. Other platforms should use the official installation guide.
- The prerequisite command below is for Ubuntu 24.04 only. Other platforms should follow the linked official installation requirements.
- Choose a model provider and understand its billing. A regular account is not a sandbox: keep confidential files out of this learning environment.
Hermes needs model access. Your chosen provider’s subscription, usage limits and charges apply; the book does not provide free inference.
Setup steps
Prepare the Ubuntu account
Where: Your Ubuntu VPS / regular campus account
Confirm the account and install the basic source-install prerequisites on your fresh Ubuntu learning server. Review the package-manager prompt. On a different operating system, use the official prerequisites instead of these apt commands.
whoami sudo apt update && sudo apt install git curl tar build-essential ca-certificates libatomic1Check: whoami is not root. The required packages are available under the intended account.
Download and inspect the installer
Where: The same account / Bash terminal
Download from the official Hermes domain into a fresh filename. Read the script in less; press q to leave the reader. This block only downloads and displays it. Continue only if you are comfortable running the reviewed installer.
installer="$(mktemp "$HOME/hermes-install.XXXXXX.sh")" curl -fsSL https://hermes-agent.nousresearch.com/install.sh -o "$installer" && less "$installer"Check: You reviewed the official installer. Keep this Bash session open so the installer variable is available for the next step.
Install and check the CLI
Where: The same Bash session / regular account
Run the reviewed file, reload Bash and check the launcher. If you opened a new terminal and lost the installer variable, return to the download step rather than running an unknown file. A provider warning from doctor can be addressed in the next step.
test -n "$installer" && test -s "$installer" && bash "$installer" source ~/.bashrc hermes --version hermes doctorCheck: The install completed, hermes --version returns a version, and any diagnostic warnings are understood.
Connect one model provider
Where: Your terminal / Hermes setup wizard
Start with one provider and one model. Complete its supported login or key entry privately in the wizard. Read the account and usage terms. If a remote login uses a browser code, open the official authorization page on your own computer; do not share codes or tokens in the community.
hermes modelCheck: The selected model and provider are saved for this account, and you understand how its usage is billed.
Get the first reply
Where: Your terminal / same account
This sends a real model request and can use provider quota. Ask for a tiny reply first. The oneshot flag asks Hermes to answer and exit instead of leaving you in an interactive session.
hermes chat --oneshot -q 'Reply with exactly: ready'Check: You receive the requested reply without an authentication or quota error. An attempted request alone is not a working baseline.
Try a small business task
Where: Your terminal / use only this sample
Try a task whose answer you can judge. Read the draft before using it. The request below is an instruction, not an enforced security boundary. To continue interactively afterwards, run hermes. Keep gateways and live systems separate until this basic loop works.
hermes chat --oneshot -q 'Draft a three-item checklist for preparing a customer quote. Use only these sample facts: confirm the request, write the scope, review before sending. Do not read files, run commands, send messages or change records.'Check: The checklist follows the supplied facts. No external action was requested or approved. You can revise a prompt and judge the result yourself.
Troubleshooting
- hermes: command not found
- Reload your shell, or check that $HOME/.local/bin is on PATH. Use the installed launcher, not a guessed virtual-environment path.
- Authentication or quota failure
- Run hermes model to inspect the selected provider. Check its official account and billing page before retrying; an installed CLI does not prove model access.
- Where are settings and credentials?
- The source-install default is ~/.hermes/. Keep configuration, .env, auth files and logs private; redact secrets before asking for help.
Completion checklist
- The CLI runs as your intended regular account.
- Your chosen provider returns a first reply successfully.
- You reviewed a small task output and understand that the agent can have real tool access.
Official references
- Official installation
- Official quickstart
- Mattermost bridge (later option)
- CLI command reference
- Provider setup
- Configuration paths