Use the Wokey API with Hermes Agent

Get a Wokey API key, point Hermes Agent at the Wokey base URL, then confirm the connection with one curl request.

vpn_key

Get an API key and the base URL

Every client uses the same Wokey API key and the same base URL.

Create an API key

Sign in and create a platform key on the API page. Keys in one account share its balance.

Create an API keykey

Use the Wokey base URL

Set the client base URL to the gateway domain; the configuration below shows whether to append /v1.

terminal

Configure the client

Point the client at Wokey with the configuration below.

Hermes Agent

Hermes Agent only needs the first five config lines for model, custom provider, Base URL, and API key. For GPT models (such as gpt-6-sol), add api_mode: codex_responses for the best cache hit rate; leave it off for other models such as Claude.

Hermes Agent
# ~/.hermes/config.yaml
model:
  default: claude-opus-5-5
  provider: custom
  base_url: https://api.wokey.ai
  api_key: YOUR_API_KEY
  # GPT models (such as gpt-6-sol) only — uncomment for the best cache hit rate:
  # api_mode: codex_responses
task_alt

Verify with curl

If the client reports an error, rule out the key and base URL with curl first.

Hermes Agent uses the OpenAI Chat Completions format by default. A 200 from this request means the key and base URL are right. Replace YOUR_API_KEY with your key before sending it.

cURL
curl https://api.wokey.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6-sol",
    "messages": [
      { "role": "user", "content": "Hello" }
    ]
  }'
troubleshoot

Errors & Troubleshooting

Separate auth, balance, rate limit, model availability, and upstream timeout cases first.

401

invalid api key

The key is missing, mistyped, deleted, or Authorization / x-api-key headers conflict.

402

insufficient balance

The account balance is too low. Top up before sending more requests.

429

rate limited

Traffic is too frequent. Retry later or reduce concurrency.

502

upstream unavailable

The upstream model service is temporarily unavailable. Switch models or retry later.

504

upstream timeout

The upstream response timed out. Shorten context, reduce max_tokens, or retry.

529

upstream insufficient quota

The official upstream route is out of quota. Wait for routing recovery or switch models.