https://thapi.cloud/v1

← All applications · Connect apps section on /docs

Anthropic + OpenAIManual setup

Hermes Agent

Also known as: Nous Hermes · hermes

Hermes Agent: configure the API key, model and provider in your terminal.

Published instructions · App version: unverified

Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely

Base URL to paste

OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.

https://thapi.cloud/v1

Prerequisites

  1. Hermes Agent (`hermes`) is installed
  2. API key ThAPI
  3. Do not use Anthropic Max OAuth if you want billing through ThAPI

Recommended model: claude-fable-5

Quick way — command / config

# ~/.hermes/config.yaml
model:
  default: "claude-fable-5"
  provider: "custom"
  base_url: "https://thapi.cloud/v1"
  api_key: "sk-thapi-..."

# Or move the secret to ~/.hermes/.env:
# OPENAI_API_KEY=sk-thapi-...

Where to place file / fill Settings

Filemacos
~/.hermes/config.yaml
Use a custom provider with ThAPI's OpenAI-compatible base_url. Do not commit api_key.
Filelinux
~/.hermes/config.yaml
Same as macOS.
Filewindows
%USERPROFILE%\.hermes\config.yaml
Create the .hermes directory; store secrets in .hermes\.env.
Fileany
~/.hermes/.env
Contains only the key/token. Use chmod 600 on Unix.

Verify connection

  1. Send a short prompt with `hermes chat` using a ThAPI model.
  2. Dashboard → Usage.

Troubleshooting

SymptomReasonHow to handle
Still calls OpenRouter / NousThe provider is still auto/openrouter.Set provider: custom (or anthropic) and ThAPI's base_url.
404base_url is missing /v1 for an OpenAI-compatible provider.base_url: "https://thapi.cloud/v1"

Notes

  • API CLI does not yet support `api-cli configure hermes` — configure it manually using this page.
  • Prefer a custom OpenAI-compatible provider or anthropic + ANTHROPIC_BASE_URL; avoid Claude Max OAuth if you want charges deducted from your ThAPI wallet.

Related

Claude Code · OpenCode · Codex CLI

Zalo group