hermes - 💡(How to fix) Fix [Bug]: Its not possible to use Opencode Zen [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#18140Fetched 2026-05-01 05:53:41
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4commented ×1

Error Message

⚠️ API call failed (attempt 1/3): AuthenticationError [HTTP 401] hermes | 🔌 Provider: opencode-zen Model: anthropic/claude-opus-4.6 hermes | 🌐 Endpoint: https://opencode.ai/zen/v1 hermes | 📝 Error: HTTP 401: Model anthropic/claude-opus-4.6 not supported hermes | 📋 Details: {'type': 'ModelError', 'message': 'Model anthropic/claude-opus-4.6 not supported'} hermes | ⏱️ Elapsed: 1.46s Context: 38 msgs, ~4,252 tokens hermes | ⚠️ Non-retryable error (HTTP 401) — trying fallback... hermes | 🧾 Request debug dump written to: /opt/data/sessions/request_dump_20260430_232246_a1fd4f44_20260501_004325_135449.json hermes | ❌ Non-retryable error (HTTP 401): HTTP 401: Model anthropic/claude-opus-4.6 not supported hermes | ❌ Non-retryable client error (HTTP 401). Aborting. hermes | 🔌 Provider: opencode-zen Model: anthropic/claude-opus-4.6 hermes | 🌐 Endpoint: https://opencode.ai/zen/v1 hermes | 💡 Your API key was rejected by the provider. Check: hermes | • Is the key valid? Run: hermes setup hermes | • Does your account have access to anthropic/claude-opus-4.6? hermes | ERROR root: Non-retryable client error: Error code: 401 - {'type': 'error', 'error': {'type': 'ModelError', 'message': 'Model anthropic/claude-opus-4.6 not supported'}}

Root Cause

Root Cause Analysis (optional)

Code Example

model:
  default: qwen3-coder
  provider: opencode-zen
  base_url: ''

---

⚠️  API call failed (attempt 1/3): AuthenticationError [HTTP 401]
hermes            |    🔌 Provider: opencode-zen  Model: anthropic/claude-opus-4.6
hermes            |    🌐 Endpoint: https://opencode.ai/zen/v1
hermes            |    📝 Error: HTTP 401: Model anthropic/claude-opus-4.6 not supported
hermes            |    📋 Details: {'type': 'ModelError', 'message': 'Model anthropic/claude-opus-4.6 not supported'}
hermes            |    ⏱️  Elapsed: 1.46s  Context: 38 msgs, ~4,252 tokens
hermes            | ⚠️ Non-retryable error (HTTP 401) — trying fallback...
hermes            | 🧾 Request debug dump written to: /opt/data/sessions/request_dump_20260430_232246_a1fd4f44_20260501_004325_135449.json
hermes            |Non-retryable error (HTTP 401): HTTP 401: Model anthropic/claude-opus-4.6 not supported
hermes            |Non-retryable client error (HTTP 401). Aborting.
hermes            |    🔌 Provider: opencode-zen  Model: anthropic/claude-opus-4.6
hermes            |    🌐 Endpoint: https://opencode.ai/zen/v1
hermes            |    💡 Your API key was rejected by the provider. Check:
hermes            |Is the key valid? Run: hermes setup
hermes            |Does your account have access to anthropic/claude-opus-4.6?
hermes            | ERROR root: Non-retryable client error: Error code: 401 - {'type': 'error', 'error': {'type': 'ModelError', 'message': 'Model anthropic/claude-opus-4.6 not supported'}}

---

hermes cli does not work in docker container :/

---
RAW_BUFFERClick to expand / collapse

Bug Description

Hello,

I tried to configure Opencode Zen with Qwen3-coder in Hermes but it always falls back to anthropic/claude-opus-4.6

I used the docker compose variant to start hermes. I provided the opencode zen api key and also chose the model via the dashboard ui.

When I make a call via telegram i get the response: 401 {type: error, error: {type: ModelError, message: 'Model anthropic/claude-opus-4.6 not supported' }

The strange thing is I don't see any activity for my Opencode Zen API KEY in open code, so it seems, hermes doesn't even try to connect to opencode.

This is my config.yml:

model:
  default: qwen3-coder
  provider: opencode-zen
  base_url: ''

This is the error I get:

⚠️  API call failed (attempt 1/3): AuthenticationError [HTTP 401]
hermes            |    🔌 Provider: opencode-zen  Model: anthropic/claude-opus-4.6
hermes            |    🌐 Endpoint: https://opencode.ai/zen/v1
hermes            |    📝 Error: HTTP 401: Model anthropic/claude-opus-4.6 not supported
hermes            |    📋 Details: {'type': 'ModelError', 'message': 'Model anthropic/claude-opus-4.6 not supported'}
hermes            |    ⏱️  Elapsed: 1.46s  Context: 38 msgs, ~4,252 tokens
hermes            | ⚠️ Non-retryable error (HTTP 401) — trying fallback...
hermes            | 🧾 Request debug dump written to: /opt/data/sessions/request_dump_20260430_232246_a1fd4f44_20260501_004325_135449.json
hermes            | ❌ Non-retryable error (HTTP 401): HTTP 401: Model anthropic/claude-opus-4.6 not supported
hermes            | ❌ Non-retryable client error (HTTP 401). Aborting.
hermes            |    🔌 Provider: opencode-zen  Model: anthropic/claude-opus-4.6
hermes            |    🌐 Endpoint: https://opencode.ai/zen/v1
hermes            |    💡 Your API key was rejected by the provider. Check:
hermes            |       • Is the key valid? Run: hermes setup
hermes            |       • Does your account have access to anthropic/claude-opus-4.6?
hermes            | ERROR root: Non-retryable client error: Error code: 401 - {'type': 'error', 'error': {'type': 'ModelError', 'message': 'Model anthropic/claude-opus-4.6 not supported'}}

Steps to Reproduce

  1. Run Hermes via docker compose
  2. Provide Opencode ZEN API Key
  3. Connect Telegram Bot
  4. Try to chhat via Bot

Expected Behavior

hermes should use the configured model.

Actual Behavior

hermes just uses opus-4.6

Affected Component

Setup / Installation

Messaging Platform (if gateway-related)

Telegram

Debug Report

hermes cli does not work in docker container :/

Operating System

Ubuntu

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

extent analysis

TL;DR

The issue is likely due to Hermes not using the configured Opencode Zen model, instead falling back to the default anthropic/claude-opus-4.6 model, and a workaround may involve verifying the API key and model configuration.

Guidance

  • Verify that the Opencode Zen API key is valid and correctly configured in the config.yml file.
  • Check that the base_url field in the config.yml file is correctly set for the Opencode Zen provider.
  • Ensure that the account associated with the Opencode Zen API key has access to the qwen3-coder model.
  • Review the Hermes documentation to confirm that the config.yml file is being loaded correctly and that the model configuration is valid.

Example

No code snippet is provided as the issue seems to be related to configuration rather than code.

Notes

The issue may be related to the way Hermes handles model configuration and API key validation. Further investigation into the Hermes documentation and configuration options may be necessary to resolve the issue.

Recommendation

Apply workaround: Verify the API key and model configuration to ensure that Hermes is using the correct model. This is recommended as the issue seems to be related to configuration rather than a code bug, and verifying the configuration may resolve the issue without requiring a code change.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug]: Its not possible to use Opencode Zen [1 comments, 2 participants]