Models & Providers
Testy Claw supports any model that can call tools via a function-calling API. Configure the provider and model in your config file.
Supported providers
| Provider | Key | Env var | Notes |
|---|---|---|---|
| OpenAI | "openai" | OPENAI_API_KEY | Default provider |
| Anthropic | "anthropic" | ANTHROPIC_API_KEY | Claude 3+ required |
| Mistral | "mistral" | MISTRAL_API_KEY | mistral-large recommended |
| Groq | "groq" | GROQ_API_KEY | Fast inference |
| Custom | "custom" | — | Any OpenAI-compatible API |
Recommended models
| Model | Provider | Best for |
|---|---|---|
| gpt-4o | openai | Best overall quality and speed |
| gpt-4o-mini | openai | Fast, cheap, good for simple tasks |
| claude-3-5-sonnet | anthropic | Excellent at code and long context |
| mistral-large-latest | mistral | Strong European data residency option |
| llama-3.1-70b | groq | Fast open-source option |
Custom / self-hosted provider
Any OpenAI-compatible API (Ollama, LM Studio, vLLM, etc.) works by setting provider: "custom" and baseUrl.
claw.config.ts
export default defineConfig({
provider: "custom",
baseUrl: "http://localhost:11434/v1", // Ollama
model: "llama3.1",
apiKey: "ollama", // Ollama ignores this but the field is required
});NoteSelf-hosted models must support OpenAI-compatible tool/function calling. Not all local models do — check your model's documentation.