# Hermes Desktop

Run Hermes Desktop on Boundless models: install, the shared config.yaml, why the key goes in .env, and common errors.


Hermes Desktop runs the same agent as the Hermes CLI, on the same `~/.hermes/config.yaml`, with the base URL `https://api.inference.boundless.network/v1`.

## Install

Install Hermes Desktop 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 Desktop**:

```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. Setup writes both files when you choose **Hermes Desktop**.

## Configure

### Hermes Desktop

The desktop app runs the same agent on the same `~/.hermes/config.yaml` as the CLI:

```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
```

An app opened from the Dock or a launcher never sees the variables your shell exports, so the key goes in `~/.hermes/.env`, which every Hermes process loads:

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

Quit the app fully and reopen it; the running backend keeps the settings it started with. The [setup command](https://inference.boundless.network/docs/coding-agents-and-harnesses#set-up-with-one-command) writes both files when you choose **Hermes Desktop**.

## 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

Quit the app fully and reopen it, then send a short message and check that a reply comes back.

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 | The key is not in `~/.hermes/.env`. An app opened from the Dock or a launcher never sees the variables your shell exports. |
| The app ignores a change to the config | Quit the app fully and reopen it. The running backend keeps the settings it started with. |
| `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.
