API Docs
Client Setup

Claude App Setup

Connect the Claude desktop app to UnioAPI through Configure Third-Party Inference and call Claude models over the official Anthropic protocol — or switch with CC Switch.

The Claude desktop app (macOS / Windows) can send inference requests to a custom gateway. Once connected, chats and the built-in Code feature call Claude models on UnioAPI over the Anthropic protocol (POST /v1/messages).

Menus depend on your app version

Menu names below reflect the app version at the time of writing. If Anthropic moves an entry, search the settings for "Developer" or "Inference".

Prerequisites

  • The Claude desktop app, downloaded from Anthropic's website.
  • A topped-up UnioAPI account and an API key; see Console & top-up.

Option 1: configure it in the app

Enable Developer Mode

From the menu bar choose Help → Troubleshooting → Enable Developer Mode. A Developer menu appears.

Enable Developer Mode in the Help menu
public/docs/screenshots/claude-desktop-developer-mode.png · 1600×1000

Configure third-party inference

Open Developer → Configure Third-Party Inference, choose the Gateway connection type and fill in:

FieldValue
Gateway base URLhttps://api.unioapi.com (no /v1)
Gateway API keyYour UnioAPI key
Auth method (if shown)Bearer
Custom inference headersLeave empty
ModelsIf the list is empty, add them manually, e.g. claude-sonnet-5, claude-opus-5-5
Gateway form in Configure Third-Party Inference
public/docs/screenshots/claude-desktop-gateway.png · 1600×1000

Save and restart

Save and apply, then fully quit the app (⌘Q on macOS, quit from the tray icon on Windows) and open it again.

Verify

Start a new chat, pick one of the models you added and send a message. If it replies and the call shows up in Request logs in the UnioAPI console, you are connected.

Option 2: switch with CC Switch

If you also use Claude Code or Codex, CC Switch manages them in one place: add a UnioAPI configuration on its Claude Desktop page, enable it, and restart the app.

FAQ

SymptomCheck
No Developer menuDeveloper Mode is off; enable it as in step 1 and restart
404 or connection failureThe gateway base URL has an extra /v1, or is missing https://
401The key is incomplete or revoked; check it in the console
402The balance is too low; redeem a CDKEY under Wallet first
Empty model listAdd model IDs manually; see GET /v1/models for the list
Some features won't start on WindowsSome features rely on system virtualization components; turn them on under "Turn Windows features on or off" as the app suggests and restart

To go back to the official subscription, turn off third-party inference on the same screen.

Next steps