OpenClaw
Set up OpenClaw with the llmbox API as a custom OpenAI-compatible provider — the openclaw onboard wizard and openclaw.json.
OpenClaw is a personal AI assistant that runs on your own computer. Connect it
to the llmbox API as a custom provider with the openai-completions API —
requests go to /v1/chat/completions, and models are picked by their IDs from
the catalog.
For an overview and model pricing, see OpenClaw on llmbox.
Quick start
Install OpenClaw — the installer launches the openclaw onboard wizard right
away:
curl -fsSL https://openclaw.ai/install.sh | bash
- In the wizard, choose your own OpenAI-compatible endpoint.
- Base URL:
https://llmbox.cc/v1 - API key — your key from the cabinet.
- Model ID — an ID from the model catalog, e.g.
openai/gpt-6.1-sol.
For scripts, the wizard runs without prompts via the --custom-base-url and
--custom-model-id flags of openclaw onboard.
Configure with a file
The provider lives in ~/.openclaw/openclaw.json (JSON5 format — comments and
unquoted keys are allowed). Save your key from the cabinet in the
LLMBOX_API_KEY environment variable — the config reads it from there:
export LLMBOX_API_KEY="your-key"
{
"agents": {
"defaults": { "model": { "primary": "llmbox/openai/gpt-6.1-sol" } }
},
"models": {
"mode": "merge",
"providers": {
"llmbox": {
"baseUrl": "https://llmbox.cc/v1",
"apiKey": "${LLMBOX_API_KEY}",
"api": "openai-completions",
"models": [
{ "id": "openai/gpt-6.1-sol", "name": "GPT-6.1 Sol" },
{ "id": "deepseek/deepseek-v4-pro", "name": "DeepSeek V4 Pro", "reasoning": true }
]
}
}
}
}
"mode": "merge"addsllmboxto the providers you already have instead of replacing them.- A model is referenced as
llmbox/<catalog ID>; the default one is set byagents.defaults.model.primary. - OpenClaw does not fetch the model list from the provider — only the models
listed under
modelsare available. To use another model from the catalog, add a line with its ID there.
Model options
Each entry under models accepts optional fields:
| Field | What it sets |
|---|---|
contextWindow | Context window in tokens. |
maxTokens | Response cap in tokens. |
input | Input types: ["text", "image"] if the model accepts images (check the catalog). |
reasoning | true for reasoning models — OpenClaw then sends them reasoning_effort. |
How it works
- OpenClaw sends requests to
/v1/chat/completionswith your key; usage shows up in the cabinet. - The system prompt goes out with the plain
systemrole: for anopenai-completionsprovider with a custom address, OpenClaw turns off thedeveloperrole by itself. - The agent's tools are your functions; the gateway passes them to the model as is.
- Every agent step is a separate request with the full history, so long tasks use noticeably more input tokens than a short question.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
401 invalid_api_key | LLMBOX_API_KEY is not visible to the OpenClaw process, or the key is revoked — check it in the cabinet and restart OpenClaw. |
404 model_not_found | A typo in the model ID — check against GET/v1/models. |
| The model is missing from the picker | It is not listed in models.providers.llmbox.models — add its ID. |
The model returns an error about reasoning_effort | The model does not accept this field — add "compat": { "supportsReasoningEffort": false } to it or remove "reasoning": true. |
| An image never reaches the model | The model has no "input": ["text", "image"]. |