Skip to content

Add device/session management for Claude Code authentication #25185

Description

@anuvc

Feature Request

Problem

There is currently no way to view or manage which devices/sessions Claude Code is authenticated on. If a user wants to check where they're logged in or revoke access from a specific device remotely, there's no mechanism to do so.

Proposed Solution

Add device/session management capabilities, similar to what GitHub, Gmail, and other services provide:

  • View active sessions: A list of all devices/sessions where Claude Code is currently logged in (device name, OS, location, last active time)
  • Remote logout: Ability to revoke access or log out from specific devices remotely
  • CLI commands: Accessible via the CLI (e.g., claude sessions list, claude sessions revoke <id>) and/or the Anthropic Console

Why This Matters

  • Security: Users need visibility into where their account is authenticated, especially if a device is lost or compromised
  • Account hygiene: Ability to clean up old sessions from devices no longer in use
  • Parity with other tools: Most developer tools (GitHub CLI, cloud provider CLIs) offer session/device management

Current Workarounds

  • Manually running claude logout on each device with physical access
  • Rotating API keys (only applies to key-based auth)
  • Changing account password to invalidate OAuth sessions (nuclear option)

None of these provide visibility into active sessions or targeted revocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions