#HTTP 401 invalid x-api-key error on fresh Anthropic API keys

1 messages ยท Page 1 of 1 (latest)

tame perch
#

Hi, I'm getting a persistent HTTP 401 authentication error even after creating multiple fresh Anthropic API keys.

Setup details:

  • OpenClaw version: 2026.4.9
  • Mac Mini (macOS)
  • Model: anthropic/claude-opus-4-6

What's working:

  • Gateway connects fine
  • Telegram bot is connected (@GetItGooseBot)
  • Anthropic API credits are loaded
  • Doctor shows no major errors

What's not working:

  • Every time I launch the TUI I get:
    HTTP 401 authentication_error: invalid x-api-key

What I've tried:

  • Created multiple fresh API keys
  • Updated via openclaw config set env.ANTHROPIC_API_KEY
  • Updated via openclaw configure
  • Restarted gateway after each change

Any help would be greatly appreciated!

worn plankBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution