Providers & API Keys
Configure LLM and optional web-search providers in ~/.picoclaw/config.json under providers and tools.web.
LLM providers
| Provider | Purpose | Get API Key |
|---|---|---|
| openrouter | LLM (many models) | openrouter.ai |
| zhipu | LLM (Zhipu direct) | bigmodel.cn |
| anthropic | LLM (Claude) | console.anthropic.com |
| openai | LLM (GPT) | platform.openai.com |
| gemini | LLM (Gemini) | aistudio.google.com |
| deepseek | LLM (DeepSeek) | platform.deepseek.com |
| groq | LLM + voice (Whisper) | console.groq.com |
Groq provides free voice transcription via Whisper; when configured, Telegram voice messages can be transcribed automatically.
Web search
- Brave Search: brave.com/search/api — 2000 free queries/month.
- DuckDuckGo: No API key; enable in
tools.web.duckduckgofor fallback.
API key comparison (free tiers)
| Service | Free Tier | Use Case |
|---|---|---|
| OpenRouter | 200K tokens/month | Multiple models (Claude, GPT-4, etc.) |
| Zhipu | 200K tokens/month | Best for Chinese users |
| Brave Search | 2000 queries/month | Web search |
| Groq | Free tier | Fast inference (Llama, Mixtral), Whisper |
Zhipu example
"agents": {
"defaults": { "model": "glm-4.7", "max_tokens": 8192, "temperature": 0.7 }
},
"providers": {
"zhipu": {
"api_key": "YOUR_KEY",
"api_base": "https://open.bigmodel.cn/api/paas/v4"
}
}