/v1/messages to ANTHROPIC_BASE_URL, so configure the root URL: https://api.nusabasedigital.com.
When To Use This
- You primarily use Claude Code from the terminal.
- You want to keep the Anthropic Messages request format.
- You want API keys, quota, and usage to go through Nusabase.
Prerequisites
- Claude Code is installed.
- You have a Nusabase API key:
sk-.... - Your machine can reach
https://api.nusabasedigital.com. - The example model
qwen3.5-flashappears in the current pricing docs. Use/v1/modelsas the source of truth.
Configure Environment Variables
Linux / macOS / WSL:Persistent Configuration
Write user-level config to~/.claude/settings.json:
Verify Nusabase
Start Claude Code
Model Selection Notes
Claude Code gateway model discovery only adds some Anthropic-style model IDs to the model picker. For non-Claude names such asqwen3.5-flash, set ANTHROPIC_MODEL explicitly.
To try gateway model discovery:
Troubleshooting
Next, see First Request Example.