Claude Code
Use Claude Code in the terminal through Anthropic-compatible configuration.
Prepare a key
YOUR_API_KEY is a placeholder in public documentation. Sign in to generate a configuration using one of your API keys.
Generate configuration with my API keyConfigure the endpoint
This tool uses the Anthropic-compatible protocol. Enter the URL below as the client's Base URL.
https://your-domain.example
One-click CLI setup (recommended)
Install the CodeNodex CLI to sign in, validate your API key, and prepare the matching local configuration.
Install CodeNodex CLI
curl -fsSL https://token.codenodex.com/cli/install.sh | bashiex "& { $(irm https://token.codenodex.com/cli/install.ps1) }"Sign in and configure Claude Code
Select an API key after signing in. The CLI verifies it and safely merges the Claude Code configuration into your local files.
codenodex login -o "https://token.codenodex.com"
codenodex setup --client claudeCopy configuration manually
If you do not use the CLI, replace YOUR_API_KEY with your API key. For real use, prefer the personalized configuration generator after signing in.
Manual configuration examples
export ANTHROPIC_BASE_URL="https://your-domain.example"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1{
"env": {
"ANTHROPIC_BASE_URL": "https://your-domain.example",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
}
}Verify connectivity
Run this command. A successful model list means the endpoint and API key are working.
curl "https://your-domain.example/v1/models" -H "Authorization: Bearer YOUR_API_KEY"