Claude Code
Writes the env block of ~/.claude/settings.json and speaks the Anthropic Messages protocol.
Where it goes: ~/.claude/settings.json
Config snippet
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.codegateway.dev",
"ANTHROPIC_AUTH_TOKEN": "sk-cg-YOUR_KEY"
}
}Verify command (free)
curl -sS "https://api.codegateway.dev/v1/models" -H "Authorization: Bearer sk-cg-YOUR_KEY" | headClient self-check
claude --version # confirms the CLI is installed
claude # start the REPL in any project directory