Back to AI Q&A
Why is Hermes Agent Anthropic OAuth invalid?

Why is Hermes Agent Anthropic OAuth invalid?

AI Q&A Admin 129 views

After using Anthropic OAuth, Hermes Agent also prompted that there is no valid API key, so don't manually fill in the .env with the token. The official Providers documentation is clear: Anthropic OAuth recommends using Claude Code's credential store through hermes model, and Hermes will prioritize reading Claude Code's own credential store instead of relying on you to copy a temporary token.

Practice in this order first

  1. Make sure that the native Claude Code is able to log in and use normally.
  2. Run hermes model, select Anthropic.
  3. Do not stuff expired ANTHROPIC_TOKEN interference in ~/.hermes/.env at the same time.
  4. If you go for API billing, it's clearer to configure ANTHROPIC_API_KEY directly.

The community has recently encountered similar issues, and the final direction is to have Hermes read Claude Code's credentials instead of copying a piece of token that expires or does not refresh the token.

In a word: When Anthropic OAuth is unstable, go back to the hermes model and Claude Code credential stores first, and don't fill in the old token by hand.

Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.

Recommended Tools

More