Clients/OpenClaw
Use the Wokey API with OpenClaw
Get a Wokey API key, point OpenClaw 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 keykeyUse the Wokey base URL
Set the client base URL to the gateway domain; the configuration below shows whether to append /v1.
Configure the clientlink
Write a custom OpenAI-compatible provider with one command.
openclaw onboard --non-interactive --accept-risk \
--auth-choice custom-api-key \
--custom-base-url "https://api.wokey.ai" \
--custom-model-id "gpt-6-sol" \
--custom-api-key "YOUR_API_KEY" \
--custom-provider-id "wokey" \
--custom-compatibility openai \
--gateway-port 18789 \
--skip-healthAPI formats and base URLslink
When one client switches API format, whether the base URL ends in /v1 can change.
| Format | Base URL | Use it for |
|---|---|---|
| OpenAI Chat Completions | https://api.wokey.ai | DeepSeek, GLM, Kimi, and other models |
Where it is configured: openclaw onboard command flags
Run OpenClaw as an always-on agent with Opus 5.5: how it compares with Claude Duetlink
On 2026-10-21 Anthropic opened a research preview of Claude Duet, a proactive agent built on Claude Opus 5.5 that sends a morning brief, watches your connected apps in the background and checks with you before it acts. Duet only works with a Claude account sign-in; there is no API key or custom base URL, so it cannot run through Wokey. OpenClaw is an open-source, self-hosted always-on agent: connected to Wokey it uses the same Opus 5.5 model, with no waitlist and no region limit.
| Claude Duet | OpenClaw + Wokey | |
|---|---|---|
| Model | Claude Opus 5.5, not switchable | claude-opus-5-5, or any other model on Wokey |
| Who can use it | Claude Pro and Max subscribers in the US, by waitlist; not Team or Enterprise yet | Install it yourself; a Wokey API key is all you need, in any region |
| Cost | No extra charge during the preview, but it shares your plan’s usage limits with chat and Claude Code, background checks included | Pay per token from your Wokey balance; you choose how often it checks |
| Where it runs | A virtual machine with its own browser in Anthropic’s cloud; keeps working with your phone and laptop off | Your own computer or server; host it on an always-on machine for round-the-clock work |
| How you talk to it | The Duet app (iOS and Android) and claude.ai | Chat apps such as Telegram and Slack |
| Memory and tools | Carries over your Claude account’s memory, skills and connectors | Memory, skills and tools live locally; you install and manage them |
| Approval before acting | Asks before sending messages, paying, signing or deleting; securities trading and transfers between accounts are never allowed | You set the permissions and approval rules; grant only the accounts it needs |
- With per-token billing, frequent checks cost more: every check resends the system prompt and memory. Use a cheaper model (such as claude-sonnet-5-5 or deepseek-v4.1-flash) for routine checks and switch to Opus 5.5 for decisions and actions.
- Over Chat Completions, Opus 5.5 thinks before it writes, so the first token is slow; an agent working in the background rarely notices.
openclaw onboard --non-interactive --accept-risk \
--auth-choice custom-api-key \
--custom-base-url "https://api.wokey.ai" \
--custom-model-id "claude-opus-5-5" \
--custom-api-key "YOUR_API_KEY" \
--custom-provider-id "wokey" \
--custom-compatibility openai \
--gateway-port 18789 \
--skip-healthDuet details checked 2026-10-22 · Duet sources: Introducing Claude Duet · Claude Duet FAQ
Verify with curllink
If the client reports an error, rule out the key and base URL with curl first.
OpenClaw uses the OpenAI Chat Completions 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 https://api.wokey.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-sol",
"messages": [
{ "role": "user", "content": "Hello" }
]
}'Errors & Troubleshootinglink
Separate auth, balance, rate limit, model availability, and upstream timeout cases first.
invalid api key
The key is missing, mistyped, deleted, or Authorization / x-api-key headers conflict.
insufficient balance
The account balance is too low. Top up before sending more requests.
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.
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.
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.
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.
upstream unavailable
The upstream model service is temporarily unavailable. Switch models or retry later.
upstream timeout
The upstream response timed out. Shorten context, reduce max_tokens, or retry.
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 --custom-base-url for OpenClaw end in /v1?
- No. Use https://api.wokey.ai.
- What goes in --custom-compatibility?
- openai. OpenClaw then calls Wokey in the OpenAI-compatible format.
- What goes in --custom-model-id?
- A model ID from the Wokey models page, for example gpt-6-sol or claude-opus-5-5.