Skip to main content
Hermes Agent is a self-improving agent from Nous Research with a built-in MCP client. Route its model calls through the AI Gateway, then connect it to the Orq MCP server for agentic access to the workspace.

Prerequisites

AI Gateway

Hermes is OpenAI-compatible, so it routes through the AI Gateway by pointing the OpenAI provider at the router. Configure it in the desktop app or the CLI. Changes made in the desktop app apply to the CLI as well, since both share the same configuration.
1

Open provider settings

Open the Hermes desktop app. On first launch, skip provider selection to set it later. Open Settings in the top right, then go to Providers > API keys.
2

Set the OpenAI API key and base URL

Scroll to OpenAI API and expand it. Paste the Orq.ai API key into the OpenAI API key field and click Save. Then paste the router URL into the OpenAI API base URL override field and click Save:
https://api.orq.ai/v3/router
Hermes API keys settings with the OpenAI API entry expanded, the Orq.ai key in the OpenAI API key field, and the router URL in the base URL override field
3

Select a model

Hermes now routes through the AI Gateway. Pick a model from the recommended list, or search by name for any other model from the AI Gateway catalog that is not shown.

Verification

Send a prompt in Hermes. The response appears in Hermes and the request appears in Orq.ai Traces with the selected model identifier.

MCP

The Orq MCP server exposes the Orq.ai platform as MCP tools. Hermes’s built-in MCP client connects to it and uses those tools to manage Agents, run experiments, and query Traces from natural language.
1

Open MCP settings

In Settings, go to MCP and click New server in the top right.
2

Add the Orq MCP server

Set the Name to orq and paste the following into the Server JSON field, then click Save server:
{
  "url": "https://my.orq.ai/v2/mcp",
  "headers": {
    "Authorization": "Bearer YOUR_ORQ_API_KEY"
  }
}
Replace YOUR_ORQ_API_KEY with an Orq.ai API key.
Hermes MCP settings showing a new server named orq with the Orq MCP URL and a bearer Authorization header in the Server JSON field
3

Reload MCP

Click Reload MCP in the top right. Hermes connects to the Orq MCP server and its tools become available.

Available Commands

Once connected, ask Hermes to perform operations across the workspace:
  • Create an agent with custom instructions and tools
  • Get agent configuration for [agent-key]
  • Invoke agent [agent-key] with input [message]
  • Create an experiment from dataset [dataset-key]
  • Run experiment and auto-evaluate results
  • Export experiment run [run-id] as CSV
  • Create a dataset called "customer-queries"
  • Add datapoints to dataset [dataset-key]
  • List all datapoints in dataset [dataset-key]
  • List traces from the last 24 hours
  • Show me traces with errors
  • Get span details for trace [trace-id]
  • Get analytics overview for my workspace
  • Show me workspace metrics for the last 7 days

See Also

Orq MCP Quickstart

The full Orq MCP tool reference.

API Keys

Create and manage Orq.ai API keys.