providers in config.json. Each provider entry contains a keys array where every key has a name, value, models, and weight, plus optional provider-specific config objects.
Supplying credentials:
Use the env. prefix to reference environment variables — never put API keys directly in config.json:
Common Provider Fields
Every key object supports these fields:| Field | Type | Description |
|---|---|---|
name | string | Unique name for this key (used in logs and virtual key pin) |
value | string | API key value or env.VAR_NAME reference |
models | array | Models this key serves. ["*"] = all models |
weight | float | Load balancing weight. Higher = more traffic |
aliases | object | Map logical name → actual model name for this key |
use_for_batch_api | boolean | Mark key as eligible for batch API calls |
network_config options (applies to all standard providers):
| Field | Type | Description |
|---|---|---|
default_request_timeout_in_seconds | integer | Per-request timeout |
max_retries | integer | Retry attempts on transient errors |
retry_backoff_initial | integer | Initial backoff in milliseconds |
retry_backoff_max | integer | Maximum backoff in milliseconds |
max_conns_per_host | integer | Max TCP connections to the provider endpoint (default: 5000) |
extra_headers | object | Static headers added to every provider request |
stream_idle_timeout_in_seconds | integer | Idle timeout per stream chunk (default: 60) |
insecure_skip_verify | boolean | Disable TLS verification (last resort only) |
ca_cert_pem | string | PEM-encoded CA for self-signed or private CA endpoints |
| Field | Type | Description |
|---|---|---|
concurrency_and_buffer_size.concurrency | integer | Max concurrent requests to this provider |
concurrency_and_buffer_size.buffer_size | integer | Request queue depth |
- OpenAI
- Anthropic
- Azure OpenAI
- AWS Bedrock
- Google Vertex AI
- Groq / Gemini / Mistral / Others
- Self-Hosted
OpenAI
Supports multiple keys with weighted load balancing. Mark one key withuse_for_batch_api: true to designate it for the Batch API.Proxy Configuration
Route provider traffic through an HTTP or SOCKS5 proxy:| Field | Type | Options |
|---|---|---|
proxy_config.type | string | "none", "http", "socks5", "environment" |
proxy_config.url | string | Proxy server URL |
proxy_config.username | string | Proxy auth username |
proxy_config.password | string | Proxy auth password (env. supported) |
proxy_config.ca_cert_pem | string | PEM CA for TLS-intercepting proxies |
"type": "environment" to pick up HTTP_PROXY / HTTPS_PROXY env vars automatically.

