{"name":"USE_LOCAL_OAUTH","slug":"use-local-oauth","family":"env","title":"Environment variables","noun":"environment variable","description":"Boolean (`1`, `true`, `yes` or `on`). When true, the Claude in Chrome bridge connects to `ws:\/\/localhost:8765` instead of `wss:\/\/bridge.claudeusercontent.com`, as `LOCAL_BRIDGE` does, taking precedence over `USE_STAGING_OAUTH`, and the bridge client gets `devUserId: \"dev_user_local\"`. The tool host helper check also stops treating an `ANTHROPIC_BASE_URL` on `localhost`, `127.0.0.1` or `[::1]` as sending traffic elsewhere when it is true.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"1.0.122","anchor":"oauth-environment-mode-removed","heading":"OAuth Environment Mode Removed","line":null,"released_at":"2025-09-23 17:35:45","reason":"found in this entry's text"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"USE_API_CLEAR_TOOL_RESULTS","slug":"use-api-clear-tool-results","description":null},{"name":"USE_API_CLEAR_TOOL_USES","slug":"use-api-clear-tool-uses","description":null},{"name":"USE_API_CONTEXT_MANAGEMENT","slug":"use-api-context-management","description":null},{"name":"USE_BUILTIN_RIPGREP","slug":"use-builtin-ripgrep","description":"More environment variables go through the central registry that handles allowlisting and scrubbing."},{"name":"USE_STAGING_OAUTH","slug":"use-staging-oauth","description":"Boolean (`1`, `true`, `yes` or `on`). When true, the Claude in Chrome bridge connects to `wss:\/\/bridge-staging.claudeusercontent.com` instead of `wss:\/\/bridge.claudeusercontent.com`; `USE_LOCAL_OAUTH` or `LOCAL_BRIDGE` take precedence and use `ws:\/\/localhost:8765`. The self-hosted runner sets it to `1` for sessions whose API base URL contains `staging`."},{"name":"USER","slug":"user","description":"When Claude Code is launched in diskless mode, your `statusLine` and `fileSuggestion` commands no longer run"},{"name":"USER_TYPE","slug":"user-type","description":"The launcher now handles USER_TYPE specially when setting up the environment it passes down."},{"name":"USERNAME","slug":"username","description":"Session cleanup now tracks which machine a process belongs to, so container ids stop colliding."},{"name":"USERPROFILE","slug":"userprofile","description":"Working-tree upload now refuses linked worktrees and checkouts sitting in temporary scratch directories."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/use-local-oauth","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}