Search the documentation
3 pages for claude_code_oauth_scopes.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Environment variables
Claude Code CLI · in the page
env-vars
…exchanges this token directly instead of opening a browser. Requires `CLAUDE_CODE_OAUTH_SCOPES`. Useful for provisioning authentication in automated environments…
Enterprise network configuration
Claude Code CLI · in the page
network-config
…SSPHRASE` * `NODE_EXTRA_CA_CERTS` * `NODE_TLS_REJECT_UNAUTHORIZED` * `CLAUDE_CODE_OAUTH_SCOPES` Claude Code notes each ignored key in the session's debug log. In [Claude Desktop](/docs/en/desktop) s…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…onto an ephemeral runner, set [`CLAUDE_CODE_OAUTH_REFRESH_TOKEN` and `CLAUDE_CODE_OAUTH_SCOPES`](/docs/en/env-vars#variables) so `claude auth login` exchanges the token without a browser; the same 30-…