[FEATURE] Add command to logout from all Claude Code instances

Resolved 💬 2 comments Opened Dec 4, 2025 by Musyonchez Closed Dec 15, 2025

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Currently, there's no documented way to logout from all active Claude Code instances simultaneously. This creates challenges for users who need to:

  • Switch between multiple Anthropic accounts
  • Revoke access across all devices for security reasons
  • Clear authentication state when troubleshooting
  • Manage sessions in multi-user or shared environment scenarios

Proposed Solution

Add a command to logout from all instances, such as:
claude logout --all

Or a more explicit version:
claude logout --all-sessions

This command should:

  • Invalidate all active sessions/tokens for the current account
  • Clear local credential storage
  • Optionally provide feedback about which instances were logged out

Alternative Solutions

  1. A web dashboard where users can view and revoke active sessions
  2. Documentation on manually clearing credentials from system credential managers
  3. A --global flag for the logout command

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

  • Security: Immediately revoke access if credentials are compromised
  • Account switching: Clean logout before authenticating with a different account
  • Troubleshooting: Reset authentication state across all instances
  • Enterprise/team environments: Proper session management

Additional Context

_No response_

View original on GitHub ↗

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