AI Model Integrations

Overview of all AI model providers supported by OpenClaw, including OpenAI, Claude, Ollama, Gemini, and Kimi.

Supported Providers

OpenClaw supports multiple AI model providers. You can configure one or more providers and switch between them per agent.

ProviderModelsTypeAPI Key Required
OpenAIGPT-4o, o1, o3, GPT-4.1Cloud
ClaudeClaude Sonnet 4, Claude HaikuCloud
OllamaLlama, Mistral, Qwen, etc.Local
GeminiGemini 2.5 Pro, FlashCloud
KimiMoonshot v1Cloud

Configuration

Each provider is configured in the agents section of ~/.openclaw/openclaw.json:

{
  "agents": {
    "default": {
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "sk-..."
    }
  }
}

You can also use environment variables for API keys:

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."

Multi-Provider Setup

Use different providers for different agents:

{
  "agents": {
    "coder": {
      "provider": "anthropic",
      "model": "claude-sonnet-4-20250514"
    },
    "chat": {
      "provider": "openai",
      "model": "gpt-4o"
    },
    "local": {
      "provider": "ollama",
      "model": "llama3.1"
    }
  }
}

Next Steps

Choose a provider to get started: