Clients/Claude Desktop

Use the Wokey API with Claude Desktop

Get a Wokey API key, point Claude Desktop at the Wokey base URL, then confirm the connection with one curl request.

Updated

On this pageexpand_more

Get an API key and the base URLlink

Every client uses the same Wokey API key and the same base URL.

Create an API key

Sign in and create a platform key on the API page. Keys in one account share its balance.

Create an API keykey

Use the Wokey base URL

Set the client base URL to the gateway domain; the configuration below shows whether to append /v1.

Configure the clientlink

Claude Desktop requires the latest app and uses developer mode to configure third-party inference. Follow the steps on the left.

  1. 1

    Install the latest Claude Desktop

    Update to the latest version first. Older versions may not include Developer mode or third-party inference settings.

  2. 2

    Open the app without signing in

    Launch Claude Desktop and stay signed out for the initial setup.

  3. 3

    Enable Developer mode

    Open the top-right menu and choose Help → Troubleshooting → Enable developer mode.

  4. 4

    Open third-party inference settings

    After Developer mode is enabled, open the Claude menu and choose Developer → Configure third-party inference.

  5. 5

    Enter the Wokey connection

    Set Connection to Gateway and Credential kind to Static API key. Enter the Wokey Base URL and your Wokey API key.

  6. 6

    Apply and restart

    Click Apply Changes, then Save & Restart. After the restart, start using Claude Desktop without signing in to an Anthropic account; signing in sends requests to Anthropic instead.

Claude Desktop
Connection: Gateway
Credential kind: Static API key
URL: https://api.wokey.ai
API key: YOUR_API_KEY

Apply: Apply Changes → Save & Restart

API formats and base URLslink

When one client switches API format, whether the base URL ends in /v1 can change.

FormatBase URLUse it for
Anthropic Messageshttps://api.wokey.aiClaude models

Where it is configured: Menu Developer → Configure third-party inference

Verify with curllink

If the client reports an error, rule out the key and base URL with curl first.

Claude Desktop uses the Anthropic Messages format by default. A 200 from this request means the key and base URL are right. Replace YOUR_API_KEY with your key before sending it.

cURL
curl https://api.wokey.ai/v1/messages \
  -H "x-api-key: YOUR_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Hello" }
    ]
  }'

Errors & Troubleshootinglink

Separate auth, balance, rate limit, model availability, and upstream timeout cases first.

401

invalid api key

The key is missing, mistyped, deleted, or Authorization / x-api-key headers conflict.

402

insufficient balance

The account balance is too low. Top up before sending more requests.

403

model_denylisted / account_restricted

Calls to the model, or to every model on the account, are paused after repeated violations. See Violation Handling Fees & Restrictions.

403

request_blocked

This request was blocked before reaching the upstream and is not charged, for example an unchanged resend of a request the model just refused, or a paused end user (X-End-User-Id). The error message says what is blocked; change the request as it says or retry later. Other requests are not affected.

429

rate limited

Traffic is too frequent. Retry later or reduce concurrency. If only one model, or one end user (X-End-User-Id), keeps returning 429, it may be a temporary limit after violations.

499

client disconnected

The client closed the connection before the response finished (code downstream_aborted). This is free by default. Once an account has at least 50 client disconnects in the past 24 hours and they make up 10% or more of its requests, later disconnected requests are billed for the usage the upstream reported: the processed input, including cache reads and writes, and output only when the upstream counted it. A disconnect before the upstream reported any usage stays free. The account is notified when billing starts, and billing stops automatically within an hour once the disconnect rate is back to normal. The usual cause is a client or proxy timeout that is too short, or a program that cancels requests before they finish.

502

upstream unavailable

The upstream model service is temporarily unavailable. Switch models or retry later.

504

upstream timeout

The upstream response timed out. Shorten context, reduce max_tokens, or retry.

529

upstream overloaded

The upstream model is temporarily overloaded and Wokey already retried on other routes (code upstream_overloaded). It is unrelated to your balance. Retry shortly or switch models.

Frequently asked questionslink

Should the URL in Claude Desktop end in /v1?
No. Choose Gateway as the connection, set the URL to https://api.wokey.ai, choose Static API key as the credential kind, and enter your Wokey API key.
What if Configure third-party inference is missing?
Update Claude Desktop to the latest version, then open Help → Troubleshooting → Enable developer mode. Configure third-party inference appears in the Developer menu only after developer mode is on.
Do I still sign in to an Anthropic account afterwards?
No. After Apply Changes and Save & Restart, start using the app without signing in. Signing in to an Anthropic account sends requests to Anthropic instead of Wokey.

Setup and error guideslink