Skip to content

API Error: 401 and no way to resolve it #156

Description

@MrEdwards007

This program is awesome, so thank you.

I have two issues. The first is that after periods of inactivity, I get an an "API Error: 401"
I expect that, as the token should expire for security reason, however, I don't have a way to perform the "claude code /login" that is recommended to force the update from within the desktop application to update the token.

I did go to the terminal and login, which guided me through the browser to reauthorize. I authenticated and was in, within the terminal but that didn't change the status for the desktop application.

Linux Ubuntu 24.04.3 LTS

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_011CWyxjNDsrLp4WvAJWyZPV"} · Please run /login

When I look in the Claude Code settings, it appears that I have authorization tokens and they are connecting but that is not working.
This is the second time, I've encountered this issue, though I've only had the program for about 24 hours.

I logged out of the application and back in, re-authorizing the sessions, which worked last night but that didn't work today.

Image

Also, isnt there supposed to be a "CLI" button above the chat interface and I do have VS Code installed but its not recognized.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions