Tool guides / Claude Code

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

On this page
  1. Connection details
  2. Set it up
  3. Optional: map the /model menu
  4. Check it works
  5. Common problems

Before you start

  • An ACCTOKEN API key. Create one on API Keys in the console.
  • Claude Code installed. Run claude --version to check.

01Connection details

CONNECTION RECORDCLAUDE CODE
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
LIVE CHECKCommands run on the live APIEvery command on this page is run against intl.acctoken.com before it is published.ACCTOKEN DOCS DESK

02Set it up

Pick your shell and replace YOUR_API_KEY with your key.

export ANTHROPIC_BASE_URL="https://intl.acctoken.com"export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"export ANTHROPIC_MODEL="claude-sonnet-5"claude
These last for this terminal window. To keep them, add the export lines to ~/.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:

{ "env": { "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5", "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-5" }}
There is no Haiku model on ACCTOKEN right now, so the Haiku slot points to 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:

claude -p "Reply with exactly: OK"
Expected outputOK

Inside a session, /status shows the base URL Claude Code is using.

Common problems

404

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.

401

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.