Skip to content

[Bug]: Hermes does not work through Claude CLI #29125

Description

@FreeWind6

Bug Description

Hermes does not work through Claude CLI

Steps to Reproduce

  1. hermes model
  2. Select Anthropic
  3. Select 1 (Claude Pro/Max subscription)
  4. Paste Claude token
  5. Select claude-opus-4.7 model

During the initial setup, after inserting the token into claude, it also requested a token like "sk-ant-oat01-u...", it was also specified in .env, it is present as "ANTHROPIC_TOKEN=sk-ant-oat01-..."

Expected Behavior

Hermes works through Claude CLI

Actual Behavior

Error In Telegram:
[20.05.2026 8:52] 𝕯𝖒𝖎𝖙𝖗𝖞: hi
[20.05.2026 8:52] Hermes Bot: ⚠️ The model provider failed after retries. I kept raw provider details out of chat; check gateway logs for diagnostics.
[20.05.2026 8:52] Hermes Bot: ⚠️ The model provider failed after retries. I kept raw provider details out of chat; check gateway logs for diagnostics.
[20.05.2026 8:52] Hermes Bot: ⚠️ The model provider failed after retries. I kept raw provider details out of chat; check gateway logs for diagnostics.

Error in terminal:
● not
────────────────────────────────────────

⚠️ API call failed (attempt 1/3): BadRequestError [HTTP 400]
🔌 Provider: anthropic Model: claude-opus-4-7
🌐 Endpoint: https://api.anthropic.com
📝 Error: HTTP 400: Third-party apps now draw from your extra usage, not your plan limits. Add more at claude.ai/settings/usage and keep going.
📋 Details: {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Third-party apps now draw from your extra usage, not your plan limits. Add more at claude.ai/settings/usage and keep going.'}, 'request_id': 'req_*******'}
⚠️ Non-retryable error (HTTP 400) — trying fallback...
❌ Non-retryable error (HTTP 400): HTTP 400: Third-party apps now draw from your extra usage, not your plan limits. Add more at claude.ai/settings/usage and keep going.
❌ Non-retryable client error (HTTP 400). Aborting.
🔌 Provider: anthropic Model: claude-opus-4-7
🌐 Endpoint: https://api.anthropic.com
💡 This type of error won't be fixed by retrying.
─ ⚕ Hermes ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

 Error: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Third-party apps now draw from your extra usage, not your plan limits. Add more at claude.ai/settings/usage and keep going.'}, 'request_id':                   
 'req_**********'}   

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Debug Report

Report       https://paste.rs/EKeVd
agent.log    https://paste.rs/vfBi4
gateway.log  https://paste.rs/EMgdn

Operating System

Ubuntu 24.04

Python Version

3.12.3

Hermes Version

0.14.0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to haveprovider/anthropicAnthropic native Messages APIquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions