N·02Integration guides
Claude Code
Anthropic's coding assistant, used from the command line, the VS Code extension or the Claude desktop app, speaking the native Anthropic protocol; point it at XylemNode and it calls Claude models with your XylemNode key.
If you'd rather not use a command line, use the Claude Code extension in VS Code, or Claude Code in the Claude desktop app; both can connect to XylemNode. Each reads its own settings: before it starts, the extension only checks for credentials in VS Code's own settings (values in the CLI's settings.json don't pass that check), and the desktop app only takes its third-party inference setup, so set them up separately as below.
Download the Claude desktop app ↗
- 01
Install the extension or the desktop app
Pick one. Editor extension: in the Extensions panel of VS Code or Cursor, search for Claude Code and install the one published by Anthropic; it brings everything it needs to run, so there's no separate CLI to install. Desktop app: download the Claude desktop app with the button above (macOS and Windows); Claude Code is in its Code tab.
- 02
Extension: fill in the VS Code settings
Press Ctrl + Shift + P (Cmd + Shift + P on a Mac), run Preferences: Open User Settings (JSON), and merge the entries below into the file's outermost braces (separated from existing settings by a comma). Save, then run Developer: Reload Window. environmentVariables holds the address, the token and the default model; disableLoginPrompt turns off the Anthropic sign-in prompt.
json { "claudeCode.environmentVariables": [ { "name": "ANTHROPIC_BASE_URL", "value": "https://api.xylemnode.com" }, { "name": "ANTHROPIC_AUTH_TOKEN", "value": "sk-your-key" }, { "name": "ANTHROPIC_MODEL", "value": "claude-opus-5-5" } ], "claudeCode.disableLoginPrompt": true } - 03
Desktop app: set up third-party inference
From the menu bar on a Mac, or the ☰ application menu at the top left of the sign-in screen on Windows, choose Help → Troubleshooting → Enable Developer Mode; a Developer menu appears. Choose Developer → Configure Third-Party Inference, fill in Connection as below, and click Apply Changes; the app relaunches. The sign-in screen then offers to skip signing in to Anthropic, so choose that, and both chat and the Code tab go through XylemNode.
- Inference provider
Gateway- Gateway base URL
https://api.xylemnode.com- Gateway API key
sk-your-key- Credential kind
Static API key- Gateway auth scheme
Bearer
- 04
Test
Extension: open the Claude Code panel and send a message. Desktop app: start a session in the Code tab and send a message; its model list only discovers Claude models on its own, so pick one of those.
- 01
Install and verify
The official recommendation is the native install script, no Node required; the npm route still works but is no longer recommended. After installing, open a new terminal window and print the version to confirm.
terminal # macOS / Linux / WSL (recommended)
curl -fsSL https://claude.ai/install.sh | bash# Windows PowerShell (recommended)
irm https://claude.ai/install.ps1 | iex# npm route (still works, no longer recommended)
npm install -g @anthropic-ai/claude-code# Verify
claude --version - 02
Find the config file
Claude Code reads its config from settings.json. Put it in the user-level file to reuse across all projects; to apply it to one project only, use .claude/settings.local.json in that project (project-level takes precedence over user-level). Don't put the key in a project's .claude/settings.json: that file is committed to the repository along with the code.
- Windows
%USERPROFILE%\.claude\settings.json- macOS
~/.claude/settings.json- Linux
~/.claude/settings.json- Project-level (just you)
<project-root>/.claude/settings.local.json
- 03
Write the config
In the env block of settings.json, set three fields: endpoint, auth token and default model. The address uses the native protocol — no /v1 needed; Claude Code adds the request path itself.
json { "env": { "ANTHROPIC_BASE_URL": "https://api.xylemnode.com", "ANTHROPIC_AUTH_TOKEN": "sk-your-key", "ANTHROPIC_MODEL": "claude-opus-5-5" } } - 04
Or use system env vars
If you'd rather not edit a file, set the same three as system environment variables. On Windows, run setx and reopen the terminal; on macOS / Linux, export only lasts for the current terminal, so add the three lines to the end of ~/.zshrc (or ~/.bashrc) to keep them. Editors launched from the desktop and background sessions may not see environment variables, so the settings.json in the previous step is the more reliable choice.
terminal # Windows (PowerShell / CMD)
setx ANTHROPIC_BASE_URL "https://api.xylemnode.com" setx ANTHROPIC_AUTH_TOKEN "sk-your-key" setx ANTHROPIC_MODEL "claude-opus-5-5"# macOS / Linux
export ANTHROPIC_BASE_URL="https://api.xylemnode.com" export ANTHROPIC_AUTH_TOKEN="sk-your-key" export ANTHROPIC_MODEL="claude-opus-5-5" - 05
Clear the onboarding gate before the first run
A fresh Claude Code install reads .claude.json in your user directory and checks its onboarding flag before anything else. With that flag missing it ignores the custom endpoint you just configured and dials api.anthropic.com directly. On a network that can't reach it (for example a region Anthropic doesn't serve, where it answers 403), the very first run fails with Unable to connect to Anthropic services and Failed to connect to api.anthropic.com (403 or ERR_BAD_REQUEST) even though the address and the key are both correct. Adding the flag by hand clears the gate: create the file as shown if it doesn't exist, or merge that one line into the top-level object and leave the rest untouched, then run claude again. Note that .claude.json is not the settings.json from the earlier step — it sits alongside the .claude directory, and global state like this is silently ignored when written into settings.json.
- Windows
%USERPROFILE%\.claude.json- macOS / Linux
~/.claude.json
json { "hasCompletedOnboarding": true } - 06
Launch and test
From your project directory run claude and send a simple message to confirm; use /status to see the current endpoint and model.
terminal claude# Non-interactive quick check
claude -p "Reply with OK only"
Common questions
Claude Code fails on the first run with Unable to connect to Anthropic services
You didn't misconfigure anything. On startup a fresh Claude Code install checks the onboarding flag in .claude.json in your user directory; with the flag missing it skips your custom endpoint and goes straight to api.anthropic.com, which fails to connect (commonly 403 or ERR_BAD_REQUEST). Add "hasCompletedOnboarding": true at the top level of .claude.json, save, and start it again — see "Clear the onboarding gate before the first run" on the Command line tab above.