# Hermes (https://inference.net/docs/integrations/hermes)

Hermes Agent supports direct OpenAI-compatible endpoints through its own model
configuration. Inference.net's one-command `fast hermes` adapter is still in
preview, so use the verified manual path below today.

<Callout title="CLI adapter in preview" tone="warning">

Do not run `fast hermes on` yet. The released `fast` CLI does not currently
register that command. Manual configuration remains under your control and is
not tracked or restored by `fast`.

</Callout>

## Configure Hermes manually

<Steps>
  <Step title="Create a project API key">

Create a key in [API keys](/dashboard/api-keys/), then store it in the Hermes
environment file instead of the YAML document.

```bash
mkdir -p ~/.hermes
printf 'OPENAI_API_KEY=%s\n' "$INFERENCE_API_KEY" >> ~/.hermes/.env
```

Make sure `INFERENCE_API_KEY` is set in the current shell before running the
command. Avoid appending the same setting more than once.

  </Step>
  <Step title="Select the custom endpoint">

Edit `~/.hermes/config.yaml` and merge this model configuration with your
existing settings:

```yaml
model:
  default: glm-5.2
  provider: custom
  base_url: https://api.inference.net/v1
```

Hermes documents `config.yaml` as the preferred place for custom provider,
model, and base URL settings. The direct `base_url` takes precedence over a
named provider.

  </Step>
  <Step title="Restart and verify">

Restart Hermes, open a new session, and send a short prompt. Confirm the model
and request under [Usage](/dashboard/usage/).

  </Step>
</Steps>

## Choose a model

Copy a callable ID from the [model catalog](/models/). The configured model must
support the tools and context size required by your Hermes workflow.

For auxiliary tasks such as vision or delegation, Hermes has separate nested
configuration blocks. They inherit the main provider only when explicitly set
to do so; configure those endpoints separately if you want them routed through
Inference.net.

## Revert the manual setup

Before editing, keep a copy of your current files:

```bash
cp ~/.hermes/config.yaml ~/.hermes/config.yaml.before-fast-inference
cp ~/.hermes/.env ~/.hermes/.env.before-fast-inference
```

To disconnect, restore those copies or remove only the `model` values and
`OPENAI_API_KEY` entry you added. Restart Hermes afterward.

## Troubleshooting

- **Hermes cannot load the configuration** — validate the YAML indentation.
- **Hermes cannot read its API key** — confirm `~/.hermes/.env` is readable
  only by your user and contains one key.
- **Requests fail to reach the gateway** — use `https://api.inference.net/v1`
  as the base URL, including the `/v1` suffix.
- **The gateway reports "model not found"** — choose a currently callable
  model ID.