How to set up Hermes Agent with Ozeki AI Gateway

This guide walks you through installing and configuring Hermes Agent on Windows and connecting it to Ozeki AI Gateway. By following this tutorial, you will learn how to install Hermes Agent using PowerShell, run the interactive setup wizard, point it to your Ozeki AI Gateway endpoint, and send your first prompt through the terminal interface.

What is Hermes Agent?

Hermes Agent is an open-source autonomous AI agent developed by Nous Research. Unlike a simple chatbot, Hermes is a fully capable agent that can execute terminal commands, manage files, run scheduled tasks, and connect to messaging platforms such as Telegram or Discord. It supports OpenAI-compatible API endpoints, which means it can be connected to Ozeki AI Gateway, allowing you to route all AI requests through your own gateway and use any model configured there.

Hermes Agent and Ozeki AI Gateway overview
Overview

Hermes Agent PowerShell install command

irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex

Steps to follow

We assume Ozeki AI Gateway is already installed on your system. You can install it on Linux, Windows or Mac.

  1. Copy install command
  2. Run the installer in a terminal
  3. Start Quick Setup
  4. Enter Gateway URL details
  5. Choose a backend and launch Hermes
  6. Test Hermes Agent

Video tutorial

The following video shows how to install and configure Hermes Agent to work with Ozeki AI Gateway step-by-step.

Step 1 - Copy install command

Open your browser and navigate to hermes-agent.nousresearch.com. Locate the Windows installation command and copy it to your clipboard (Figure 1).

Copy PowerShell install command from the Hermes website
Figure 1 - Copy the PowerShell install command from the Hermes website

Step 2 - Run the installer in a terminal

Open a PowerShell terminal by searching for Terminal in the Start menu (Figure 2).

Open a PowerShell terminal
Figure 2 - Open a PowerShell terminal

Paste the install command into the terminal and press Enter to run it (Figure 3).

irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex

Paste and run the install command
Figure 3 - Paste and run the install command

The installer will automatically download and set up all required dependencies, including Python, Node.js, and the Hermes Agent itself. Wait until the process completes before proceeding (Figure 4).

Wait for the installation to finish
Figure 4 - Wait for the installation to finish

Step 3 - Start Quick Setup

Once installation is complete, the Hermes setup wizard will launch automatically. When prompted to choose a setup mode, type 1 and press Enter to start Quick Setup (Figure 5).

Type 1 to start Quick Setup
Figure 5 - Type 1 in the terminal to start Quick Setup

The wizard will present a list of supported LLM providers. Select the option for Custom endpoint by entering its corresponding number and pressing Enter (Figure 6). This option allows you to connect Hermes to any OpenAI-compatible API, including Ozeki AI Gateway.

Select the custom endpoint option
Figure 6 - Enter the number of the custom endpoint option

Step 4 - Enter Gateway URL details

When prompted, enter the Ozeki AI Gateway API base URL and your API key. Replace ozkey-abc123 with the API key you created (Figure 7).

API base URL: http://localhost/v1
API key:      ozkey-abc123

Enter the Ozeki AI Gateway URL and API key
Figure 7 - Enter the Ozeki AI Gateway URL and API key

Next, enter the model name you want to use and a display name for it. The model name must match a model configured in your Ozeki AI Gateway (Figure 8).

Model:        Minimax-M2.7
Display name: Ozeki AI Gateway

Enter the model name and display name
Figure 8 - Enter the model name and display name

Step 5 - Choose a backend and launch Hermes

When prompted to select a terminal backend, choose Local terminal. This option runs agent commands directly on your local machine without requiring Docker or a remote server (Figure 9).

Select the local terminal backend
Figure 9 - Select the local terminal backend

The wizard will ask whether you want to set up a messaging platform integration such as Telegram or Discord. For this tutorial, choose to skip this step (Figure 10). You can configure messaging platforms later using the hermes gateway setup command.

Skip the messaging platform setup
Figure 10 - Choose to skip the messaging platform setup

Finally, type y and press Enter to confirm and launch Hermes Agent (Figure 11).

Type y to launch Hermes Agent
Figure 11 - Type y to launch Hermes Agent

Hermes Agent will start and display its welcome screen in the terminal, confirming that the agent is running and ready to accept prompts (Figure 12).

Hermes Agent welcome screen
Figure 12 - Hermes Agent welcome screen

Step 6 - Test Hermes Agent

The following video shows how to test the Hermes Agent connection to Ozeki AI Gateway by sending a sample prompt and verifying the response.

Type a test prompt in the Hermes terminal interface and press Enter to send it (Figure 13). Hermes will forward the request to Ozeki AI Gateway, which will route it to the configured model.

Send the agent a test prompt
Figure 13 - Send the agent a test prompt

The agent's response will appear in the terminal window, confirming that Hermes Agent is successfully connected to Ozeki AI Gateway and communicating with the selected model (Figure 14).

Hermes Agent response
Figure 14 - Hermes Agent response

To sum it up

You have successfully installed Hermes Agent and connected it to Ozeki AI Gateway. All prompts you send through the Hermes terminal are now routed through your gateway, giving you centralised control over API keys, model selection, and usage statistics. From here you can expand Hermes further by enabling messaging platform integrations, configuring additional tools, or switching to a different model at any time.


More information