📖 查看中文版 →
Prerequisites #
- OpenClaw installed and running
- A WoAiToken account with credits — to.woaitoken.com
- Your sub2api API key (get it in Step 1)
Step 1 — Get Your API Key #
1. Open the console
Visit to.woaitoken.com/console and sign in.
2. Create a token
Go to 令牌 (Tokens) → Add Token. Give it a name (e.g. "OpenClaw"), set no expiration, then click Submit.
3. Copy the key
Copy the generated key — it starts with sk-. Save it immediately; it is only shown once.
Step 2 — Configure OpenClaw #
sub2api provides an OpenAI-compatible endpoint. Configure OpenClaw to use it:
| Field | Value | |——-|——-| | API Base URL | https://to.woaitoken.com/v1 | | API Key | sk-your-key-here | | Model | (select from available models) |
Configuration path in OpenClaw:
1. Open OpenClaw → Settings (or Preferences) 2. Go to AI Provider or API Settings 3. Set Provider to Custom or OpenAI Compatible 4. Enter the Base URL and API Key from the table above 5. Save and restart if prompted
> 📸 Add screenshot of OpenClaw settings panel here.
Step 3 — Verify #
Open a new chat in OpenClaw and send a test message (e.g. "Hello"). A response confirms the connection is working.
Troubleshooting #
No response / connection error Confirm the Base URL is https://to.woaitoken.com/v1 (with /v1).
Authentication failed Check your API key is pasted correctly with no leading or trailing spaces.
429 Too Many Requests Your account credits are used up. Top up at woaitoken.com.