powertokens platform, choose the protocol path first:
- OpenAI-compatible path: use
openai-completionswithhttps://api.powertokens.ai/v1. - Anthropic path: use
anthropic-messageswithhttps://api.powertokens.ai.
powertokens platform as a custom provider.
If you need to choose the endpoint first, see Text model protocols and endpoints.
Choose a path
| Goal | OpenClaw provider api | Base URL | Model scope |
|---|---|---|---|
| OpenAI-compatible text models | openai-completions | https://api.powertokens.ai/v1 | Text models that support /v1/chat/completions |
| Anthropic-path models | anthropic-messages | https://api.powertokens.ai | Recommended Zhipu, MiniMax, Qwen, BytePlus DeepSeek, and re-validated Seed models that support Messages |
| OpenAI-compatible preferred models | openai-completions | https://api.powertokens.ai/v1 | Text models whose upstream provider does not support /v1/messages, such as seed-1-6-flash-250715 |
OpenAI-compatible provider example
Add a provider like this to OpenClawmodels.providers. The actual location can be global config or the target agent’s models.json.
Anthropic provider example
For the Claude/Anthropic path, setapi to anthropic-messages and use the base URL without /v1/messages.
| Upstream provider | Models |
|---|---|
| Zhipu | glm-4.5-air, glm-4.7, glm-4.7-flash, glm-5, glm-5-turbo, glm-5.2 |
| MiniMax | MiniMax-M2.5, MiniMax-M2.5-highspeed, MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M3 |
| Alibaba Qwen | qwen3-coder-plus, qwen3-max, qwen3.5-flash, qwen3.6-plus |
| BytePlus DeepSeek | deepseek-v3-2-251201 |
| BytePlus Seed | seed-1-6-250915, seed-1-8-251228, seed-2-0-lite-260228, seed-2-0-mini-260215, seed-2-0-pro-260328 |
Models not recommended for Anthropic provider
Use these withopenai-completions, not anthropic-messages, even if model discovery declares anthropic:
Apply and verify
After applying config for your OpenClaw installation, run:- The model reference uses
provider/model. models.providers.*.apimatches the platform path.baseUrlhas the correct/v1shape for the selected protocol.- The API key is injected through the OpenClaw secret mechanism you use.
- The model is in the correct OpenAI-compatible or Anthropic-path list.
Boundaries
openai-completionscovers Chat Completions semantics. It is not the same as OpenClaw’s official OpenAI/Codex runtime.anthropic-messagesonly applies to models that work through/v1/messages.- OpenClaw tools, media, caching, reasoning, and developer-role compatibility may depend on provider metadata. Validate with real tasks.
- If the
anthropic-messagespath is unstable in real tasks, switch toopenai-completionsand keep the request id for platform debugging. - Keep
input: ["text"]for text-only models. Do not declare image support unless the model and platform API support it.