Hermes Agent CLI Beginner's Guide: From Installation to Your First AI Agent Task
Beginner12 min read
Hermes Agent CLI Beginner's Guide: From Installation to Your First AI Agent Task

Hermes Agent CLI Beginner's Guide: From Installation to Your First AI Agent Task

CATAITO Team2026-08-07
Your operating system:

Learning Objectives

By the end of this tutorial, you will be able to:

  • Install Hermes Agent on your operating system
  • Set up a provider and start your first conversation
  • Use Hermes Agent for interactive chat and single-query tasks
  • Navigate Hermes Agent' key commands and features
  • Troubleshoot common installation issues

Time needed: 10–15 minutes

Difficulty: Beginner

Which version is covered? This tutorial covers the Hermes Agent CLI — the command-line version you run in your terminal. The recommended installer also installs the Hermes Agent Desktop app automatically. If you want the desktop app only, download it from the official website.

Prerequisites

Before you begin, make sure you have:

RequirementDetails
Operating systemmacOS 12+, Windows 10/11, Linux (Ubuntu 20.04+, Debian 10+, etc.), or WSL2
GitRequired for the CLI installer
InternetA stable internet connection
AccountA Nous Portal account, or an API key from a supported provider (OpenAI, Anthropic, OpenRouter, etc.)
What is Hermes Agent?
Hermes Agent is an open-source AI agent by Nous Research that runs in your terminal, desktop app, and messaging platforms. Unlike coding copilots, Hermes Agent is a general-purpose autonomous agent with persistent memory, self-improving skills, and multi-platform gateway support. It works with 300+ models from any provider.

What is Nous Portal? Nous Portal is a subscription service from Nous Research that gives you access to 300+ models plus tool gateway tools (web search, image generation, TTS, cloud browser) with a single OAuth login. It is the fastest way to get started with Hermes Agent — no API keys to manage.

What is a terminal? A terminal (also called command line) is a window where you type commands instead of clicking buttons. On Windows it is called PowerShell; on macOS it is called Terminal.

How to Open Your Terminal (Step by Step)

If you are not sure how to open a terminal, follow the steps for your system below.

Windows — open PowerShell

  1. 1Click the Start button (the Windows logo) at the bottom-left corner of your screen.
  2. 2Type PowerShell — you do not need to click anything first, just start typing.
  3. 3Click the Windows PowerShell or Terminal app that appears in the list.
  4. 4If a blue User Account Control window pops up, click Yes.

How to paste a command: right-click anywhere inside the PowerShell window to paste (or press Ctrl + V).

Download & Install

Option A: Hermes Agent Desktop Installer (Recommended)

The desktop installer installs both the CLI and the desktop app at once. Simply download the installer from the official Hermes Agent website and run it:

  • Windows: download Download for Windows, open the installer, and follow the on-screen instructions.
  • macOS: download Download for macOS, open the .dmg file, and drag Hermes Agent to your Applications folder.
  • Linux: the desktop installer is not yet available — use Option B below.

After installing, verify the CLI works by running hermes --version in your terminal.

Option B: CLI Only (All Platforms)

For a command-line only install, use the shell installer. It handles all dependencies automatically — Python, Node.js, ripgrep, ffmpeg — you only need Git.

Windows installation

  1. 1Open PowerShell (click the Start button, type PowerShell, then click it).
  2. 2Copy the command below, paste it into PowerShell, and press Enter:
powershell
irm https://hermes-agent.nousresearch.com/install.ps1 | iex
  1. 1Wait for the installation to finish.
  2. 2Close PowerShell completely and reopen it, then verify:
powershell
hermes --version

If you see a version number, the installation succeeded.

Set Up a Provider

Fastest Path: Nous Portal

One subscription covers 300+ models plus the Tool Gateway (web search, image generation, TTS, cloud browser). On a fresh install:

bash
hermes setup --portal

This logs you in, sets Nous as your provider, and turns on the Tool Gateway in a single command.

Other Providers

If you already have an API key from another provider (OpenAI, Anthropic, OpenRouter, etc.), use the setup wizard:

bash
hermes setup

Or set the provider interactively:

bash
hermes model

The setup wizard offers three modes:

  • Quick Setup (Nous Portal) — free OAuth login, no API keys. The recommended fast path.
  • Full Setup — walk through every provider, tool, and option yourself.
  • Blank Slate — everything starts off except the minimum needed to run an agent. Choose this when you want full control over what is enabled.

Good Defaults for Common Providers

ProviderWhat it isHow to set up
Nous PortalSubscription-based, zero-confighermes setup --portal
OpenAIPay-as-you-go APIhermes model → select OpenAI → paste API key
AnthropicPay-as-you-go APIhermes model → select Anthropic → paste API key
OpenRouterMulti-model gatewayhermes model → select OpenRouter → paste API key
Local (Ollama)Run models on your machinehermes model → select Ollama → choose a local model

Your First Chat

Step 1: Start an interactive session

bash
hermes

You will see the Hermes Agent prompt, ready for you to type a message. If this is your first time, it may take a moment to set up the session.

Step 2: Say hello

Type a message and press Enter:

text
Hello! What can you do?

Hermes Agent will respond with a summary of its capabilities. Try a few more:

  • What is the current date and time? — Hermes Agent checks the system time
  • List the files in this directory — Hermes Agent uses the file system tool
  • Search the web for the latest news about AI agents — Hermes Agent uses the web search tool (if enabled)

Step 3: Ask a single question without interactive mode

bash
hermes chat -q "What is the capital of France?"

This runs a single query and exits — useful for scripts and automation.

Step 4: Exit Hermes Agent

In an interactive session, type /exit and press Enter, or press Ctrl + C.

Useful Commands

CommandWhat it does
hermesStart an interactive session
hermes chat -q "query"Run a single query and exit
hermes setupRun the setup wizard
hermes modelConfigure provider and model
hermes doctorRun installation diagnostics
hermes desktopLaunch the Hermes Agent Desktop app
hermes dashboardOpen the web admin dashboard
hermes proxyStart an OpenAI-compatible local proxy
hermes --versionShow the installed version
/exitExit an interactive session
/helpShow available slash commands (in session)

Troubleshooting

IssueSolution
hermes: command not foundThe install folder is not in your PATH. Reload your shell (source ~/.bashrc), or restart the terminal completely. If the issue persists, reinstall.
git: command not foundGit is required. Install it from git-scm.com (Windows/macOS) or run sudo apt install git (Linux).
curl: command not found (Linux)Run sudo apt install curl (Debian/Ubuntu), or the equivalent command for your distribution.
Install fails with syntax errorMake sure you are running the correct command for your platform.
hermes setup --portal fails to open browserCheck your internet connection and make sure hermes-agent.nousresearch.com is accessible.
Hermes Agent cannot find a modelRun hermes model to verify your provider configuration. If using Nous Portal, re-run hermes setup --portal.

How to Update

bash
hermes update

Frequently Asked Questions

Do I need a paid plan?

Hermes Agent itself is free and open-source (MIT license). You need either a Nous Portal subscription, an API key from a provider (OpenAI, Anthropic, etc.), or a local model (Ollama) to power the agent. The fastest free path is Nous Portal's free tier.

Can Hermes Agent work without internet?

Yes, if you use a local model through Ollama. However, certain features (web search, image generation, TTS) require internet access.

What models can Hermes Agent use?

Hermes Agent works with 300+ models through Nous Portal, plus any model accessible through OpenAI, Anthropic, OpenRouter, Google, DeepSeek, xAI, or local models via Ollama.

Can Hermes Agent browse the web?

Yes, if the web search tool is enabled (it is on by default when using Nous Portal or with your own API key configured).

Is my data private?

Hermes Agent is open-source and runs locally on your machine. Your conversations and data are processed by the LLM provider you choose. Review the data usage policy of your provider for details.

What's Next

  • Explore the desktop app: Run hermes desktop to launch the graphical interface.
  • Connect messaging platforms: Set up Telegram, Discord, Slack, or other platforms with hermes gateway setup.
  • Create skills: Hermes Agent can create reusable skills from your conversations — just ask it to save a procedure as a skill.
  • Use MCP servers: Connect external tools through the Model Context Protocol.
  • Read the full documentation: Visit hermes-agent.nousresearch.com/docs for the complete guide.
#Hermes#AI Agent#Nous Research#Open Source

Related Tutorials