Loading page

Install Hermes Agent

With llama-server running in your first terminal, install Nous Research Hermes Agent in your second terminal:

    

        
        
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

    

When the interactive Hermes Agent Setup Wizard prompts you to sign in or select a cloud provider, press Ctrl+C to exit the wizard. You’ll configure the local llama-server provider directly with hermes config set.

The output is similar to:

    

        
        ┌─────────────────────────────────────────────────────────┐
│             ☤ Hermes Agent Installer                    │
├─────────────────────────────────────────────────────────┤
│  An open source AI agent by Nous Research.              │
└─────────────────────────────────────────────────────────┘

✓ prerequisites ok (git, curl)
→ Installing the latest stable release (v0.23.4); --channel main follows every commit
✓ Hermes Agent cloned
→ Downloading uv 0.13.5 (darwin-arm64)
✓ uv ready (uv 0.13.5 (46776a95d 2026-10-21 aarch64-apple-darwin))
...
✓ dependencies installed
✓ config prepared in /Users/user/.hermes
...
✓ app products and hermes command ready
✓ Hermes Agent install complete. Run: hermes

        
    

If the installer updates your shell PATH, reload ~/.zshrc (source ~/.zshrc) or open a new terminal. Then, verify that the hermes CLI is available:

    

        
        
hermes --version

    

The output is similar to:

    

        
        Hermes Agent v0.23.4 (2026.9.24) · stable · local 8fc037444731
Install directory: /Users/user/.hermes/hermes-agent
Install method: git
Python: 3.14.9
OpenAI SDK: 2.54.0
Up to date

        
    

Point Hermes Agent to the local llama-server

Configure Hermes Agent to use a custom OpenAI-compatible provider pointing to your local llama-server instance at http://127.0.0.1:8080/v1:

    

        
        
hermes config set model.provider local
hermes config set model.base_url http://127.0.0.1:8080/v1
hermes config set model.default ./models/gemma-4-E4B-it-Q4_0.gguf

    

Verify your active configuration:

    

        
        
hermes config show

    

The output is similar to:

    

        
        ┌─────────────────────────────────────────────────────────┐
│              ☤ Hermes Configuration                    │
└─────────────────────────────────────────────────────────┘
...
◆ Model
  Model:        {'default': './models/gemma-4-E4B-it-Q4_0.gguf', 'provider': 'local', 'base_url': 'http://127.0.0.1:8080/v1'}
  Max turns:    500

        
    

Increase the API timeout for local inference

Autonomous tool-calling loops can send large prompts containing thousands of tokens of file contents and tool outputs to llama-server. Setting HERMES_API_TIMEOUT=1800 (30 minutes) in ~/.hermes/.env ensures that long multi-turn requests don’t time out prematurely.

This applies even if you later switch to a larger model or run CPU-only fallback.

Update ~/.hermes/.env using macOS BSD sed:

    

        
        
mkdir -p ~/.hermes
grep -q '^HERMES_API_TIMEOUT=' ~/.hermes/.env 2>/dev/null \
  && sed -i '' 's/^HERMES_API_TIMEOUT=.*/HERMES_API_TIMEOUT=1800/' ~/.hermes/.env \
  || echo 'HERMES_API_TIMEOUT=1800' >> ~/.hermes/.env

    

Confirm the setting in ~/.hermes/.env:

    

        
        
grep '^HERMES_API_TIMEOUT=' ~/.hermes/.env

    

The output is similar to:

    

        
        HERMES_API_TIMEOUT=1800

        
    

Start an interactive session

After configuring model.provider, model.base_url, and model.default, launch Hermes Agent interactively with no arguments in any workspace directory:

    

        
        
hermes

    

Hermes opens its interactive terminal UI that’s connected directly to your local llama-server at http://127.0.0.1:8080/v1. For a classic line-based interface, use hermes chat --cli instead. Type /exit or press Ctrl+C when you’re finished.

What you’ve accomplished and what’s next

You’ve installed Nous Research Hermes Agent on macOS and connected it to your local llama-server endpoint. You’ve configured HERMES_API_TIMEOUT for multi-step local inference.

Next, you’ll test autonomous multi-step tool calling on a local code-fixing task with Gemma 4 E4B.