Skip to main content

Overview

PicoClaw uses a model-centric configuration approach that allows you to add new providers with zero code changes. Simply specify the vendor/model format (e.g., zhipu/glm-4.7) to configure any OpenAI-compatible provider. This design enables:
  • Multiple model providers in a single config
  • Model fallbacks for resilience
  • Load balancing across multiple endpoints
  • Zero-code provider addition for OpenAI-compatible APIs

Configuration Format

Basic Structure

Field Definitions

model_name (required)

Type: string User-facing alias for the model. This is what you reference in agents.defaults.model_name.

model (required)

Type: string
Format: protocol/model-identifier
The protocol prefix and model identifier:
Supported protocols:
  • openai/ - OpenAI API
  • anthropic/ - Anthropic Claude API
  • zhipu/ - Zhipu GLM
  • deepseek/ - DeepSeek
  • gemini/ - Google Gemini
  • groq/ - Groq
  • qwen/ - Alibaba Qwen
  • moonshot/ - Moonshot AI
  • nvidia/ - NVIDIA
  • cerebras/ - Cerebras
  • ollama/ - Ollama (local)
  • openrouter/ - OpenRouter
  • litellm/ - LiteLLM Proxy
  • vllm/ - vLLM
  • volcengine/ - Volcengine (Doubao)
  • shengsuanyun/ - ShengsuanYun
  • mistral/ - Mistral AI
  • github-copilot/ - GitHub Copilot
  • antigravity/ - Google Cloud Code Assist

api_key

Type: string API authentication key for the provider.
For local models (Ollama, vLLM) or OAuth-based providers (GitHub Copilot, Antigravity), api_key may not be required.

api_base

Type: string Base URL for the API endpoint. If omitted, uses the provider’s default endpoint.

request_timeout

Type: integer (seconds)
Default: 120
Timeout for API requests in seconds.

proxy

Type: string HTTP proxy URL for the provider.

auth_method

Type: string
Values: oauth, token
Authentication method for special providers (GitHub Copilot, Antigravity).

connect_mode

Type: string
Values: stdio, grpc
Connection mode for GitHub Copilot.

Provider Examples

OpenAI

Anthropic Claude

Zhipu AI (智谱)

Get API Key

DeepSeek

Get API Key

Google Gemini

Get API Key

Qwen (通义千问)

Get API Key

Groq

Get API Key

Ollama (Local)

No API key needed for local Ollama.

OpenRouter

Get API Key

LiteLLM Proxy

PicoClaw strips only the outer litellm/ prefix. So litellm/lite-gpt4 sends lite-gpt4, while litellm/openai/gpt-5.2 sends openai/gpt-5.2 to your proxy.

Custom OpenAI-Compatible API

Load Balancing

Configure multiple endpoints with the same model_name for automatic round-robin load balancing:
PicoClaw automatically distributes requests across both endpoints.

Multiple Models

Configure multiple models and select between them:

All Supported Providers

Migration from Legacy Config

If you’re using the old providers config format, see Legacy Providers Configuration for migration instructions.

Next Steps