OpenClaw features JSON configuration files for providers, models, agents, tools, and gateways. You can declare multiple cheapkeyai.com providers to use OpenAI-compatible, Anthropic-native, and Google-compatible models simultaneously.
Primary Endpoint
| Provider | Base URL | API |
|---|---|---|
| cheapkeyai | https://cheapkeyai.com/v1 | openai-completions |
| cheapkeyai-anthropic | https://cheapkeyai.com | anthropic-messages |
| cheapkeyai-gemini | https://cheapkeyai.com | google-generative-ai |
Configure Models
{
"models": {
"mode": "merge",
"providers": {
"cheapkeyai": {
"baseUrl": "https://cheapkeyai.com/v1",
"apiKey": "sk-xxx",
"api": "openai-completions",
"models": [
{
"id": "gpt-5",
"name": "GPT-5 (cheapkeyai.com)",
"api": "openai-completions",
"reasoning": true,
"input": ["text", "image"],
"contextWindow": 400000,
"maxTokens": 16384
}
]
}
}
}
}
Configure Agents
{
"agents": {
"defaults": {
"model": { "primary": "cheapkeyai/claude-sonnet-4-5" },
"models": {
"cheapkeyai/gpt-5": { "alias": "gpt" },
"cheapkeyai/claude-sonnet-4-5": { "alias": "sonnet" },
"cheapkeyai-gemini/gemini-3-pro": { "alias": "gemini" }
}
},
"list": [
{ "id": "main", "model": "cheapkeyai/claude-sonnet-4-5" },
{ "id": "fast", "model": "cheapkeyai/gpt-5-mini" }
]
}
}
Gateway & Security
- Only bind loopback if remote access is not needed.
- Use strong tokens/passwords for the gateway.
- Do not share configuration files containing API keys.
- Separate dev and production config if using multiple workspaces.