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 forPowerShell. On Mac, use Command + Space to open Terminal.
Run only the installer for your system. Skip installation if Claude Code is already installed.
- Windows PowerShell
- macOS / Linux / WSL
2. Open the configuration file
Use your system’s command to open the user configuration:- Windows PowerShell
- macOS / Linux / WSL
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. ReplaceYOUR_API_KEY with your complete key and YOUR_MODEL_ID with the copied model name. Keep the quotes and commas.
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:/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.