Skip to main content
Claude Code can route Anthropic-format requests through a custom base URL.

Configure

Set your LinkModel key and Claude Code endpoint variables before launching claude:
Use a model available on the Messages endpoint. Anthropic-family models are the safest first choice for Claude Code because the request format is Anthropic-native.

Custom Model Picker

If your Claude Code version supports custom model picker entries, expose a LinkModel model with:
Then open Claude Code and choose the custom model entry.

Notes

  • ANTHROPIC_AUTH_TOKEN is sent as the bearer token value.
  • ANTHROPIC_BASE_URL changes where Claude Code sends Anthropic API requests.
  • If a selected model fails on tool-use fields, switch models or remove the custom endpoint.

Official Reference