# Hermes

Run Hermes on Boundless models: install, the config.yaml provider, where the key goes, a verify command and common errors.


Hermes reaches Boundless through a provider in `~/.hermes/config.yaml`, using the OpenAI chat completions format. `key_env` names the variable that holds the key.

## Install

Install Hermes from its own documentation first. Then pick one way to point it at Boundless.

Run this in a terminal on macOS or Linux and choose **Hermes**:

```bash
curl -fsSL https://boundless.md/install | sh
```

Or run the package yourself, which also works on Windows:

```bash
npx -y @boundless.md/setup@latest
```

Setup signs you in through your browser, creates a key on your account and backs up every file it changes. To undo it, run `curl -fsSL https://boundless.md/install | sh -s -- --revert`. Need a key to configure by hand? Create one in [API Keys](https://inference.boundless.network/settings/api-keys). Setup also writes the key to Hermes's own `.env` file, because desktop apps and background services never read a shell profile.

## Configure

### Hermes

OpenAI format, in `~/.hermes/config.yaml`. `key_env` names the variable to read:

```yaml
providers:
  boundless:
    api: https://api.inference.boundless.network/v1
    key_env: BOUNDLESS_API_KEY
    transport: chat_completions
    models:
      deepseek/deepseek-v4.1-flash:
        context_length: 1048576

model:
  provider: custom:boundless
  default: deepseek/deepseek-v4.1-flash
```

Hermes Desktop never reads your shell profile, so put the key in `~/.hermes/.env`, which every Hermes process loads:

```bash
echo 'BOUNDLESS_API_KEY=YOUR_API_KEY' >> ~/.hermes/.env
```

A key added with `hermes auth add boundless` takes precedence over `key_env`; remove it with `hermes auth remove boundless <id>` (ids from `hermes auth list`).

```bash
hermes chat --toolsets terminal -q 'Use the terminal tool to run printf boundless, then report the output.'
```

## Model ids

The examples use `deepseek/deepseek-v4.1-flash`. Use any id from `GET https://api.inference.boundless.network/v1/models`; the [models page](https://inference.boundless.network/models) lists each one with its price and limits.

## Verify

Run the `hermes chat` command from the setup above. The reply should report `boundless`.

To check the base URL and key on their own, list the models the gateway serves. A list of models means both are right. A `401` means the key is missing or wrong:

```bash
curl https://api.inference.boundless.network/v1/models -H "Authorization: Bearer YOUR_API_KEY"
```

## Common errors

| What you see | What it usually is |
| --- | --- |
| `401` on every request | Wrong key. Set `BOUNDLESS_API_KEY`, and remove a stale key saved with `hermes auth add boundless` using `hermes auth remove boundless <id>` (ids from `hermes auth list`). A key added that way takes precedence over `key_env`. |
| An error naming a model you never chose | The harness is sending its default. Set the model explicitly, including any small or background slot. |
| `403` with `model_not_allowed` | Your team admin has not enabled that model for you. Ask them, or pick another. See [Model access](https://inference.boundless.network/docs/teams#model-access). |

Every status and code is on the [Errors](https://inference.boundless.network/docs/errors) page. Other harnesses are on the [Coding Agents & Harnesses](https://inference.boundless.network/docs/coding-agents-and-harnesses) page.
