{"name":"ANTHROPIC_UNIX_SOCKET","slug":"anthropic-unix-socket","family":"env","title":"Environment variables","noun":"environment variable","description":"Environment variables your org policy blocks can no longer sneak through by changing their capitalization.","description_source":"entry","described_by":{"version":"2.1.223","anchor":"policy-settings-environment-stripping-is-case-insensitive"},"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":{"version":"2.1.223","released_at":"2026-08-05 22:51:13","spans":4}},"aliases":[],"entries":[{"version":"2.1.306","anchor":"helper-jmn-first-party-no-anthropic-unix-socket-plus-two","heading":"A check that stays false when ANTHROPIC_UNIX_SOCKET is set","line":"Claude Code has a check that is true only for direct Anthropic API access with ANTHROPIC_UNIX_SOCKET unset, plus two further internal conditions","released_at":"2026-10-21 02:28:47","reason":"found in this entry's text"},{"version":"2.1.295","anchor":"user-email-fallback-from-claude-code-user-email","heading":"CLAUDE_CODE_USER_EMAIL can supply your email when you are not logged in","line":"If there is no logged-in email, Claude Code can now use the CLAUDE_CODE_USER_EMAIL environment variable as the email it gives the model","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text"},{"version":"2.1.286","anchor":"cache-keepalive-sender-for-prompt-cache-tengu-sequential-cl","heading":"Keepalive pings for the one-hour prompt cache, off unless switched on remotely","line":"Claude Code can ping Anthropic's servers to keep a one-hour prompt cache alive during idle pauses, but it is off unless switched on remotely","released_at":"2026-09-30 17:14:38","reason":"found in this entry's text"},{"version":"2.1.286","anchor":"new-hipaa-gated-policy-entry-allow-cache-keepalive","heading":"HIPAA policy can block prompt cache renewal","line":"A new policy entry lets HIPAA compliance switch off renewal of the prompt cache lifetime","released_at":"2026-09-30 17:14:38","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"env-bearer-fallback-for-policy-limits-and-remote-settings-au","heading":"Policy limits and remote settings can use a token from the environment","line":"With no API key, Claude Code can now fall back to a bearer token from the environment when fetching policy limits and remote settings","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"env-var-redaction-filter-anthropic-unix-socket-aws-endpoin","heading":"Some endpoint environment variables are now treated differently by Claude Code","line":"A check on environment variable names now excludes `ANTHROPIC_UNIX_SOCKET` and `AWS_ENDPOINT_URL` names, and includes `CLAUDE_CODE_API_BASE_URL` only for files","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"ssh-placeholder-credential-detection","heading":"Detection of sign-in forwarded over SSH now checks for a placeholder","line":"Claude Code recognises SSH-forwarded sign-in when a socket is set and exactly one credential variable holds the value ssh-placeholder","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.282","anchor":"the-model-catalog-flag-tengu-delegated-quail-now-has-separat","heading":"Model catalog can be served and published separately","line":"The remote switch for the model catalog now has separate settings for serving and publishing it, and still falls back to off","released_at":"2026-09-24 15:56:22","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"policy-limits-signed-cache-shadow-check-skipped-for-socket-t","heading":"Policy-limits signed-cache shadow check skipped for socket-tunnel\/diskless sessions","line":"The one-time policy-limits cache check is now skipped when ANTHROPIC_UNIX_SOCKET or a diskless launch is in use","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.278","anchor":"auto-mode-classifier-now-distrusts-unix-socket-proxies-unles","heading":"Auto-mode classifier now distrusts unix-socket proxies unless SSH remote","line":"Sessions using ANTHROPIC_UNIX_SOCKET now lose server-side auto mode classification unless connecting over SSH remote","released_at":"2026-09-19 01:48:59","reason":"named in this entry, found in this entry's text"}],"entries_total":22,"docs":[{"source":"claude-code","path":"errors","title":"Error reference","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"ANTHROPIC_API_KEY","slug":"anthropic-api-key","description":"API key sent as `X-Api-Key` header. When set, this key is used instead of your Claude Pro, Max, Team, or Enterprise subscription even if you are logged in. In non-interactive mode (`-p`), the key is always used when present. In interactive mode, you are prompted to approve the key once before it overrides your subscription. To use your subscription instead, run `unset ANTHROPIC_API_KEY`"},{"name":"ANTHROPIC_AUTH_TOKEN","slug":"anthropic-auth-token","description":"Custom value for the `Authorization` header (the value you set here will be prefixed with `Bearer `)"},{"name":"ANTHROPIC_AWS_API_KEY","slug":"anthropic-aws-api-key","description":"Workspace API key for [Claude Platform on AWS](\/docs\/en\/claude-platform-on-aws), generated in the AWS Console. Sent as `x-api-key` and takes precedence over AWS SigV4"},{"name":"ANTHROPIC_AWS_BASE_URL","slug":"anthropic-aws-base-url","description":"Override the [Claude Platform on AWS](\/docs\/en\/claude-platform-on-aws) endpoint URL. Use for custom regions or when routing through an [LLM gateway](\/docs\/en\/llm-gateway). Defaults to `https:\/\/aws-external-anthropic.{region}.api.aws`. Claude Code resolves the region with the [same precedence as on Amazon Bedrock](\/docs\/en\/amazon-bedrock#3-configure-claude-code)"},{"name":"ANTHROPIC_AWS_WORKSPACE_ID","slug":"anthropic-aws-workspace-id","description":"Required for [Claude Platform on AWS](\/docs\/en\/claude-platform-on-aws). Sent on every request as the `anthropic-workspace-id` header"},{"name":"ANTHROPIC_BASE_URL","slug":"anthropic-base-url","description":"Override the API endpoint to route requests through a proxy or gateway. When set to a non-first-party host, [MCP tool search](\/docs\/en\/mcp#scale-with-mcp-tool-search) is disabled by default. Set `ENABLE_TOOL_SEARCH=true` if your proxy forwards `tool_reference` blocks. As of v2.1.196, [Remote Control](\/docs\/en\/remote-control#requirements) is disabled when this points at a host other than `api.anthropic.com`, matching its behavior on Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry"},{"name":"ANTHROPIC_BEDROCK_BASE_URL","slug":"anthropic-bedrock-base-url","description":"Override the Amazon Bedrock endpoint URL. Use for custom Amazon Bedrock endpoints or when routing through an [LLM gateway](\/docs\/en\/llm-gateway). See [Amazon Bedrock](\/docs\/en\/amazon-bedrock)"},{"name":"ANTHROPIC_BEDROCK_MANTLE_BASE_URL","slug":"anthropic-bedrock-mantle-base-url","description":"Override the Amazon Bedrock Mantle endpoint URL. See [Mantle endpoint](\/docs\/en\/amazon-bedrock#use-the-mantle-endpoint)"},{"name":"ANTHROPIC_BEDROCK_REGION_PREFIX","slug":"anthropic-bedrock-region-prefix","description":"Cross-region inference profile prefix (`us`, `eu`, `apac`, `jp`, `au`, or `global`) Claude Code tries first instead of the one derived from the AWS region. Ignored in AWS GovCloud regions. Requires Claude Code v2.1.224 or later. See [Amazon Bedrock](\/docs\/en\/amazon-bedrock#cross-region-inference-profile-prefixes)"},{"name":"ANTHROPIC_BEDROCK_SERVICE_TIER","slug":"anthropic-bedrock-service-tier","description":"Amazon Bedrock [service tier](https:\/\/docs.aws.amazon.com\/bedrock\/latest\/userguide\/service-tiers-inference.html) (`default`, `flex`, or `priority`). Sent as the `X-Amzn-Bedrock-Service-Tier` header. See [Amazon Bedrock](\/docs\/en\/amazon-bedrock#service-tiers)"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/anthropic-unix-socket","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}