Configure Moltbot with OpenAI
Use OpenAI's GPT-4 models with Moltbot (formerly Clawdbot). The same AI that powers ChatGPT, now as your personal assistant.
- ✓Industry standard — Most widely used AI models with proven reliability
- ✓GPT-4o multimodal — Understands images, audio, and text natively
- ✓Extensive documentation — Large community and resources
- ✓Function calling — Excellent tool use for automation tasks
Available OpenAI Models
GPT-4o
RecommendedLatest multimodal model. Fast, smart, and cost-effective.
gpt-4oInput: $2.50/MTok
Output: $10.00/MTok
GPT-4o Mini
Smaller, faster, cheaper. Great for simple tasks.
gpt-4o-miniInput: $0.15/MTok
Output: $0.60/MTok
GPT-4 Turbo
Previous flagship. 128K context window.
gpt-4-turboInput: $10.00/MTok
Output: $30.00/MTok
o1
Reasoning model for complex problems. Slower but more accurate.
o1Input: $15.00/MTok
Output: $60.00/MTok
* Prices per million tokens as of January 2026. Check OpenAI's pricing page for current rates.
Setup Instructions
Get Your API Key
Create an OpenAI account and generate an API key:
- • Go to platform.openai.com/api-keys
- • Sign in or create an account
- • Click "Create new secret key"
- • Copy the key (you won't see it again!)
Add Credits
OpenAI requires prepaid credits:
- • Go to Billing → Add payment method
- • Add at least $5 in credits to start
- • Set up usage limits to avoid surprises
Configure Moltbot
Add OpenAI configuration to your config file:
{
"agent": {
"provider": "openai",
"model": "gpt-4o",
"apiKey": "sk-proj-..."
}
}Restart Moltbot
Apply the configuration:
moltbot restart{
"agent": {
"provider": "openai",
"model": "gpt-4o",
"apiKey": "sk-proj-...",
"maxTokens": 4096,
"temperature": 0.7,
"organizationId": "org-...",
"baseUrl": "https://api.openai.com/v1"
}
}maxTokens— Maximum response lengthtemperature— Creativity level 0-2 (default: 0.7)organizationId— For organization accountsbaseUrl— Custom endpoint (for Azure OpenAI)
For enterprise users, Moltbot also supports Azure OpenAI Service:
{
"agent": {
"provider": "azure-openai",
"model": "gpt-4o",
"apiKey": "your-azure-key",
"baseUrl": "https://your-resource.openai.azure.com",
"apiVersion": "2024-02-15-preview",
"deploymentName": "your-deployment"
}
}OpenAI Configured!
Now connect your messaging channels and start chatting with GPT-4.