Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sipeed/picoclaw/llms.txt
Use this file to discover all available pages before exploring further.
Overview
PicoClaw has transitioned from the legacyproviders configuration to a new model_list format. The new format is:
- More flexible - Configure multiple models from the same provider
- More powerful - Support for load balancing and custom endpoints
- Vendor-agnostic - Uses
vendor/modelformat instead of separate provider + model - Easier to understand - Model-centric configuration
Migration Overview
The migration process involves:- Moving provider configuration from
providerstomodel_list - Updating
agents.defaults.modelfrom model name tovendor/modelformat - Removing the old
providerfield
PicoClaw automatically migrates legacy configs at runtime, but you should update your config files manually for clarity.
Migration Examples
Example 1: OpenAI
Before (Legacy):Example 2: Anthropic
Before:Example 3: Zhipu
Before:The
api_base for Zhipu is optional in the new format - it’s set automatically to the correct endpoint.Example 4: Multiple Providers
Before:Example 5: Custom Endpoint
Before:Field Mapping
| Legacy Field | New Field | Notes |
|---|---|---|
providers.{vendor}.api_key | model_list[].api_key | Same |
providers.{vendor}.api_base | model_list[].api_base | Optional, auto-detected for known providers |
agents.defaults.provider | (removed) | Now part of model field |
agents.defaults.model | agents.defaults.model | Now references model_name from model_list |
Vendor Name Mapping
When migrating, use these vendor prefixes:| Provider | Vendor Prefix |
|---|---|
| OpenAI | openai/ |
| Anthropic | anthropic/ |
| Zhipu AI (GLM) | zhipu/ |
| DeepSeek | deepseek/ |
| Google Gemini | gemini/ |
| Groq | groq/ |
| Moonshot | moonshot/ |
| Qwen (通义千问) | qwen/ |
| NVIDIA | nvidia/ |
| Ollama | ollama/ |
| OpenRouter | openrouter/ |
| LiteLLM | litellm/ |
| VLLM | vllm/ |
| Cerebras | cerebras/ |
Automatic Migration
PicoClaw automatically migrates legacy configs at runtime:Migration Script
Here’s a Python script to help migrate your config:Testing Your Migration
After migrating, test your config:Breaking Changes
No breaking changes! The legacy format is still supported. However:- New features (load balancing, advanced routing) only work with
model_list - Deprecation warnings may appear in logs
- Future versions may remove legacy support entirely
Benefits of New Format
Load balancing
Configure multiple API keys for the same model
Flexible routing
Mix models from different providers
Clearer config
Model-centric instead of provider-centric
Custom endpoints
Easier to configure custom API bases
Troubleshooting
Agent not using new config
Agent not using new config
- Ensure you deleted the
providerfield fromagents.defaults - Check that
modelinagents.defaultsmatches amodel_nameinmodel_list - Restart PicoClaw after config changes
API calls failing after migration
API calls failing after migration
- Verify
api_keyis correctly copied tomodel_list - Check
api_baseif you had a custom endpoint - Run
picoclaw statusto see provider health
Deprecation warnings
Deprecation warnings
- These are safe to ignore if everything works
- Migrate to
model_listto remove warnings - Legacy support will be removed in a future version
Next Steps
Model Configuration
Complete guide to model_list configuration
Load Balancing
Use multiple endpoints for high availability
Providers
Understand the provider system
Troubleshooting
Common issues and solutions