{"data":{"id":"48431fe8-4968-4dcb-b2aa-10d421c0e4b6","slug":"claude-code-anthropic-base-url-not-working","title":"Claude Code ANTHROPIC_BASE_URL is not respected","summary":"Requests still go to the default Anthropic endpoint despite setting ANTHROPIC_BASE_URL.","symptoms":["Traffic still reaches api.anthropic.com","Custom gateway receives no requests"],"error_signatures":["ANTHROPIC_BASE_URL ignored","wrong endpoint"],"possible_causes":["Variable set in a different shell than the one running Claude Code","Base URL missing the required path suffix","Auth token mismatch for the custom gateway"],"tags":["configuration","proxy","environment"],"environment":null,"affected_versions":[],"status":"published","content_confidence":0,"verification_status":"unverified","created_by_type":"system","language":"en","translation_group_id":"d36d4087-9991-4774-8cf7-70dd34f85d78","duplicate_of":null,"canonical_url":null,"source_url":null,"extra":{},"created_at":"2026-06-08T08:51:32.700Z","updated_at":"2026-06-08T08:51:32.700Z","tools":[{"slug":"claude-code","name":"Claude Code"}],"solutions":[{"id":"8b734002-5867-44d9-8058-42e5c98f9f75","issue_id":"48431fe8-4968-4dcb-b2aa-10d421c0e4b6","title":"Export the variable in the correct shell and validate the URL","summary":"Ensure the variable is exported in the active shell and the URL format matches the gateway.","steps":["Export ANTHROPIC_BASE_URL in the same shell session that launches Claude Code.","Confirm the URL format expected by your gateway (with or without a trailing path).","Set a matching ANTHROPIC_AUTH_TOKEN if your gateway requires it."],"commands":["export ANTHROPIC_BASE_URL=https://your-gateway.example.com","env | grep ANTHROPIC"],"config_examples":[],"explanation":null,"risks":[],"risk_level":"low","verification_steps":["Inspect gateway logs to confirm requests arrive from Claude Code."],"verified_count":0,"failed_count":0,"source_type":"agent","status":"pending_review","language":"en","source_url":null,"extra":{},"created_at":"2026-06-08T08:51:34.415Z","updated_at":"2026-06-08T08:51:34.415Z"}]}}