Claude Code
Anthropic’s terminal agent. Needs Node.js 18 or newer.
- 1Install it:
npm install -g @anthropic-ai/claude-code - 2Set the base URL and your key, in the environment (below) or in
settings.json. - 3Open your project folder and run
claude.
export ANTHROPIC_BASE_URL="https://api.tkbk.online"
export ANTHROPIC_AUTH_TOKEN="cr_YOUR_KEY"
# optional: keeps the /effort slider, which Claude Code hides behind a custom base URL
export CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1
claude[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://api.tkbk.online", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "cr_YOUR_KEY", "User")
[Environment]::SetEnvironmentVariable("CLAUDE_CODE_ALWAYS_ENABLE_EFFORT", "1", "User")
# open a new terminal window, then:
claudePrefer a file? Put the same values in ~/.claude/settings.json (on Windows: %USERPROFILE%\.claude\settings.json). Claude Code reads its env block on every start.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.tkbk.online",
"ANTHROPIC_AUTH_TOKEN": "cr_YOUR_KEY",
"CLAUDE_CODE_ALWAYS_ENABLE_EFFORT": "1"
},
"model": "claude-sonnet-5"
}Set ANTHROPIC_AUTH_TOKEN only, and do not define ANTHROPIC_API_KEY at the same time. No Anthropic account or login is needed: usage is billed per token from your key’s balance.
Start with claude-sonnet-5; switch to claude-opus-5-5 or claude-fable-5-1 with /model for harder problems.
Claude Code starts and answers your first prompt. /model shows the active model.
