llmboxDocumentationSign in
Integrations · OpenClaw

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:

bash
curl -fsSL https://openclaw.ai/install.sh | bash
  1. In the wizard, choose your own OpenAI-compatible endpoint.
  2. Base URL: https://llmbox.cc/v1
  3. API key — your key from the cabinet.
  4. 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:

bash
export LLMBOX_API_KEY="your-key"
json
{
  "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" adds llmbox to the providers you already have instead of replacing them.
  • A model is referenced as llmbox/<catalog ID>; the default one is set by agents.defaults.model.primary.
  • OpenClaw does not fetch the model list from the provider — only the models listed under models are available. To use another model from the catalog, add a line with its ID there.

Model options

Each entry under models accepts optional fields:

FieldWhat it sets
contextWindowContext window in tokens.
maxTokensResponse cap in tokens.
inputInput types: ["text", "image"] if the model accepts images (check the catalog).
reasoningtrue for reasoning models — OpenClaw then sends them reasoning_effort.

How it works

  • OpenClaw sends requests to /v1/chat/completions with your key; usage shows up in the cabinet.
  • The system prompt goes out with the plain system role: for an openai-completions provider with a custom address, OpenClaw turns off the developer role 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

SymptomCause and fix
401 invalid_api_keyLLMBOX_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_foundA typo in the model ID — check against GET/v1/models.
The model is missing from the pickerIt is not listed in models.providers.llmbox.models — add its ID.
The model returns an error about reasoning_effortThe model does not accept this field — add "compat": { "supportsReasoningEffort": false } to it or remove "reasoning": true.
An image never reaches the modelThe model has no "input": ["text", "image"].