Hermes Agent rests on two things: an installer and a model behind an OpenAI-compatible address. The installer is a single script. Linux, macOS and WSL2 use curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash, and Windows PowerShell uses iex (irm https://hermes-agent.nousresearch.com/install.ps1). The model is handled by the hermes model wizard: choose Custom endpoint, then type a base URL, an API key, a model name and a context size. A local Ollama, a company gateway or any other OpenAI-compatible server will do. The examples below use codexkey, where one key opens Claude, GPT and DeepSeek and payment goes through a card from a Russian bank, SBP (the Russian Faster Payments System) or crypto.
What Hermes Agent is
The code is open. Nous Research builds the agent, the repository is NousResearch/hermes-agent, and the license is MIT. On 10 November the project had about 262,000 GitHub stars, and release v0.23.1 shipped that same day. You talk to the agent in a terminal UI or from messengers. The README names WhatsApp, Signal, Slack, Discord and Telegram, and a single gateway process serves all of them.
What sets Hermes apart from an ordinary coding agent is that it stays on. Memory persists across sessions, repeated procedures turn into skills on their own, isolated subagents run in parallel, and scheduled jobs execute on a timer. There are six terminal backends, and commands go through one of them: SSH, Docker, local, Modal, Daytona or Vercel Sandbox. The README paints a picture of a $5 VPS with the agent on it while you talk to it through a messenger.
Hermes has no model. The README lists Nous Portal, OpenRouter, OpenAI and your own endpoint among the options, and the hermes model command switches between them. Nous Portal is the project's own paid subscription, with 300+ models and a set of tools. If you already hold a key for an OpenAI-compatible endpoint, you do not need it, and codexkey does not sell it.
Install on Windows, macOS, Linux and Docker
| Where | How | Command |
|---|---|---|
| Linux, macOS, WSL2 | Script | curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash |
| Windows 10 and 11 | PowerShell | iex (irm https://hermes-agent.nousresearch.com/install.ps1) |
| macOS (Apple Silicon), Windows | Hermes Desktop app | Installer from the project website; the Windows MSIX package needs Windows 11 22H2 or newer |
| Any server | Docker | docker run -it --rm -v ~/.hermes:/opt/data nousresearch/hermes-agent setup |
| Android | Termux | APT package for aarch64, separate guide in the docs |
The installer clones the source, sets up the uv manager and downloads FFmpeg, ripgrep, Node.js and Python 3.14 itself. A system Node or uv does not count. On Windows you do not have to be an administrator: files go under %LOCALAPPDATA%\hermes, and if Git is missing, the installer brings its own. Since curl | bash runs someone else's script, read it in a browser before you run it.
When the install finishes, reload your shell profile (source ~/.zshrc for zsh, source ~/.bashrc for bash) and type hermes. On Windows, open PowerShell again: PATH changes only for new sessions, so the old window will not find hermes.
Windows without WSL
Windows without WSL is no obstacle for the project: the CLI, gateway, TUI, cron, MCP servers and the browser tool all run natively. The terminal tool pushes commands through Git Bash, as Claude Code does. WSL2 makes sense for a POSIX environment, but its data lives in ~/.hermes rather than %LOCALAPPDATA%.
The README carries one more warning worth knowing early. Antivirus software can quarantine uv.exe from hermes\bin. The project calls this a false alarm (the file belongs to Astral) and recommends excluding the folder from scans, because the file's hash changes with every release.
Servers and Docker
Run the setup wizard once, and the gateway then comes up in the background:
docker run -d --name hermes --restart unless-stopped \
-v ~/.hermes:/opt/data -p 8642:8642 \
nousresearch/hermes-agent gateway run
Port 8642 publishes Hermes's own OpenAI-compatible API server. Only the dashboard and external tools need it. The docs warn outright that an open port on an internet-facing machine carries risk. Telegram only? Leave -p out. hermes update does not work in Docker, so you update by starting a fresh image.
First run and the setup wizard
On a fresh install hermes setup offers three modes. Quick Setup goes through Nous Portal. Full Setup walks every provider and tool, and the keys are yours. Blank Slate keeps only the provider, file operations and the terminal. If ~/.openclaw, ~/.claude, ~/.codex or ~/.cursor sits nearby, the wizard first offers to take settings over from there.
We need Full Setup or a direct hermes model. Hermes keeps secret values in ~/.hermes/.env and other settings in ~/.hermes/config.yaml (on Windows the same directory sits under %LOCALAPPDATA%\hermes).
Before you pick a model, mind one limit: the context window must be at least 64,000 tokens, and Hermes rejects smaller ones at startup. Hosted Claude, GPT and DeepSeek models clear the bar with ease, while a local model needs its window set explicitly.
Connecting a codexkey model
codexkey gives one key for every model in its catalog and an address compatible with OpenAI. A top-up starts at $1 and can be paid by card from Russia, by SBP or in crypto (USDT, BTC, ETH, TON). The balance does not expire, and no VPN or vendor account is needed. The Hermes docs say any server that implements /v1/chat/completions becomes a custom provider. The codexkey guide to Hermes, OpenClaw and SDKs builds on exactly that, with the base URL https://api.codexkey.online/v1 and a key that starts with sk_cdx_.
- Sign up, add funds and create a key in the API keys section of the dashboard.
- Run
hermes model, pick "Custom endpoint", then enter the base URL, the key and a model name. When it asks about context, give a number and do not leave the line blank. - Writing the same thing into
config.yamlby hand gives the same result:
model:
provider: custom
default: gpt-6-astra
context_length: 1000000
base_url: https://api.codexkey.online/v1
api_mode: chat_completions
api_key: sk_cdx_YOUR_KEY
- Start
hermesand give it a task whose answer is easy to check, for example "Summarize this repo in 5 bullets and tell me what the main entrypoint is".hermes doctornames whatever is missing.
Here is how to read the block. provider: custom together with base_url points Hermes at your address, and default takes a model ID from the catalog, which GET /v1/models or the model catalog page will show. For any other OpenAI-compatible provider the block stays the same, and only base_url, the key and the model name change. Keeping the key in the file is optional. Write key_env: VARIABLE_NAME instead of api_key, and Hermes reads it from the environment.
The codexkey guide marks context_length as required, and the Hermes docs and source explain why. Hermes works out the window through a chain: the value in your config, a cache, the server's answer on /models, OpenRouter, models.dev. If nobody knows the model, a default window is used. In v0.23.1 that default is 256K, although the docs still say 128K. For a model whose real window is smaller, this ends in an API error. A value in config.yaml outranks all the rest and gets the label pinned.
api_mode: chat_completions suits every text model in the catalog, Claude included, so start there. Image and video models are served from their own addresses (/v1/images/generations, /v1/videos) and do not fit chat requests. For Claude the guide also mentions anthropic_messages, but neither that mode nor how to write the address for it on Hermes was tested.
One more trap: /model inside a chat changes the model only among providers that are already configured. A new provider goes in another way: close the session and run hermes model.
The config is carried over from the codexkey guide, and the Hermes docs say that custom providers are supported. No live request was made on v0.23.1 while preparing this article, so verify the first reply.
Picking a model
codexkey prices (Premium channel) as of 10 November 2026; current numbers are on the model catalog page:
| Model | Context | Input, $ per 1M | Output, $ per 1M |
|---|---|---|---|
gpt-6-astra | 1000K | 0.78 | 3.90 |
claude-sonnet-5 | 1000K | 0.52 | 1.98 |
deepseek-v4.1-flash | 1000K | 0.06 | 0.22 |
At these rates deepseek-v4.1-flash is about 9 times cheaper than claude-sonnet-5, on input and on output alike. Agent work leans on tool calls: terminal, files, browser, search. So test a new model on a task with tools, because a single chat question proves too little. The full list of IDs sits in the piece on the model lineup.
A free option for trials: as of 10 November the catalog holds a single zero-price model, deepseek-v4.1-flash-1017-free, with a 1M window. It replaces neither Claude nor GPT. Limits and conditions are on the model page, and the tool-calling field is empty for it in the catalog, so an agent run on it remains an experiment. What such a run looks like in practice is told in Claude Code free: what works in 2026.
What an always-on agent costs and where to cut
Chat Completions remembers nothing between calls, so on every step the agent sends the model the system prompt, tool descriptions, skills, a memory snapshot and the whole history again. Memory itself is small: the docs let MEMORY.md hold 2,200 characters (about 800 tokens) and USER.md 1,375 characters (about 500 tokens). The money goes elsewhere.
- History compression. It fires when half the window fills up (
compression.threshold: 0.50). Withcontext_length: 1000000the trigger is 500,000 tokens, and up to that point bulky tool output rides along in every request. The docs suggest tryingproactive_prune_tokens: 48000, which collapses old tool results without calling a model. It is off by default. - Background jobs. Session titles, compression, image analysis and the dangerous-command classifier run on your main model. If that model is expensive, the docs warn of a noticeable surcharge and describe how to override any of these through
auxiliary.<task>. - Subagents. They inherit the parent's model. By default up to 3 live in parallel at depth 1, yet the bill multiplies: at depth 3 and width 3 the tree grows to 27 leaf agents.
- A ceiling.
agent.max_turnsis unlimited by default. Setting a number caps the steps in one turn.
Pointing background jobs and subagents at a cheap model takes two blocks:
auxiliary:
compression:
model: deepseek-v4.1-flash
base_url: https://api.codexkey.online/v1
api_key: sk_cdx_YOUR_KEY
delegation:
model: deepseek-v4.1-flash
base_url: https://api.codexkey.online/v1
api_key: sk_cdx_YOUR_KEY
Hermes turns on automatic prompt caching for Claude on native Anthropic, on OpenRouter and in Nous Portal. The docs say nothing about a custom endpoint, so do not budget for cache savings. Spend shows in /usage and /insights --days 7, and in the codexkey dashboard each charge is tied to a key. General tricks are covered in how to cut your Claude Code bill and why AI agent bills explode. While you test, keep a modest sum on the balance and create a separate key for the agent.
Hermes or OpenClaw
The question of how Hermes differs from OpenClaw, going by OpenClaw's own docs, is covered in the OpenClaw guide. Here is the practical side: Hermes can import another agent's settings. hermes import-agent openclaw --dry-run previews what would move: the SOUL.md persona, memory entries, your own skills, the command allowlist and messaging settings. API keys travel only with the --migrate-secrets flag. For Claude Code, Codex CLI and Cursor the same command works with claude-code, codex or cursor in place of openclaw.
The two agents keep their data in separate directories, so they are easy to compare on one machine. If you want a terminal coding agent without chats, look at OpenCode. For a broader view, there are the agent comparison and the list of Claude Code alternatives.
Safety defaults
Hermes checks commands against a list of dangerous patterns. The default is approvals.mode: smart: an auxiliary model rates the risk, harmless commands pass, dangerous ones are blocked, doubtful ones come to you for confirmation. manual asks every time. off is the same as the --yolo flag and means no checks at all, so turn it on only in an isolated environment such as a container.
Isolation comes from the terminal backend (hermes config set terminal.backend docker). Messaging platforms get pairing and a user allowlist. What not to send to a model under any configuration is explained in what not to send to an LLM.
When something does not work
| Symptom | Cause | Fix |
|---|---|---|
hermes: command not found | PATH not refreshed | Open a new terminal or run source ~/.bashrc |
API key not set | No provider configured | Run hermes model |
| Empty or garbled replies from your own endpoint | Wrong URL or model name | Test the URL with another client: curl https://api.codexkey.online/v1/models -H "Authorization: Bearer sk_cdx_..." |
| Startup refused over context | Model window below 64K | Use a model with a bigger window or set the real one |
model_not_in_channel | A codexkey key is tied to the Premium or Cheap channel and the model is not in it | Pick a model from the key's channel |
/model does not list a new provider | It only switches configured ones | Exit and run hermes model |
If no row fits, hermes doctor lists what is missing, and hermes --continue opens the last session, which shows whether state is being saved.
FAQ
How do I install Hermes Agent on Windows?
In PowerShell run iex (irm https://hermes-agent.nousresearch.com/install.ps1); no administrator is required. Then open a new terminal window and type hermes. There is also the Hermes Desktop app, whose MSIX package is built for Windows 11 22H2 and newer. If you need a POSIX environment, install Hermes inside WSL2 with the Linux command.
Is Hermes Agent free?
The agent itself is free: the license is MIT and there is no subscription. You pay for model tokens. Nous Portal is a separate subscription from the project, and you do not have to take it. The codexkey catalog has a free model for trials, deepseek-v4.1-flash-1017-free; check its limits and conditions on the model page.
How do I use my own API key or a custom model with Hermes Agent?
Pick Custom endpoint in hermes model, or add a model block with provider: custom, base_url, api_key and context_length to ~/.hermes/config.yaml. A ready example for codexkey is above. Within one provider, the model changes with /model right in a chat.
Can I run Hermes Agent on a server or VPS?
Yes, and Docker is the best route: go through setup interactively once, then start gateway run in the background with the ~/.hermes:/opt/data volume attached. Telegram is set up with hermes gateway setup. Open port 8642 only if you need the dashboard or outside access to the API server.
Hermes Agent or OpenClaw: which one should I pick?
OpenClaw works as a Gateway that connects chats to an agent, while Hermes is a personal-agent platform with a CLI, memory, skills and subagents. The best way to choose is to run both on one small task with separate keys and compare behavior and token use. If you decide to switch, hermes import-agent openclaw --dry-run shows what would move. A table of differences sits in the OpenClaw guide.
How do I switch models in Hermes Agent?
If the provider is configured, type /model in the chat. For a new provider, leave the session and run hermes model. Subagents and background jobs get their models separately, in the delegation and auxiliary blocks of config.yaml.