DocsTool guidesClaude Code
Claude Code
Anthropic’s coding agent for the terminal. It uses the Anthropic Messages API, so set the root URL without /v1 and choose a Claude model.
Root URLhttps://intl.acctoken.com+ /v1https://intl.acctoken.com/v1Full paththe whole endpoint, e.g. https://intl.acctoken.com/v1/chat/completions
Before you start
- An ACCTOKEN API key. Create one on API Keys in the console.
- Claude Code installed. Run
claude --versionto check.
01Connection details
- Format
- Anthropic Messages
- Base URL
https://intl.acctoken.comno /v1- API key
YOUR_API_KEYfrom API Keys- Model
claude-sonnet-5Claude models only- Set as
ANTHROPIC_BASE_URLANTHROPIC_AUTH_TOKENANTHROPIC_MODEL
02Set it up
Pick your shell and replace YOUR_API_KEY with your key.
~/.zshrc or ~/.bashrc, or use settings.json.Optional: map the /model menu
The /model menu offers Opus, Sonnet and Haiku, which point at Anthropic’s own model IDs. Map them to Claude models listed on the Models page, in the same settings.json:
claude-sonnet-5. Claude Code also uses the Haiku setting for some background work.03Check it works
Run a one-off prompt outside the interactive view:
OKInside a session, /status shows the base URL Claude Code is using.
Common problems
There's an issue with the selected model
Check ANTHROPIC_BASE_URL first. With /v1 at the end, requests go to /v1/v1/messages and come back 404. If the URL is right, the model ID is not on the Models page.
Invalid token
Often an old ANTHROPIC_API_KEY is still set. When both are set, the gateway reads it before ANTHROPIC_AUTH_TOKEN, so the old key wins. Remove it with unset ANTHROPIC_API_KEY or, in PowerShell, Remove-Item Env:ANTHROPIC_API_KEY.
Your shell variables seem to be ignored
Values in ~/.claude/settings.json override the shell. Change them there, or delete them.
export : The term 'export' is not recognized
That is Windows PowerShell. Use the Windows PowerShell tab above.
You want GPT, Gemini or another model
Claude Code is built for Claude models, and Anthropic does not support using it with others. For GPT models, use Codex; for Gemini, Gemini CLI; for the rest, an OpenAI-format tool such as Cline.
Something else? Look up the exact message in Errors.