Claude Desktop Setup
Configure the Claude Desktop application to use TopRouter as the API provider.
Configuration File
Claude Desktop uses a JSON configuration file. Edit it to point to TopRouter:
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
json
{
"apiBaseUrl": "https://toprouter.cc",
"apiKey": "sk-your-toprouter-key"
}Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
json
{
"apiBaseUrl": "https://toprouter.cc",
"apiKey": "sk-your-toprouter-key"
}Steps
- Close Claude Desktop completely
- Open the config file at the path above (create it if it doesn't exist)
- Add the configuration with your TopRouter API key
- Save and restart Claude Desktop
WARNING
Make sure to use https://toprouter.cc without /v1 — Claude Desktop handles the path routing automatically.
Verify
After restarting, open Claude Desktop and send a test message. You should see responses from the TopRouter-routed model.
Troubleshooting
- No response: Check that the config file is valid JSON and the API key is correct
- Config file not found: Create the file at the path specified above
- Still using default provider: Make sure Claude Desktop was fully restarted (quit from system tray/dock)
TIP
Check your usage in the TopRouter Console to confirm requests are being routed through TopRouter.
