Connect Claude Code to an LLM gateway changedllm-gateway-connect
Nearest release: v2.1.335, published 5 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Dec 2026 03:26 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 03:37 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
158
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits40to this page, all time
The whole hunk
from line 158, old and new numbered
/
from line 158
158158
159159## Configure each surface
160160
161The CLI reads the environment variables and settings files above. The other surfaces are the VS Code extension, the desktop app, GitHub Actions, the Agent SDK, and the cloud surfaces such as Claude Tag and the web. The sections below cover whether those settings reach each one.
161The CLI reads the variables you set [in your shell](#set-as-shell-environment-variables) or [in a settings file](#set-in-a-settings-file). The other surfaces are the VS Code extension, the desktop app, GitHub Actions, the Agent SDK, and the cloud surfaces such as Claude Tag and the web.
162162
163163### VS Code extension
164164
165Set the gateway variables for the [VS Code extension](https://code.claude.com/docs/en/vs-code.md) in `claudeCode.environmentVariables`, in VS Code's own user settings opened with the **Preferences: Open User Settings (JSON)** command. The extension checks credentials from this setting before launching, so it's the reliable place for the gateway credential; values in `~/.claude/settings.json` reach the spawned process but not the extension's own login check.
165To set the gateway variables for the [VS Code extension](https://code.claude.com/docs/en/vs-code.md), run the **Preferences: Open User Settings (JSON)** command and add them to the `claudeCode.environmentVariables` setting:
166166
167167```json theme={null}
168168{
No line in this hunk matches that.