Skip to content

Hermes Gateway chat works but enhanced calls show 'Hermes Agent rejected the connection token' #239

@depre-dev

Description

@depre-dev

Summary\n\nWhen Hermes Workspace is connected to a Hermes Agent gateway, plain chat completions can work through the gateway while the UI still shows:\n\n\nAuthentication required — Hermes Agent rejected the connection token.\nGo to Settings -> Advanced -> Hermes Agent to update your token.\n\n\nThis appears to affect enhanced gateway/dashboard calls, not the OpenAI-compatible chat endpoint.\n\n## Environment\n\n- Workspace image: ghcr.io/outsourc-e/hermes-workspace:latest after the 2026-05-02 rebuild that fixed HermesOnboarding is not defined\n- Hermes Agent image: nousresearch/hermes-agent@sha256:8811f1809971ac558f8d5e311e22fe73dc2944616dda7295c98acb6028f9df08\n- Gateway URL inside Docker: http://hermes-gateway:8642\n- Dashboard URL inside Docker: http://hermes:9119\n- Browser access via SSH tunnel to 127.0.0.1:3000\n\n## What works\n\nGateway health and models work with bearer token:\n\nbash\ncurl -sS http://127.0.0.1:8642/health\ncurl -sS -H "Authorization: Bearer " http://127.0.0.1:8642/v1/models\n\n\nA chat completion through the same key works:\n\nbash\ntimeout 45 curl -sS \\n -H "Authorization: Bearer " \\n -H "Content-Type: application/json" \\n -X POST http://127.0.0.1:8642/v1/chat/completions \\n -d '{"model":"hermes-agent","messages":[{"role":"user","content":"say ok"}],"stream":false}'\n\n\nResponse includes assistant content ok. Workspace chat also returns assistant messages.\n\n## What does not work\n\nThe UI still displays the authentication banner above, even after setting these environment variables to the same gateway key and clearing browser/site data plus Workspace server-side state:\n\nyaml\nHERMES_API_TOKEN: <gateway key>\nCLAUDE_API_TOKEN: <gateway key>\nCLAUDE_DASHBOARD_TOKEN: <gateway key>\nHOME: /tmp/workspace-home\n\n\nThe warning seems to come from enhanced Hermes Agent/dashboard calls rather than chat completions.\n\n## Other fixes needed for this deployment\n\nThe upstream image tried to write below /home/workspace/.hermes and hit EACCES, so setting writable HOME=/tmp/workspace-home avoids unrelated 500s.\n\n## Expected\n\nIf /v1/chat/completions, /health, and /v1/models accept the configured token, the enhanced Workspace calls should either reuse the same token successfully or expose which exact endpoint/token name is failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions