Search the documentation
14 pages for /logout.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Set up Claude Code for your organization
Claude Code CLI · in the page
admin-setup
…install#login-and-authentication). The most common fixes are: * Run `/logout` then `/login` to switch accounts * Run `claude update` if the enterprise auth option is missing * Restart the terminal af…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…lf instead of dispatching: * `/exit` and `/quit` close agent view * `/logout` signs you out * `/model` sets the [dispatch model](#set-the-model) * `/login` opens the sign-in dialog so you can sign in…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…es, so set `AWS_REGION` explicitly. * When using Amazon Bedrock, the `/logout` command is unavailable since authentication is handled through AWS credentials. * The WebSearch tool is not available on…
Authentication
Claude Code CLI · in the page
authentication
…t-login-to-your-organization). To log out and re-authenticate, type `/logout` at the Claude Code prompt. Logging out also resets your first-launch setup state, so the next time you run `claude` it wa…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ssion that began with signing in (for example the first launch after `/logout`) * Fixed hook `if` conditions like `Bash(cat *)` firing on unrelated Bash commands when the command contained `$()` or…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…ur machine without exporting it globally. <Note> The `/login` and `/logout` commands don't sign you into a Claude.ai subscription for Claude Platform on AWS. Authentication runs through your AWS cr…
Commands
Claude Code CLI · in the page
commands
…| | `/logout` | Sign out from your Anthropic accoun…
Error reference
Claude Code CLI · in the page
errors
…t of Claude`: you signed out on this machine, for example by running `/logout` in another terminal, so Claude Code has no saved login left to renew the connection with **What to do:** * Run `/login`…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…Google Cloud support. When using Google Cloud's Agent Platform, the `/logout` command is unavailable since authentication is handled through Google Cloud credentials. Claude Code decides between [MC…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…. To clear a saved login so only the gateway credential remains, run `/logout`. ## Configure each surface The CLI reads the environment variables and settings files above. The other surfaces are the…
Claude Code on Microsoft Foundry
Claude Code CLI · in the page
microsoft-foundry
…efault credential chain. <Note> When using Microsoft Foundry, the `/logout` command is unavailable since authentication is handled through Azure credentials. </Note> ### 3. Configure Claude Code…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…tes from the SDK or bridge #### Auth event Logged when `/login` or `/logout` completes. **Event Name**: `claude_code.auth` **Attributes**: * All [standard attributes](#standard-attributes) * `eve…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…in when the settings that require approval change, and after you run `/logout` or `claude auth logout`, which delete the cached copy. With a saved claude.ai login: * If you sign out and back in, or…
Troubleshoot installation and login
Claude Code CLI · in the page
troubleshoot-install
…sn't obvious, a clean re-authentication resolves most cases: 1. Run `/logout` to sign out completely 2. Close Claude Code 3. Restart with `claude` and complete the authentication process again If th…