Providers and models
The model plane
Sol resolves a requested model to a provider, applies the provider’s wire format, enforces circuit breakers, and accounts for usage and cost. The catalog and provider map are machine-derived:
contract/modelcatalog.yaml — model metadata and vendor rate metadata.
docs/fixtures/modelprovidermap.json — model → provider mapping.
Providers
14 adapters ship (Anthropic, OpenAI, OpenAI-compatible, Gemini, DeepSeek, z.ai GLM, Alibaba Qwen, AWS Bedrock, Ollama, and others), with 8 circuit-breaker-protected paths. A provider declaration can be:
Declarative: a bundled adapter with an api_key_env name (never a raw key in config).
Custom: a settings-level base_url + wire_format + models entry with api_key_env, or a loopback no_api_key endpoint.
Provider keys added through the operator pool are encrypted at rest (provider_keys.bin, AES-256-GCM, 0600) and are part of the backup scope.
Fallback and circuits
A fallback chain is evaluated at the single admission funnel: bounded, retryable-class only, and never after tokens have been emitted.
A circuit opens on the resolved provider target, not just the provider name, so two models on one provider do not share a failure incorrectly.
Retry-After is honored and jittered; a local circuit recovers without a restart.
Local inference
Local llama.cpp lanes are a first-class provider path. Sol starts, leases, validates, and releases lanes; clients consume a Sol-issued grant. See Local inference.
Cost and usage
Usage is parsed from the wire once; a missing usage block does not become a fabricated zero.
Cost is computed from the catalog’s rate metadata and attributed to the principal and model.
GET /api/v1/usage exposes self/admin usage; the cost ledger and spend guard enforce budgets.
Next
Provider setup Model catalog Local inference Cost and budgets