
OpenClaw can work with All in One AI models. You add our API as your own provider, in the OpenAI format (Chat Completions), and you pay with AI credits or with the Coding Plan, using the same MozOut key. If you do not have OpenClaw yet, see how to install it on a VPS first.
Before you start
|
|
|
1. Keep the key in the OpenClaw .env file
The OpenClaw documentation recommends keeping provider keys in ~/.openclaw/.env. When the gateway runs as a service, it does not read your terminal's variables, but it reads this file. Create the folder and open the file (if it already exists, nano opens it):
mkdir -p ~/.openclaw
nano ~/.openclaw/.env
Type this line, with your key, and save with Ctrl+O, Enter and Ctrl+X:
MOZOUT_API_KEY=prod_...
The variable name must be in capitals, as here. To make the file readable only by your user, run chmod 600 ~/.openclaw/.env.
2. Add the provider
The configuration lives in ~/.openclaw/openclaw.json, in JSON5. Instead of editing it by hand, use this command. It adds the api provider and leaves the rest of the configuration as it is. Copy the whole block, from openclaw to --merge:
openclaw config set models.providers.api '{
"baseUrl": "https://api.mozout.com/v1",
"apiKey": "${MOZOUT_API_KEY}",
"api": "openai-completions",
"models": [
{ "id": "anthropic/claude-fable-5", "name": "Claude Fable 5", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-fable-5.1", "name": "Claude Fable 5.1", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "openai/gpt-6-astra-codex", "name": "GPT 6 Astra Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "anthropic/claude-fable-5.2-ccmax", "name": "Claude Fable 5.2", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "openai/gpt-6.2-astra", "name": "GPT 6.2 Astra", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "openai/gpt-6.2-astra-codex", "name": "GPT 6.2 Astra Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "openai/gpt-5.5", "name": "GPT 5.5", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "anthropic/claude-opus-4.5-20251101-coding", "name": "Claude Opus 4.5", "contextWindow": 200000, "maxTokens": 16000 },
{ "id": "anthropic/claude-opus-4.6", "name": "Claude Opus 4.6", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-opus-4.7", "name": "Claude Opus 4.7", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-opus-4.8", "name": "Claude Opus 4.8", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-opus-5", "name": "Claude Opus 5", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-opus-5.5", "name": "Claude Opus 5.5", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "moonshotai/kimi-k3.1-pro-highspeed", "name": "Kimi K3.1 Pro HighSpeed", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "openai/gpt-5.6-sol-codex", "name": "GPT 5.6 Sol Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "anthropic/claude-sonnet-4.6", "name": "Claude Sonnet 4.6", "contextWindow": 200000, "maxTokens": 16000 },
{ "id": "moonshotai/kimi-k3", "name": "Kimi K3", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "google/gemini-3.1-pro-preview", "name": "Gemini 3.1 Pro Preview", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-sonnet-5", "name": "Claude Sonnet 5", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "anthropic/claude-sonnet-5.5-aws", "name": "Claude Sonnet 5.5", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "moonshotai/kimi-k3.1-pro", "name": "Kimi K3.1 Pro", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "openai/gpt-6-sol-codex", "name": "GPT 6 Sol Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "openai/gpt-6.1-sol-codex", "name": "GPT 6.1 Sol Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "openai/gpt-6.2-sol-codex", "name": "GPT 6.2 Sol Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "google/gemini-2.5-pro", "name": "Gemini 2.5 Pro", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "google/gemini-3.5-flash", "name": "Gemini 3.5 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "qwen/qwen3.7-max", "name": "Qwen3.7 Max", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "google/gemini-4-argon", "name": "Gemini 4 Argon", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "google/gemini-3.6-flash", "name": "Gemini 3.6 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "xai/grok-4.5", "name": "Grok 4.5", "contextWindow": 500000, "maxTokens": 16000 },
{ "id": "xai/grok-4.6", "name": "Grok 4.6", "contextWindow": 500000, "maxTokens": 16000 },
{ "id": "xai/grok-4.7", "name": "Grok 4.7", "contextWindow": 500000, "maxTokens": 16000 },
{ "id": "google/gemini-4-carbon-developer", "name": "Gemini 4 Carbon", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "anthropic/claude-haiku-4.5-20251001", "name": "Claude Haiku 4.5", "contextWindow": 200000, "maxTokens": 16000 },
{ "id": "openai/gpt-6.1-terra-codex", "name": "GPT 6.1 Terra Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "zai-org/glm-5.3", "name": "GLM 5.3", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "qwen/qwen3.8-max", "name": "Qwen3.8 Max", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "bytedance/doubao-seed-2.1-pro-260628", "name": "Doubao Seed 2.1 Pro", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "zai-org/glm-5.1", "name": "GLM 5.1", "contextWindow": 202752, "maxTokens": 16000 },
{ "id": "deepseek-ai/deepseek-v4-pro", "name": "DeepSeek V4 Pro", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "moonshotai/kimi-k2.6", "name": "Kimi K2.6", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "moonshotai/kimi-k2.7-code", "name": "Kimi K2.7 Code", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "google/gemini-3.7-flash", "name": "Gemini 3.7 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "google/gemini-3.8-flash", "name": "Gemini 3.8 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "zai-org/glm-5", "name": "GLM 5", "contextWindow": 202752, "maxTokens": 16000 },
{ "id": "qwen/qwen3.5-397b-a17b", "name": "Qwen3.5 397BA17B", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "zai-org/glm-5.2", "name": "GLM 5.2", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "xai/grok-4.3", "name": "Grok 4.3", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "bytedance/doubao-seed-2.0-pro-260215", "name": "Doubao Seed 2.0 Pro", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "google/gemini-3-flash-preview", "name": "Gemini 3 Flash Preview", "contextWindow": 200000, "maxTokens": 16000 },
{ "id": "qwen/qwen3.8-27b", "name": "Qwen3.8 27B", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "tencent/hy4-preview", "name": "Hunyuan 4 Preview", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "moonshotai/kimi-k2.5", "name": "Kimi K2.5", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "google/gemini-2.5-flash", "name": "Gemini 2.5 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "google/gemini-3.5-flash-lite", "name": "Gemini 3.5 Flash Lite", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "qwen/qwen3.5-plus", "name": "Qwen3.5 Plus", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "bytedance/doubao-seed-2.1-turbo-260628", "name": "Doubao Seed 2.1 Turbo", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "qwen/qwen3.5-122b-a10b", "name": "Qwen3.5 122B A10B", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "qwen/qwen3.5-27b", "name": "Qwen3.5 27B", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "qwen/qwen3.6-plus", "name": "Qwen3.6 Plus", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "bytedance/doubao-seed-2.0-lite-260428", "name": "Doubao Seed 2.0 Lite", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "qwen/qwen3.7-plus", "name": "Qwen3.7 Plus", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "google/gemini-3.1-flash-lite", "name": "Gemini 3.1 Flash Lite", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "deepseek-ai/deepseek-v4.1-flash", "name": "DeepSeek V4.1 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "meituan-longcat/longcat-2.0", "name": "LongCat 2.0", "contextWindow": 1048756, "maxTokens": 16000 },
{ "id": "xiaomi/mimo-v2.5-pro", "name": "MiMo V2.5 Pro", "contextWindow": 1024000, "maxTokens": 16000 },
{ "id": "qwen/qwen3.6-35b-a3b", "name": "Qwen3.6 35B A3B", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "bytedance/doubao-seed-character-260628", "name": "Doubao Seed Character", "contextWindow": 131072, "maxTokens": 16000 },
{ "id": "tencent/hy3", "name": "Hunyuan 3", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "zai-org/glm-5.3-flash", "name": "GLM 5.3 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "deepseek-ai/DeepSeek-V3.2-Exp", "name": "DeepSeek V3.2 Exp", "contextWindow": 163840, "maxTokens": 16000 },
{ "id": "deepseek-ai/deepseek-v3.2", "name": "DeepSeek V3.2", "contextWindow": 163840, "maxTokens": 16000 },
{ "id": "anthropic/claude-haiku-5.5-ccmax", "name": "Claude Haiku 5.5", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "openai/gpt-6-luna-codex", "name": "GPT 6 Luna Codex", "contextWindow": 1050000, "maxTokens": 16000 },
{ "id": "bytedance/doubao-seed-2.0-mini-260428", "name": "Doubao Seed 2.0 Mini", "contextWindow": 262144, "maxTokens": 16000 },
{ "id": "google/gemini-2.5-flash-lite", "name": "Gemini 2.5 Flash Lite", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "qwen/qwen3.5-flash", "name": "Qwen3.5 Flash", "contextWindow": 1000000, "maxTokens": 16000 },
{ "id": "deepseek-ai/deepseek-v4-flash", "name": "DeepSeek V4 Flash", "contextWindow": 1048576, "maxTokens": 16000 },
{ "id": "dots-studio/dots-3-note-prev-free", "name": "Dots 3 Note Preview", "contextWindow": 512000, "maxTokens": 16000 }
]
}' --strict-json --merge
| Field | What it is |
| baseUrl | Our address, with /v1. |
| apiKey | The variable from step 1. The single quotes in the command stop the terminal from replacing it: the file keeps the variable name, never the key. |
| api | openai-completions is the Chat Completions format. |
| id | The model id in the catalogue, exactly as it is, with the slash. |
| contextWindow | The model's context, in tokens. |
| maxTokens | The maximum per answer. We reserve credits for the maximum output the tool asks for in each answer. That is why the examples ask for 16,000 tokens: it is enough for coding and needs a smaller balance than a higher value. |
3. Choose the model
openclaw models set api/moonshotai/kimi-k2.7-code
The name starts with the provider (api/) and then the catalogue id. OpenClaw splits the provider off at the first slash, so the id can have another slash.
4. Restart and check
openclaw gateway restart
openclaw models list
The model should show in the list. Then send OpenClaw a message on the channel you already use. With a sandbox_ key, the answer is always "Resposta de teste (sandbox)." If you see it, the address, the key and the model are right. Then switch to the prod_ key in .env and restart again.
The models in the list
The command in step 2 already has the 79 models that support tools (function calling), from the most expensive to the cheapest. The agent needs tools, so the others are left out. OpenClaw only shows the models listed in models. If you want fewer, delete the lines you do not use before you run the command. The last line of the list has no comma at the end.
The ids are in the Models tab of All in One AI or in the API list. On Linux and macOS:
curl "https://api.mozout.com/v1/models?type=text" -H "Authorization: Bearer $MOZOUT_API_KEY"
In Windows PowerShell:
curl.exe "https://api.mozout.com/v1/models?type=text" -H "Authorization: Bearer $env:MOZOUT_API_KEY"
Each model comes with its id (always with the slash), its context_length and its price in pricing. Listing the models spends no credits.
| The key stays in ~/.openclaw/.env only. Do not write it in openclaw.json or send it over the messaging channel. If it leaks, see what to do, in the right order. |
| An agent sends many requests in a row, and each one spends credits or plan points. Check the spending in the History tab of All in One AI. What drives the bill is covered in what OpenClaw costs. |
|
Want your OpenClaw to use our models? See All in One AI. See All in One AI |
RECOMMENDED PRODUCT VPS server with root access Resources of your own, the OS you choose, reinstall whenever you like. from R151.20/mo (3-year plan, with coupon) See plans |











