Skip to main content
NullClaw supports 22+ AI providers through a unified vtable interface. Configure providers in ~/.nullclaw/config.json under models.providers.

Quick Setup

Use the onboarding wizard for fastest setup:

Supported Providers

OpenRouter

Access to 200+ models via single API

Anthropic

Claude models (Opus, Sonnet, Haiku)

OpenAI

GPT-4, GPT-3.5, and embeddings

Groq

Fast inference for Llama, Mixtral

Ollama

Local models (no API key needed)

Google Gemini

Gemini Pro and Flash models

Configuration

Access 200+ models through a single API:
config.json
1

Get API Key

Sign up at openrouter.ai and create an API key
2

Add to Config

Place your key in ~/.nullclaw/config.json under models.providers.openrouter.api_key
3

Select Model

Use format openrouter/<provider>/<model> (e.g., openrouter/anthropic/claude-sonnet-4)

Anthropic Claude

Direct access to Claude models:
config.json
Features:
  • Supports both standard API keys (sk-ant-...) and OAuth tokens (sk-ant-oat01-...)
  • Custom base_url for proxies or self-hosted endpoints
  • Default max tokens: 4096 (configurable)

OpenAI

GPT models and embeddings:
config.json

Groq

Fast inference for open models:
config.json

Ollama (Local)

Run models locally without API keys:
config.json
Ollama doesn’t require an API key. Install models with ollama pull llama3.1:8b

Model Selection

Primary Model

Set your default model in agents.defaults.model.primary:

Per-Agent Models

Different agents can use different models:
config.json

Custom Providers

Any OpenAI-compatible API can be used:
config.json

Temperature Control

Control response randomness globally or per-model:
config.json
  • 0.0: Deterministic, focused responses
  • 0.7: Balanced (default)
  • 1.0+: Creative, varied responses

Reliability & Fallbacks

Configure retries and fallback providers:
config.json

Troubleshooting

Missing API Key

Provider Not Working

Custom Base URL

Ensure your custom URL:
  • Uses HTTPS (HTTP rejected for security)
  • Ends without trailing slash
  • Implements OpenAI-compatible /v1/chat/completions endpoint
API keys are stored in plaintext by default. Enable encryption in production:

Next Steps

Configure Channels

Connect Telegram, Discord, or other channels

Memory Setup

Configure vector search and embeddings