# hermes model Command

> The shell command that adds model providers to Hermes. It also sets the default.

**Field:** Artificial Intelligence  
**Category:** Hermes Agent  
**Also known as:** Hermes provider setup, Hermes /model, Hermes model switch

## Think of it like

It is like adding a new card to your wallet. After that, you just pick which card to pay with.

## Definition

hermes model is the setup tool for the brains behind Hermes. You run it in your shell, outside any chat. It adds a new model provider, takes an API key, or signs you in with a browser. Then it saves your choice as the default. Inside a chat, the /model command can only switch between providers you have already added.

## Example

Leo has only OpenRouter set up. He quits his chat, runs hermes model, and signs in to Nous Portal. Back in the chat, /model now lists Nous models too.

## Example code

```console
hermes model
/model zai:glm-5
/model claude-sonnet-4 --global
```

Add a provider in the shell. Then switch in the chat, and save it with --global.

## Why it matters

Hermes works with many providers. This is the one place where a new one gets added and signed in.

## Common mistake

Typing /model inside a chat to add a new provider. It cannot ask for a key, so you must leave the chat first.

## Three principles

- **Shell adds.** hermes model sets up new providers.
- **Chat switches.** /model picks from what is set up.
- **--global saves.** Otherwise a switch lasts one session.

## Related terms

- [hermes Command](https://learn.benibix.com/term/ai/hermes-command)
- [Hermes config.yaml](https://learn.benibix.com/term/ai/hermes-config-yaml)
- [Nous Portal](https://learn.benibix.com/term/ai/nous-portal)
- [OpenRouter](https://learn.benibix.com/term/ai/openrouter)
- [Inference Provider](https://learn.benibix.com/term/ai/inference-provider)
- [API Key](https://learn.benibix.com/term/development/api-key)

![Two panels. Left, your shell, holds hermes model, hermes update, hermes plugins install and hermes --tui. Right, inside a chat, holds /model, /goal, /voice and /compress. An arrow says the left side adds things and the right side only picks from them.](https://learn.benibix.com/diagrams/ai8-hermes-commands.svg)

---

Source: https://learn.benibix.com/term/ai/hermes-model-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
