Feb 3, 2026
Learn how to configure OpenClaw (Clawdbot) to use NanoGPT's API for pay-per-use access to hundreds of AI models.
OpenClaw is an app that can connect to many of your personal apps (WhatsApp, Telegram, email, Slack, and more) and serve as an assistant or agent for automated tasks.
Download and install OpenClaw from the official GitHub repository.
Go to https://nano-gpt.com/api and copy your API key.
Add the models attribute to your ~/.clawdbot/clawdbot.json file:
"models": {
"mode": "merge",
"providers": {
"nano-gpt.com": {
"baseUrl": "https://nano-gpt.com/api",
"apiKey": "YOUR_NANOGPT_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "claude-opus-4-5-20251101",
"name": "Claude 4.5 Opus",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 32000
}
]
}
}
}
Important: Replace YOUR_NANOGPT_API_KEY with your actual API key from https://nano-gpt.com/api.
Restart the gateway to apply your configuration changes:
openclaw gateway restart
Examples you can use as id values (confirm availability via /api/v1/models):
openai/gpt-5.2claude-opus-4-5-20251101gemini-3-pro-previewzai-org/glm-4.7Fetch the up-to-date list of available models:
curl -H "Authorization: Bearer $NANOGPT_API_KEY" \
https://nano-gpt.com/api/v1/models
Once OpenClaw is running with your NanoGPT configuration, you can verify usage in your account usage page:
https://nano-gpt.com/usage
Contact us through the customer communication chatbot in the bottom right of the site or in our Telegram channel.