|
| 1 | +# Hermes Desktop |
| 2 | + |
| 3 | +## About |
| 4 | + |
| 5 | +[Hermes Desktop](https://github.com/fathah/hermes-desktop) is a native desktop app for installing, configuring, and chatting with [Hermes Agent](https://github.com/NousResearch/hermes-agent). It provides a GUI for provider setup, model selection, sessions, tools, skills, and messaging gateways — without having to manage the CLI by hand. |
| 6 | + |
| 7 | +As of [PR #612](https://github.com/fathah/hermes-desktop/pull/612) (merged June 9, 2026), AI/ML API is a built-in provider preset in Hermes Desktop. You can select it from the provider list during first-run setup or at any time in Settings. |
| 8 | + |
| 9 | +## Quick start |
| 10 | + |
| 11 | +1. Download and install Hermes Desktop from [hermesagents.cc](https://hermesagents.cc/). |
| 12 | +2. Open the app. On first launch it runs the setup wizard. |
| 13 | +3. When prompted for a provider, choose **AI/ML API**. |
| 14 | +4. Enter your AI/ML API key. |
| 15 | +5. Pick a model and start chatting. |
| 16 | + |
| 17 | +## When to use AI/ML API with Hermes Desktop |
| 18 | + |
| 19 | +AI/ML API works well with Hermes Desktop when you want: |
| 20 | + |
| 21 | +* one key for many model providers |
| 22 | +* an OpenAI-compatible endpoint with no custom configuration |
| 23 | +* fast switching between coding, reasoning, and multimodal models from a GUI |
| 24 | + |
| 25 | +## Prerequisites |
| 26 | + |
| 27 | +Before you start, make sure you have: |
| 28 | + |
| 29 | +* Hermes Desktop installed ([hermesagents.cc](https://hermesagents.cc/)) |
| 30 | +* an AI/ML API key from [aimlapi.com/app/keys](https://aimlapi.com/app/keys) |
| 31 | +* a model ID from [aimlapi.com/models](https://aimlapi.com/models) |
| 32 | + |
| 33 | +The base URL is: |
| 34 | + |
| 35 | +```bash |
| 36 | +https://api.aimlapi.com/v1 |
| 37 | +``` |
| 38 | + |
| 39 | +Need a key first? Use [API Key Management](/broken/pages/b1dbdf89b3ed7f9af9a90506fe3124b622cfc559). |
| 40 | + |
| 41 | +## Set up AI/ML API in Hermes Desktop |
| 42 | + |
| 43 | +### First-run setup wizard |
| 44 | + |
| 45 | +When Hermes Desktop opens for the first time: |
| 46 | + |
| 47 | +1. Choose **Local** mode (runs Hermes Agent at `127.0.0.1:8642`) or **Remote** mode (connects to a hosted Hermes API server). |
| 48 | +2. At the provider step, select **AI/ML API** from the list. |
| 49 | +3. Enter your `AIMLAPI_API_KEY` in the key field. |
| 50 | +4. Pick a model from the auto-discovered model list. |
| 51 | +5. Complete setup. The app saves your config and opens the workspace. |
| 52 | + |
| 53 | +### Change provider in Settings |
| 54 | + |
| 55 | +To switch to AI/ML API after initial setup: |
| 56 | + |
| 57 | +1. Open **Settings** → **Provider**. |
| 58 | +2. Select **AI/ML API**. |
| 59 | +3. Enter your `AIMLAPI_API_KEY`. |
| 60 | +4. Save. |
| 61 | + |
| 62 | +### Saved configuration |
| 63 | + |
| 64 | +Hermes Desktop stores provider config in the standard Hermes files under `~/.hermes/`: |
| 65 | + |
| 66 | +`~/.hermes/.env`: |
| 67 | + |
| 68 | +```bash |
| 69 | +AIMLAPI_API_KEY=your_key_here |
| 70 | +``` |
| 71 | + |
| 72 | +`~/.hermes/config.yaml`: |
| 73 | + |
| 74 | +```yaml |
| 75 | +model: |
| 76 | + provider: aimlapi |
| 77 | + base_url: https://api.aimlapi.com/v1 |
| 78 | + default: openai/gpt-4o |
| 79 | +``` |
| 80 | +
|
| 81 | +### How the CLI bridge works |
| 82 | +
|
| 83 | +The Hermes Agent CLI does not yet have a native `aimlapi` provider ID. Hermes Desktop bridges this by routing AI/ML API traffic through `--provider custom`, passing `CUSTOM_BASE_URL` and mapping `AIMLAPI_API_KEY` to `OPENAI_API_KEY` so the CLI can authenticate. This is transparent — from the desktop UI it behaves like any other built-in provider. |
| 84 | + |
| 85 | +## Model selection |
| 86 | + |
| 87 | +Use exact AI/ML API model IDs. Hermes Desktop auto-discovers available models from `/v1/models` — no hardcoded model list. |
| 88 | + |
| 89 | +Common examples: |
| 90 | + |
| 91 | +* `openai/gpt-4o` |
| 92 | +* `anthropic/claude-sonnet-4-5` |
| 93 | +* `google/gemini-2.5-flash` |
| 94 | + |
| 95 | +### Good starting models |
| 96 | + |
| 97 | +* `openai/gpt-4o` for strong general use |
| 98 | +* `anthropic/claude-sonnet-4-5` for coding and long-form work |
| 99 | +* `google/gemini-2.5-flash` for lower latency and lower cost |
| 100 | + |
| 101 | +For the full catalog, use [All Model IDs](/broken/pages/ec6db764340ce0627cef7e114fb5a65a73cafbf4). |
| 102 | + |
| 103 | +## Switch models |
| 104 | + |
| 105 | +Open the **Models** screen to manage saved model configurations per provider. To change the active model mid-session, use the `/model` slash command in chat: |
| 106 | + |
| 107 | +```bash |
| 108 | +/model openai/gpt-4o |
| 109 | +/model anthropic/claude-sonnet-4-5 |
| 110 | +``` |
| 111 | + |
| 112 | +## Verify the setup |
| 113 | + |
| 114 | +After setup, open a chat and send a message. If the model responds normally, the provider is configured correctly. |
| 115 | + |
| 116 | +You can also check the active provider and model from the chat footer or with the `/status` slash command. |
| 117 | + |
| 118 | +## Config checklist |
| 119 | + |
| 120 | +Make sure these values are set: |
| 121 | + |
| 122 | +* base URL: `https://api.aimlapi.com/v1` |
| 123 | +* provider: `AI/ML API` (shown as `aimlapi` in config files) |
| 124 | +* model ID: exact AI/ML API model ID |
| 125 | +* API key variable: `AIMLAPI_API_KEY` |
| 126 | + |
| 127 | +## Troubleshooting |
| 128 | + |
| 129 | +<details> |
| 130 | + |
| 131 | +<summary>AI/ML API does not appear in the provider list</summary> |
| 132 | + |
| 133 | +The preset was added in [PR #612](https://github.com/fathah/hermes-desktop/pull/612). Update Hermes Desktop to the latest version from [hermesagents.cc](https://hermesagents.cc/) or the [releases page](https://github.com/fathah/hermes-desktop/releases). |
| 134 | + |
| 135 | +</details> |
| 136 | + |
| 137 | +<details> |
| 138 | + |
| 139 | +<summary>My model is missing from the picker</summary> |
| 140 | + |
| 141 | +The model list is pulled live from `/v1/models`. If a model does not appear, set it manually in `~/.hermes/config.yaml`: |
| 142 | + |
| 143 | +```yaml |
| 144 | +model: |
| 145 | + default: openai/gpt-4o |
| 146 | +``` |
| 147 | + |
| 148 | +</details> |
| 149 | + |
| 150 | +<details> |
| 151 | + |
| 152 | +<summary>I get an auth error</summary> |
| 153 | + |
| 154 | +Check that: |
| 155 | + |
| 156 | +* `AIMLAPI_API_KEY` is set in `~/.hermes/.env` |
| 157 | +* the key is valid at [aimlapi.com/app/keys](https://aimlapi.com/app/keys) |
| 158 | +* no other provider is overriding the env key |
| 159 | + |
| 160 | +Use **Settings → Backup & Debug → Debug dump** for a full diagnostics report. |
| 161 | + |
| 162 | +</details> |
| 163 | + |
| 164 | +<details> |
| 165 | + |
| 166 | +<summary>I want to use a proxy</summary> |
| 167 | + |
| 168 | +Set a custom base URL in `~/.hermes/config.yaml`: |
| 169 | + |
| 170 | +```yaml |
| 171 | +model: |
| 172 | + base_url: https://your-proxy.example/v1 |
| 173 | +``` |
| 174 | + |
| 175 | +</details> |
| 176 | + |
| 177 | +## Links |
| 178 | + |
| 179 | +* [All Model IDs](/broken/pages/ec6db764340ce0627cef7e114fb5a65a73cafbf4) |
| 180 | +* [AI/ML API keys](https://aimlapi.com/app/keys) |
| 181 | +* [AI/ML API model catalog](https://aimlapi.com/models) |
| 182 | +* [Hermes Desktop repository](https://github.com/fathah/hermes-desktop) |
| 183 | +* [Hermes Desktop releases](https://github.com/fathah/hermes-desktop/releases) |
| 184 | +* [Hermes Agent repository](https://github.com/NousResearch/hermes-agent) |
0 commit comments