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

Hermes needs model access. Your chosen provider’s subscription, usage limits and charges apply; the book does not provide free inference.

Setup steps

  1. 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 libatomic1

    Check: whoami is not root. The required packages are available under the intended account.

    Official documentation for this step

  2. 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.

    Official documentation for this step

  3. 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 doctor

    Check: The install completed, hermes --version returns a version, and any diagnostic warnings are understood.

    Official documentation for this step

  4. 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 model

    Check: The selected model and provider are saved for this account, and you understand how its usage is billed.

    Official documentation for this step

  5. 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.

    Official documentation for this step

  6. 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.

    Official documentation for this step

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

Official references

Continue learning

Open this chapter in the interactive Setup Book

Need help applying this to your business? Talk with Jonathan at Plinko Solutions or explore Open Campus coaching options.