[BUG] /logout command is missing in Claude Code VS Code Extension

Resolved 💬 3 comments Opened Apr 9, 2026 by Seung0224 Closed May 23, 2026

Preflight Checklist

  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The /logout command is completely missing when using the Claude Code VS Code Extension interface. While the command exists in the standalone CLI, it is not available or recognized within the extension's environment. This makes it impossible to terminate a session or switch accounts without leaving the IDE. Currently, the only workaround is to open an Windows PowerShell window and manually run claude /logout.

What Should Happen?

The /logout command should be implemented and available directly within the Claude Code VS Code Extension. Users should be able to manage their session and log out seamlessly within the extension interface, just as they can in the standard CLI.

Error Messages/Logs

There are no specific error messages; the command simply does not exist or is not registered within the extension's command palette or chat interface.

Steps to Reproduce

  1. Open Visual Studio Code.
  2. Navigate to the Claude Code Extension (not the integrated terminal, but the extension's own interface/tab).
  3. Attempt to find or execute the /logout command.
  4. Observe that the command is missing and there is no UI option to log out.
  5. Open an external Windows PowerShell (outside of VS Code) and run claude /logout.
  6. Notice that only after running it externally is the session cleared within the VS Code Extension.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.96 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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