Skip to main content

How do I log out of all active sessions?

If you need to sign out of your Claude account across all devices, you can do this through Settings > Account on the web version of Claude. This is particularly useful if you've forgotten to log out on a shared device or suspect unauthorized access to your account.

Note: This option is not currently available in the Claude mobile apps for iOS or Android.

How long are sessions on the Claude web app?

When you log in via claude.ai, this creates a session with a duration of 28 days. This determines how long you remain logged in to your Claude account if you are inactive on the web app. If you take any action on claude.ai, such as reloading the page, your session will be automatically refreshed every hour to 28 days from that point in time.

How to log out of all active sessions

  1. Visit claude.ai in a web browser.

  2. Sign in to your account.

  3. Click on your initials in the lower left corner.

  4. Select "Settings" from the menu.

  5. Navigate to the "Account" section.

  6. Click the "Log Out" button.

  7. Confirm your choice when prompted.

This action will immediately sign you out of your account across all devices where you were previously logged in, including:

  • Web browsers

  • Mobile devices

  • Desktop applications

  • Claude Code, including tokens created with setup-token for continuous integration (CI)

  • Claude in your tools, such as Claude in Chrome, Claude in Slack, and [placeholder: public names for what the thread calls “Claude for Sheets” and “Claude for Teams”]

To regain access to your account on any device, you'll need to authenticate again using either Google login or a login link sent to your email address.

Note: Logging out of all active sessions doesn’t affect your API keys.

How to log out from Claude Code only

Logging out of all active sessions also logs you out of Claude Code. To log out of Claude Code and stay signed in everywhere else, remove its authorization token instead.

If you used your Claude account to authenticate into Claude Code, you can see and log out of those sign-ins in Settings > Account, where they're listed with your other sessions. If they aren't listed there, manage your authorization tokens in Settings > Claude Code. To remove a token and log out of Claude Code, click the trash can icon.

Unable to access your account?

If you're unable to sign into your account to log out of all sessions, contact our Support team by clicking on the message icon in the bottom right of any Help Center page. For additional information, refer to How to get support.

Did this answer your question?