Connect AI agents and assistants to Hormouz
Agents such as Hermes Agent, OpenClaw and Agent Zero can use Hormouz models through the OpenAI-compatible API. Each needs three things: the base URL https://api.hormouz.net/v1, an API key that starts with ng-, and a model id such as z-ai/glm-5.3 (the full vendor/name form). Make a separate key for each agent and give it a spend cap: agents run for hours unattended, and a key that reaches its cap is refused instead of spending your whole balance. A key made for an agent on the onboarding page starts with a $0.50 cap and answers 402 KEY_SPEND_CAP_REACHED; any other capped key answers 403 KEY_LIMIT_EXCEEDED.
Hermes Agent
Hermes Agent (Nous Research) is set up from the terminal, not a settings page.
Step 1. Run hermes model.
Step 2. Choose Custom endpoint. Paste the base URL https://api.hormouz.net/v1, then paste your ng- key.
Step 3. When it asks for the model name, type a full id, for example z-ai/glm-5.3.
Step 4. Run hermes and send a message.
Hermes writes the settings to ~/.hermes/config.yaml (provider: custom, base_url) and the key to ~/.hermes/.env. Setting names have changed between Hermes releases; if your version asks different questions, the three values above are still all it needs.
OpenClaw
Step 1. Run openclaw configure and choose Custom provider.
Step 2. Set the compatibility type to OpenAI (openai-completions), paste the base URL https://api.hormouz.net/v1 and your ng- key.
Step 3. Add the model id, for example z-ai/glm-5.3, and make it the default.
Step 4. Save and send OpenClaw a message.
If you edit ~/.openclaw/openclaw.json by hand, the provider goes under models.providers with baseUrl, apiKey, api: "openai-completions" and a models list, and each model must also be allowed in agents.defaults.models as <provider>/<model>; a missing allowlist entry is the most common reason a model is refused.
Keep OpenClaw up to date. Its configuration format changes between releases, and old versions may not send the fields our API expects.
Agent Zero
Step 1. Open the Agent Zero web UI. If models are not set up yet, it opens model setup; choose Cloud provider. (Later you can change it from the model presets menu.)
Step 2. Set the provider to Other OpenAI compatible, paste the API base URL https://api.hormouz.net/v1 and your ng- key.
Step 3. For the main model, type a full id such as z-ai/glm-5.3.
Step 4. Choose a small, cheap model as the utility model (it handles summaries and naming), for example deepseek/deepseek-v4.1-flash, and press Finish setup.
Any OpenAI-compatible app
Most apps that support "OpenAI-compatible", "Custom OpenAI" or "Custom endpoint" providers work the same way.
Step 1. In the app's settings, open the model or provider section and choose the OpenAI-compatible or custom option. A plain "OpenAI" option usually reaches only OpenAI's own servers; pick the one that takes a base URL.
Step 2. Paste the base URL https://api.hormouz.net/v1 and your ng- key.
Step 3. Type the model id in full, for example z-ai/glm-5.3. GET https://api.hormouz.net/v1/models lists every id.
If the app asks for a URL without /v1, use https://api.hormouz.net. Apps that speak only the Anthropic or Google API (for example Claude Code or Gemini CLI) do not connect.
FAQ
- Why does my agent stop with 402 KEY_SPEND_CAP_REACHED?
The key was made for an agent on the onboarding page and reached its spend cap (these keys start at $0.50). Raise or clear the cap on the key's page at app.hormouz.net/keys. Your balance is not affected.
- Which model should an agent use?
A model with good tool calling. Start with the one onboarding suggests and compare others side by side in the Studio before you switch.