Using OpenClaw with NanoGPT
Learn how to configure OpenClaw (Clawdbot) to use NanoGPT's API for pay-per-use access to hundreds of AI models.
What is OpenClaw?
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.
Step by Step Configuration
- Download OpenClaw
Download and install OpenClaw from the official GitHub repository.
- Get Your NanoGPT API Key
Go to https://nano-gpt.com/api and copy your API key.
- Update Your OpenClaw Config File
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
Restart the gateway to apply your configuration changes:
openclaw gateway restart
Some Good Models to Try
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.7
Get the Most Recent Models
Fetch the up-to-date list of available models:
curl -H "Authorization: Bearer $NANOGPT_API_KEY" \
https://nano-gpt.com/api/v1/models
Verify Your Setup
Once OpenClaw is running with your NanoGPT configuration, you can verify usage in your account usage page:
https://nano-gpt.com/usage
Problems?
Contact us through the customer communication chatbot in the bottom right of the site or in our Telegram channel.