Claude Code base_url

Claude Code base_url Configuration Guide

gw-link lets Claude Code use a single base_url, so you stop switching between providers, keys and models.

Simple config

It comes down to three things: base_url, API key and model name.

Lower switching cost

Every model is reached through the gw-link gateway, so the tool-side config stays stable.

Easier debugging

Watch requests, errors and usage in one place to locate issues faster.

Recommended setup

  1. Copy the OpenAI-compatible endpoint from gw-link.
  2. Point Claude Code's base_url at gw-link.
  3. Save the API key and run one test request.

常见问题

What should the base_url be?

Use the value shown in your console after deployment — typically gw-link's OpenAI-compatible /v1 endpoint.