Skip to main content
openai-responses: /v1/responses; openai-completions: /v1/chat/completions. Base URL: https://bettertoken.ai/v1.

Key settings

Prerequisites

Install

Command-line setup

The BetterToken Automatic setup script writes the OpenClaw configuration. It requires Node.js. If you do not pass an API Key or Model ID as an argument, the script prompts you for them.
Confirm that agents.defaults.model.primary uses the YOUR_MODEL_ID shown in Setup, then run the validation and Gateway restart commands below.

Manual setup

Configure OpenClaw

Copy the exact Model ID from the model plaza.
openai-responses: /v1/responses; openai-completions: /v1/chat/completions. Base URL: https://bettertoken.ai/v1.

Verify the connection

Run:
The setup is active when validation passes, the Gateway restarts, and bettertoken/YOUR_MODEL_ID appears in the model list and status. If an existing session still uses an old model, start a new session and check again.

Switch models

Add the new model to models.providers.bettertoken.models, then change agents.defaults.model.primary to bettertoken/YOUR_MODEL_ID. Save, validate, and restart the Gateway.

Common errors

Advanced setup

Optional: manage the provider with CC Switch

To manage providers for several tools in one place, see OpenClaw setup in CC Switch.

Technical details

openai-responses: /v1/responses; openai-completions: /v1/chat/completions. Base URL: https://bettertoken.ai/v1.