[BUG] /login not present in console, can't redo the auth

Resolved 💬 5 comments Opened May 28, 2025 by mkacki98 Closed Dec 10, 2025

Environment

  • Platform (select one):
  • [ X ] Anthropic API
  • Claude CLI version: 1.0.3
  • Operating System: macOS 15.5
  • Terminal: iTerm2

Bug Description

I can't re-do the auth.

/login and /logout command are not available from my Claude Code CLI. It stores the token somewhere, so even after deleting .claude and .claude.json (I don't have the auth in .config/ as the docs pointed out), it still doesn't prompt me to re-do the auth.

Commands like /help, /status etc. work.

I have completed the OAuth once already, and used Claude Code, but it was using my private key, so I wanted to re-do the auth to join my company's organisation.

Steps to Reproduce

I don't know, /login was working at some point. I don't know when it stopped (maybe after an update?).

Expected Behavior

/login to work, so I can re-do the auth with a different

Actual Behavior

<!-- What actually happened -->

Additional Context

I have also deleted all keys from my Claude Console (I spent a lot of time trying to set up company key for Claude Code to use and wanted to make sure it's not using my private keys), and therefore can't using the product.

<img width="435" alt="Image" src="https://github.com/user-attachments/assets/9db27041-7c2f-4f66-a84e-75d896166063" />

<img width="583" alt="Image" src="https://github.com/user-attachments/assets/924b706c-21be-44e2-82b2-41778c2fc8dc" />

<img width="881" alt="Image" src="https://github.com/user-attachments/assets/99b1da6d-041d-475c-8aed-9297b02c6b27" />

<img width="493" alt="Image" src="https://github.com/user-attachments/assets/ef684eef-d804-48c3-910e-d2ea938c4913" />

View original on GitHub ↗

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