Skip to main content

Model Configuration

PicoClaw uses a model-centric configuration approach. Simply specify vendor/model format to add new providers — zero code changes required!

This enables multi-agent support with flexible provider selection:

  • Different agents, different providers: Each agent can use its own LLM provider
  • Model fallbacks: Configure primary and fallback models for resilience
  • Load balancing: Distribute requests across multiple endpoints
  • Centralized configuration: Manage all providers in one place

Supported Vendors

Vendormodel PrefixDefault API BaseProtocolAPI Key
OpenAIopenai/https://api.openai.com/v1OpenAIGet Key
Anthropicanthropic/https://api.anthropic.com/v1AnthropicGet Key
Zhipu AI (GLM)zhipu/https://open.bigmodel.cn/api/paas/v4OpenAIGet Key
DeepSeekdeepseek/https://api.deepseek.com/v1OpenAIGet Key
Google Geminigemini/https://generativelanguage.googleapis.com/v1betaOpenAIGet Key
Groqgroq/https://api.groq.com/openai/v1OpenAIGet Key
Moonshotmoonshot/https://api.moonshot.cn/v1OpenAIGet Key
Qwenqwen/https://dashscope.aliyuncs.com/compatible-mode/v1OpenAIGet Key
NVIDIAnvidia/https://integrate.api.nvidia.com/v1OpenAIGet Key
Ollamaollama/http://localhost:11434/v1OpenAILocal (no key needed)
OpenRouteropenrouter/https://openrouter.ai/api/v1OpenAIGet Key
VLLMvllm/http://localhost:8000/v1OpenAILocal
Cerebrascerebras/https://api.cerebras.ai/v1OpenAIGet Key
VolcEnginevolcengine/https://ark.cn-beijing.volces.com/api/v3OpenAIGet Key
Antigravityantigravity/Google CloudCustomOAuth only
GitHub Copilotgithub-copilot/localhost:4321gRPC

Basic Configuration

{
"model_list": [
{
"model_name": "gpt-5.2",
"model": "openai/gpt-5.2",
"api_key": "sk-your-openai-key"
},
{
"model_name": "claude",
"model": "anthropic/claude-sonnet-4-6",
"api_key": "sk-ant-your-key"
},
{
"model_name": "glm",
"model": "zhipu/glm-4.7",
"api_key": "your-zhipu-key"
}
],
"agents": {
"defaults": {
"model": "gpt-5.2"
}
}
}

Vendor Examples

OpenAI

{
"model_name": "gpt-5.2",
"model": "openai/gpt-5.2",
"api_key": "sk-..."
}

Anthropic

{
"model_name": "claude",
"model": "anthropic/claude-sonnet-4-6",
"api_key": "sk-ant-your-key"
}

Run picoclaw auth login --provider anthropic to paste your API token.

DeepSeek

{
"model_name": "deepseek-chat",
"model": "deepseek/deepseek-chat",
"api_key": "sk-..."
}

Ollama (Local)

{
"model_name": "llama3",
"model": "ollama/llama3"
}

Custom Proxy/API

{
"model_name": "my-custom-model",
"model": "openai/custom-model",
"api_base": "https://my-proxy.com/v1",
"api_key": "sk-..."
}

Load Balancing

Configure multiple endpoints for the same model name — PicoClaw will automatically round-robin between them:

{
"model_list": [
{
"model_name": "gpt-5.2",
"model": "openai/gpt-5.2",
"api_base": "https://api1.example.com/v1",
"api_key": "sk-key1"
},
{
"model_name": "gpt-5.2",
"model": "openai/gpt-5.2",
"api_base": "https://api2.example.com/v1",
"api_key": "sk-key2"
}
]
}

Migration from Legacy providers

The old providers configuration is deprecated but still supported.

Old Config (deprecated):

{
"providers": {
"zhipu": {
"api_key": "your-key",
"api_base": "https://open.bigmodel.cn/api/paas/v4"
}
},
"agents": {
"defaults": {
"provider": "zhipu",
"model": "glm-4.7"
}
}
}

New Config (recommended):

{
"model_list": [
{
"model_name": "glm-4.7",
"model": "zhipu/glm-4.7",
"api_key": "your-key"
}
],
"agents": {
"defaults": {
"model": "glm-4.7"
}
}
}

See the full Migration Guide for details.

Voice Transcription

note

Groq provides free voice transcription via Whisper. If configured, Telegram voice messages will be automatically transcribed.

{
"model_list": [
{
"model_name": "whisper",
"model": "groq/whisper-large-v3",
"api_key": "gsk_..."
}
]
}