Connect Claude Code
Select Anthropic Messages in the dashboard and copy the site root address. Claude Code appends the Messages endpoint path, so use the root as the base URL.
| Environment variable | Value |
|---|---|
ANTHROPIC_BASE_URL | The Messages root address copied from the dashboard |
ANTHROPIC_API_KEY | Your API key issued by this site |
ANTHROPIC_MODEL | The exact ID of a Messages-compatible model available to your account |
Run claude in the terminal with these variables set and send a message. To switch models, enter /model MODEL_ID in the session. If the model is unavailable, check the model protocol and your account's access. For a 404 response, check that the base URL ends at the site root.
See Claude Code settings for client options.