01 · CLI
Claude Code
Anthropic’s agentic coding tool for the terminal. It reads your repository, edits files and runs commands, and also ships as a VS Code extension.
- Protocol
- Anthropic Messages
- Models
- claude-opus-5-5claude-sonnet-5claude-haiku-4-5claude-sonnet-5-5
- Where it goes
- Two environment variables, or the env block in ~/.claude/settings.json.
# this terminal only
export ANTHROPIC_BASE_URL="https://api.oneaiapikey.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-key-here"
export ANTHROPIC_MODEL="claude-sonnet-5"{
"env": {
"ANTHROPIC_BASE_URL": "https://api.oneaiapikey.com",
"ANTHROPIC_AUTH_TOKEN": "sk-your-key-here",
"ANTHROPIC_MODEL": "claude-sonnet-5",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5"
}
}claude
# then type /status: the base URL line should show https://api.oneaiapikey.com- Try it in this terminal: No /v1 on the base URL: Claude Code appends /v1/messages itself. Then run claude from the same terminal.
- ~/.claude/settings.json: Merge the env keys into an existing file. Use the user-level file, never a project file that is committed to git.