---
title: "Connect Hermes to Straitly | Straitly Docs"
description: "Configure Hermes with https://api.straitly.ai/v1 and your Straitly API key for multi-model inference."
url: https://straitly.ai/docs/hermes
updated: 2026-11-25
publisher: Straitly (https://straitly.ai)
---

Docs

Connect your tools

# Connect Hermes

Copy docs

**On this page**

Use your Straitly key in Hermes Desktop and in the terminal (`hermes`). One paste sets up both, and the models you pick show up in Hermes’s model menu.

Desktop + terminal + chat gateways

Have ready

Hermes installed, plus curl and python3 in your terminal. The screenshots follow macOS.

What changes

The Straitly provider and model list in Hermes configuration; the API key goes in Hermes' .env file.

Keep copied keys and setup commands private.

### Before you start

Create a key on the [Straitly API keys page](https://straitly.ai/app/keys), or press the copy-command button in step 3 to reuse a key saved in this browser or create one named `hermes`. If you are signed out, it asks you to log in first. You need [Hermes](https://hermes-agent.nousresearch.com/) installed.

### Setup

#### 1. Pick your models

These are the models you will see in Hermes. The first one is picked when it opens.

Claude Opus 5.5× GPT-6.1 Sol× Claude Fable 5.2×

- Claude Sonnet 5.5 Anthropic · $1.20 / $6 Add
- GLM-5.3 Z.ai · $0.42 / $1.39 Add
- DeepSeek V4.1 Flash 1017 DeepSeek · $0.090 / $0.36 Add

Price per million tokens, input / output. Only models that can run Hermes are listed.

#### 2. Open Terminal

Press **⌘ Space**, type **Terminal** and press **Enter**.

![Spotlight search with Terminal selected](https://straitly.ai/shots/claude-code/1-terminal.webp?v=a012c851)

#### 3. Paste the command

Copy it, paste it into Terminal and press **Enter**. You should see `Done - Hermes now uses Straitly.`

Copy command Show command

It adds Straitly to `~/.hermes/config.yaml` and keeps everything else in it, comments included. Your key goes in `~/.hermes/.env`, where Hermes keeps its keys, not in that file.

![Terminal after pasting the command, showing Done - Hermes now uses Straitly](https://straitly.ai/shots/hermes/1-done.webp?v=1ab19db1)

#### 4. Restart Hermes

Quit Hermes Desktop with **⌘ Q** and open it again. In the terminal, type `hermes` and press **Enter**. Your first model is already picked. If Hermes answers you in Telegram, Slack or another chat app, also run `hermes gateway restart`.

#### 5. Pick a model

Click the model name at the bottom right of the message box. Your models are in the **Straitly** group. In the terminal, type `/model` instead.

#### 6. Send a message

Say anything. If Hermes answers, you are done.

### Change your models later

Pick again in step 1 and paste the new command. It replaces the list. Restart Hermes afterwards. Every id is on the [models page](https://straitly.ai/models).

### Verify your connection

Restart Hermes, select a model in the Straitly group, and send a short message. For a connected chat app, restart the Hermes gateway too.

[Open request activity](https://straitly.ai/app/activity) to check the model, status, and charge for your test request.

### Setup checks

**Telegram or another chat app still uses old settings**

Run hermes gateway restart after setup. Restarting Hermes Desktop does not replace this step for a chat gateway.

**The script cannot find Hermes' Python**

Run hermes doctor and resolve the reported installation problem, then paste the setup command again.

If the request is rejected, check your balance and key limits in [Errors & limits](https://straitly.ai/docs/errors).

### Undo

This takes Straitly out of Hermes and leaves the rest of your settings as they are:

bash

Copy Copied Failed

curl -fsSL https://straitly.ai/setup/hermes | STRAITLY_UNDO=1 python3 -

The first paste also saved a copy of your settings in `~/.hermes/config.yaml.before-straitly`. If Straitly was your only provider, run `hermes model` afterwards to pick another.

[Connect OpenCode](https://straitly.ai/docs/opencode) [Connect OpenClaw](https://straitly.ai/docs/openclaw)

---
Markdown version of https://straitly.ai/docs/hermes.
