[BUG] WebFetch tool returns 401 OAuth error after successful login

Status Fixed / completed
Maintainer reply None cached
Activity 6 comments · opened Oct 18, 2025 · closed Oct 20, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

  • WebFetch tool consistently fails with: `API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth authentication is

currently not supported."}`

  • Error persists even after /login shows "Login successful"
  • Issue prevents basic web fetching functionality

What Should Happen?

EXPECTED: WebFetch should work after successful authentication
ACTUAL: WebFetch fails with OAuth error despite successful login

Error Messages/Logs

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth authentication is currently not  supported."},"request_id":"req_011CUEhPdobFiywrLGdt15i2"} · Please run /login

Steps to Reproduce

  1. Run /login (returns "Login successful")
  2. Attempt to use WebFetch tool on any URL
  3. Receive 401 OAuth authentication error

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.22

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

This is a critical bug that breaks core functionality.

View original on GitHub ↗

6 Comments

github-actions[bot] · 10 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5893
  2. https://github.com/anthropics/claude-code/issues/9802
  3. https://github.com/anthropics/claude-code/issues/9810

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

jezzy-star · 10 months ago

I had to downgrade to v2.0.21 to fix it, nothing else worked for me

ariccio · 10 months ago

Seeing also. Feedback ID: 630f1a7a-0030-4745-abdc-08a02adf9d85

fgrehm · 10 months ago

FWIW - I'm no longer getting those today on v2.0.23, will see how the day goes by and report back if no issues

fgrehm · 10 months ago

No issues on my end today, closing for now

<img width="1803" height="1107" alt="Image" src="https://github.com/user-attachments/assets/274457be-72d4-4358-8bc4-e04ea16a2a11" />

github-actions[bot] · 10 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.