Skip to main content
OpenClaw manages models through providers. When you connect it to the powertokens platform, choose the protocol path first:
  • OpenAI-compatible path: use openai-completions with https://baze-api.powerbuyin.top/v1.
  • Anthropic path: use anthropic-messages with https://baze-api.powerbuyin.top.
Do not conflate OpenClaw’s official OpenAI/Codex runtime, Claude CLI reuse, and a regular OpenAI-compatible proxy. This guide covers the powertokens platform as a custom provider. If you need to choose the endpoint first, see Text model protocols and endpoints.

Choose a path

OpenAI-compatible provider example

Add a provider like this to OpenClaw models.providers. The actual location can be global config or the target agent’s models.json.
Do not commit a real API key. Use OpenClaw-supported environment, SecretRef, or local secret configuration for production.

Anthropic provider example

For the Claude/Anthropic path, set api to anthropic-messages and use the base URL without /v1/messages.
Recommended Anthropic tool-workflow models: Use these with openai-completions, not anthropic-messages, even if model discovery declares anthropic:

Apply and verify

After applying config for your OpenClaw installation, run:
Then select the new model in TUI or a connected channel and send:
If the model is unavailable, check:
  • The model reference uses provider/model.
  • models.providers.*.api matches the platform path.
  • baseUrl has the correct /v1 shape 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-completions covers Chat Completions semantics. It is not the same as OpenClaw’s official OpenAI/Codex runtime.
  • anthropic-messages only 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-messages path is unstable in real tasks, switch to openai-completions and 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.