https://nexusapi.link — do not append /v1.
1. Install Claude Code
Use an official installer. A native installation does not require Node.js.macOS, Linux, or WSL
Windows PowerShell
2. Create a NexusAPI key
In the NexusAPI console, open Token Management → Add token. Give the key a recognizable name, choose a Claude-compatible group that contains the model you need, and set an appropriate limit. Do not assume every Claude-branded model is available to every group; verify it in the Model Marketplace or with/v1/models.
3. Set user-level configuration
Claude Code reads user settings from:
Create it on macOS, Linux, WSL, or Git Bash:
env values into an existing file; do not overwrite your MCP, permissions, or other settings.
4. Start and verify
Open a new terminal, enter a project directory, and run:/status inside Claude Code. Confirm that Anthropic base URL is https://nexusapi.link and authentication comes from ANTHROPIC_AUTH_TOKEN, then send a short text message.
Troubleshooting
Invalid API Key · Please run /login
Confirm that both environment values are saved, the key itself is enabled, and the terminal was restarted. Do not solve this by editing Claude’s internal login state files.
Unable to connect to Anthropic services
Run claude doctor, check the JSON syntax in settings.json, then reopen the terminal. If it persists, save the original error, claude --version, and claude doctor output.
fetch failed
First distinguish a model call from Claude Code’s WebFetch feature.
- Send a one-line normal prompt. If it succeeds, NexusAPI model calls are working; troubleshoot WebFetch under its own network and safety rules.
- If all model calls fail, run
claude doctorand use/statusto confirm the Base URL is stillhttps://nexusapi.link. - Check local DNS, firewall, corporate network, or an existing trusted proxy for access to
nexusapi.link. - Open a fresh terminal and test once. For persistent failures, retain the version, doctor output, full error, and Request ID, then use the self-check guide.
The status says offline
Some auxiliary features check official or third-party services separately. Verify the actual gateway URL with /status and send a small text request before treating offline as an API outage.
