🦞
AI Model Configuration

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.

🤖 Why Choose OpenAI?
  • 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

Recommended

Latest multimodal model. Fast, smart, and cost-effective.

gpt-4o

Input: $2.50/MTok

Output: $10.00/MTok

GPT-4o Mini

Smaller, faster, cheaper. Great for simple tasks.

gpt-4o-mini

Input: $0.15/MTok

Output: $0.60/MTok

GPT-4 Turbo

Previous flagship. 128K context window.

gpt-4-turbo

Input: $10.00/MTok

Output: $30.00/MTok

o1

Reasoning model for complex problems. Slower but more accurate.

o1

Input: $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

1

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!)
2

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
3

Configure Moltbot

Add OpenAI configuration to your config file:

{
  "agent": {
    "provider": "openai",
    "model": "gpt-4o",
    "apiKey": "sk-proj-..."
  }
}
4

Restart Moltbot

Apply the configuration:

moltbot restart
Advanced Configuration
{
  "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 length
  • temperature — Creativity level 0-2 (default: 0.7)
  • organizationId — For organization accounts
  • baseUrl — Custom endpoint (for Azure OpenAI)
Using 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.