[BUG] API ERROR 401 after login on Ubuntu

Resolved 💬 4 comments Opened Feb 7, 2026 by jonathanleonwork Closed Feb 7, 2026

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?

I installed latest extension v2.1.37, and logged in but I am getting an error like
API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CXuFitVC4xWPZPwP13z11"} · Please run /login

<img width="764" height="327" alt="Image" src="https://github.com/user-attachments/assets/42b88992-47e8-4959-b751-e901dbc918fa" />

I tried to install old versions like 2.1.7, or 2.1.34...
My OS is Ubuntu 22.04.

What Should Happen?

Claude Code should be fully worked.

Error Messages/Logs

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CXuFitVC4xWPZPwP13z11"} · Please run /login

Steps to Reproduce

  1. install latest extension v 2.1.37 on VS Code
  2. Send "HI" message on extension chat.
  3. Login Claude
  4. Getting an error like

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CXuFitVC4xWPZPwP13z11"} · Please run /login

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.37

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗