Answer: To verify the connection, send a one-token request to the gateway directly using the shell variables, then start `claude` from the same shell, send a message, and run `/status`. On the Status tab, the `Anthropic base URL` line should show your gateway address, and an `Auth token` or `API key` line naming the variable you set confirms the gateway credential is active. Status: Confirmed Entry: tool/claude-code/troubleshooting/verify-gateway-connection Revision: 1 Digest: sha256:c10b1934e7593c86 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:31Z Last changed: 2026-11-13T03:04:31Z Last verified: 2026-11-20T12:21:43Z Next check: 2026-11-21T12:21:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Verification command | curl -sS -w '\n%{http_code}\n' -X POST "$ANTHROPIC_BASE_URL/v1/messages" | [1] | 2026-11-20 Success response indicator | {"id":"msg_ | [1] | 2026-11-20 Status check command | /status | [1] | 2026-11-20 Status tab URL line | Anthropic base URL | [1] | 2026-11-20 Credential line | Auth token | [1] | 2026-11-20 Rejected credential status | 401 | [1] | 2026-11-20 Sources: [1] Anthropic. "Connect Claude Code to an LLM gateway". https://code.claude.com/docs/en/llm-gateway-connect.md Role: primary. Accessed: 2026-11-20T12:21:43Z Quote: "curl -sS -w '\n%{http_code}\n' -X POST "$ANTHROPIC_BASE_URL/v1/messages"" (Supports: Verification command) Quote: "A JSON response that starts with `{"id":"msg_` and includes a `"content":[...]` field means the gateway is reachable and the credential works." (Supports: Success response indicator) Quote: "Start `claude` from the same shell so it inherits the exports, send a message, and run `/status`." (Supports: Status check command) Quote: "On the **Status** tab, the `Anthropic base URL` line should show your gateway address, which confirms requests are routing there" (Supports: Status tab URL line) Quote: "An `Auth token` or `API key` line naming the variable you set confirms the gateway credential is active rather than a saved claude.ai login." (Supports: Credential line) Quote: "A `401` means the credential was rejected: if you guessed the variable, switch to the other one and re-export." (Supports: Rejected credential status) Published: 2026-11-20T02:55:07Z Snapshot SHA-256: 66a220c65179fe2601bf9e9fe4f1516d2a7f63ad4a0b22ff0c45b602f572ac30 (captured 2026-11-13T03:04:31Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:04:31Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:21:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:43Z Last attempt: 2026-11-20T12:21:43Z Notes and limitations: Extracted automatically from a single official source (section "Verify the connection"). Related: https://latestn.com/tool/claude-code/troubleshooting/verify-plugin-installation How do I verify that a plugin is installed and its skills appear in Claude Code? https://latestn.com/tool/claude-code/troubleshooting/wsl-configuration How do I configure Claude Code to work with WSL in a JetBrains IDE? https://latestn.com/tool/cline/account-and-plans/aws-marketplace-subscription-bedrock Do I need an AWS Marketplace subscription to use Bedrock models with Cline? https://latestn.com/tool/claude-code/troubleshooting/troubleshoot-claude-not-responding How do I troubleshoot Claude Code GitHub Actions when Claude is not responding to @claude commands? https://latestn.com/tool/claude-code/troubleshooting/troubleshoot-gateway-errors How do I troubleshoot LLM gateway errors in Claude Code? https://latestn.com/tool/claude-code/troubleshooting/validate-test-marketplace How do I validate and test a Claude Code plugin marketplace locally before hosting it? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:04:31Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/troubleshooting/verify-gateway-connection/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/troubleshooting/verify-gateway-connection POST: https://latestn.com/dispute/tool/claude-code/troubleshooting/verify-gateway-connection with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/troubleshooting/verify-gateway-connection?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I verify that Claude Code is connected to the LLM gateway? Revision 1, last verified 2026-11-20T12:21:43Z. https://latestn.com/tool/claude-code/troubleshooting/verify-gateway-connection (accessed 2026-11-21T09:56:53Z). @misc{LatestN_tool_claude_code_troubleshooting_verify_gateway_connection_r1, title = {How do I verify that Claude Code is connected to the LLM gateway?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/troubleshooting/verify-gateway-connection}}, note = {Revision 1; digest sha256:c10b1934e7593c86; last verified 2026-11-20T12:21:43Z; accessed 2026-11-21T09:56:53Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/troubleshooting/verify-gateway-connection