Claude Desktop
The Claude desktop app (macOS / Windows / Linux) supports a Third-Party Inference gateway mode, so you can connect it to this service through the Anthropic Messages–compatible protocol. Once connected, the Chat, Cowork, and Code tabs all use this service.
- Protocol: Anthropic Messages (
POST /v1/messages) - Base URL:
https://newapi.aisonnet.org(service root, without/v1)
WARNING
The desktop app does not read the ANTHROPIC_BASE_URL or ANTHROPIC_API_KEY environment variables, or ~/.claude/settings.json. Even if you've already set up the CLI following Claude Code, configure the desktop app separately as described here.
Install
Download the desktop app from Claude's official page: https://claude.com/download
Open the configuration form
Turn on Developer Mode:
- macOS: in the menu bar, choose Help → Troubleshooting → Enable Developer Mode
- Windows / Linux: open the ☰ menu at the top left of the sign-in screen and choose Help → Troubleshooting → Enable Developer Mode
The app restarts and a Developer menu appears.
Choose Developer → Configure Third-Party Inference… to open the form.
Fill in the gateway settings
In the Connection section on the left:
- Set Inference provider to Gateway.
- Fill in the Gateway credentials card:
| Field | Value |
|---|---|
| Credential kind | Static API key |
| Gateway base URL | https://newapi.aisonnet.org (no /v1; the app appends /v1/messages) |
| Gateway API key | Your API key |
| Gateway auth scheme | Bearer (default) |
- Click Test connection.
- Click Apply Changes. The app relaunches with the new configuration.
The model list is fetched automatically from GET /v1/models and only shows Claude models (for example claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5).
TIP
After the app relaunches into a third-party configuration, the Developer menu may disappear. To edit the settings again, choose Help → Troubleshooting → Enable Developer Mode once more; it stays on after that.
Reuse the configuration on other computers
Use Export → JSON config at the top right of the form, then on the other computer use Import configuration… and click Apply Changes → Relaunch now.
The exported configuration looks roughly like this:
{
"inferenceProvider": "gateway",
"inferenceGatewayBaseUrl": "https://newapi.aisonnet.org",
"inferenceGatewayApiKey": "codex_your_api_key",
"inferenceGatewayAuthScheme": "bearer"
}WARNING
Don't copy the local config folder (for example ~/Library/Application Support/Claude-3p/configLibrary/ on macOS) to another computer: API keys in it are encrypted for the current OS user and won't work elsewhere. Use export / import instead.
Verify
After the relaunch, start a conversation in Chat. If you get a reply, the setup is working. The Cowork and Code tabs use the same configuration.
Troubleshooting
Gateway was unreachableat startup: the base URL can't be reached. Check that it's the service root, that you didn't add/v1, and that the network can reach it.- Empty model picker: check the API key, and that
GET /v1/modelsreturns Claude models. - Read-only form: your administrator has pushed a configuration through MDM / Group Policy, which overrides the local form. Contact your administrator.
- Gateway-mode limits: the environment selector no longer offers Anthropic-hosted cloud environments, and Remote Control is unavailable. This is an official limitation of the desktop gateway mode.
