Hermes Agent
Hermes Agent is an autonomous multi-step AI agent built for research, coding, and tool-assisted workflows. You can connect Hermes Agent to RKAPI through either the OpenAI-compatible interface (https://api.zwwbai.com/v1) or a native Anthropic endpoint (https://api.zwwbai.com).
1. Install Hermes Agent
Install Hermes Agent via its official installer or Python environment (Python 3.11+ recommended):
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bashReload your shell and confirm the CLI is available:
hermes --version2. Configure Credentials and Provider
Hermes stores credentials in ~/.hermes/.env and agent settings in ~/.hermes/config.yaml.
Option A: OpenAI-Compatible Setup (Recommended)
This works with GPT, DeepSeek, Gemini, and Claude models exposed through RKAPI's OpenAI-compatible gateway.
Add your credentials to ~/.hermes/.env:
OPENAI_BASE_URL="https://api.zwwbai.com/v1"
OPENAI_API_KEY="<YOUR_API_KEY>"Then configure ~/.hermes/config.yaml:
model:
provider: custom
base_url: "https://api.zwwbai.com/v1"
default: "gpt-5.4"Option B: Anthropic Native Setup
If you prefer calling Claude models through the native Anthropic Messages endpoint, add the following to ~/.hermes/.env:
ANTHROPIC_BASE_URL="https://api.zwwbai.com"
ANTHROPIC_API_KEY="<YOUR_API_KEY>"And select a Claude model in ~/.hermes/config.yaml:
model:
provider: anthropic
base_url: "https://api.zwwbai.com"
default: "claude-sonnet-4-6"Interactive Setup
You can also run hermes setup or hermes model to review and update the active provider and model interactively after creating ~/.hermes/.env.
3. Choosing the Right Model
Hermes relies heavily on iterative tool calls (shell execution, file edits, search, and memory management). Check exact active model IDs on RKAPI Pricing and pick models tuned for structured function calling:
- Complex coding & multi-step planning: Claude Sonnet / Opus series or flagship GPT-5 models.
- High-throughput / budget-friendly automation:
deepseek-chator lightweight GPT / Gemini Flash models. - Deep architectural reasoning: Reasoning-capable models paired with generous request timeouts.
4. Tool-Calling Compatibility Tips
- Prefer native tool-calling models: Ensure the model ID you choose supports structured JSON tool calls and parallel tool execution; models without reliable function-calling support can cause Hermes to emit raw JSON text instead of invoking tools.
- Watch output token limits: Multi-file patches and complex tool arguments need room. Avoid capping
max_tokenstoo low in your Hermes config. - Reasoning parameter hygiene: Some strict reasoning endpoints reject custom
temperatureortop_poverrides. If you encounter400 Bad Requeston a reasoning model, remove custom sampling overrides from~/.hermes/config.yaml. - Keep key and group aligned: Bind your Hermes API key in https://s2pbxm0xv5y.adtyai-fz.top to a group that reliably serves your chosen model family. See Channel Availability.
5. Verify Your Setup
Launch Hermes and test both a normal response and a basic tool invocation:
hermesTry a quick prompt inside the session:
Confirm our API connection, then list the files in the current directory using your file tool.If Hermes responds cleanly and executes the tool call without schema errors, your setup is complete.
Troubleshooting
- Requests hit the official OpenAI endpoint instead of RKAPI: Double-check that
OPENAI_BASE_URL="https://api.zwwbai.com/v1"is present in~/.hermes/.envand not overridden by anotherOPENAI_BASE_URLexported in your shell. 401 Unauthorized: Confirm your API key in https://s2pbxm0xv5y.adtyai-fz.top is enabled and has available balance.- Tool call parsing failures: Switch to a model with strong function-calling accuracy (such as Claude Sonnet or GPT-5 series) and verify no proxy is stripping SSE streaming chunks.
- Timeout on long agent loops: Increase the HTTP timeout in
~/.hermes/config.yamland review General FAQ.