Skip to main content
This setup uses your NexusAPI key. You do not need to sign in to an official Claude account for these requests.

1. Prepare and install

Create an API key. In Model Square, select its group and copy a Claude Code / Messages-compatible model name. On Windows, search Start for PowerShell. On Mac, use Command + Space to open Terminal. Run only the installer for your system. Skip installation if Claude Code is already installed.
Reopen the terminal after installation and run this. Continue when you see a version number. If the command is not found, reopen the terminal; send the installation error to support if it still fails.

2. Open the configuration file

Use your system’s command to open the user configuration:
On macOS / Linux, nano saves with Ctrl + O, Enter, then exits with Ctrl + X. In Windows Notepad, use Ctrl + S. Keep the name settings.json, not .json.txt.

3. Enter your key and model

For an empty file, paste the following. Replace YOUR_API_KEY with your complete key and YOUR_MODEL_ID with the copied model name. Keep the quotes and commas.
Back up an existing file and merge only model and env; do not erase other settings. You can use CC Switch instead. Keep keys out of project settings and screenshots.

4. Start and verify

Save, reopen the terminal in your own project folder, and run:
Enter /status. Check Anthropic base URL is https://nexusapi.link, the credential source is ANTHROPIC_AUTH_TOKEN, and the model matches your setting. Send “Reply only: connection successful. Do not modify files.” A complete reply and a matching Usage Logs record confirm setup. The test uses a little credit. For /login or key errors, check the user-level file and replaced values, then restart. See troubleshooting for other errors. Do not delete the entire .claude folder. Official project: Claude Code. Need a different model or group/key? If settings do not apply, use the symptom checklist.