OpenProgram Docs

Providers

AspectCurrent design
VendorsOne adapter directory per vendor under openprogram/models/providers/adapters/, with a provider.json declaring models, wire API and login methods. Anthropic, OpenAI, Google Gemini, Amazon Bedrock, Azure OpenAI, xAI, DeepSeek, Mistral, Groq, OpenRouter, GitHub Copilot and others, plus local Ollama, LM Studio, vLLM and llama.cpp.
RequestThe runtime hands over a ready Context (system, messages, tools). The adapter translates it to the wire request and applies that vendor's prompt caching. Nothing above knows vendor formats.
KeysOne ordered list of keys and sign-ins per provider. A conversation keeps one; a limited or refused one gives way to the next.
FailuresEvery error maps to one taxonomy, is retried or failed over by class, bounded by timeouts, and reaches the UI as a structured error.
CatalogFrom provider.json, subscription catalogs and models.dev. Thinking effort and the Fast tier are declared per provider.
Manageopenprogram providers (login, list, use, status, doctor, accounts), or Settings → Model services

Translation and caching

RecordCovers
Request buildUnified Context, per-provider translation, caching modes
Cache control passthroughPer-block Anthropic cache_control
Routing overviewWhich session and branch uses which model; failover switches
Request redactionPlaceholders for secrets and email before sending, restored in the reply
Web searchProvider search or local web_search; citations in the transcript
Record and replayRedacted JSONL recordings replayed offline for deterministic tests
Codex transportKept WebSocket sending only new input; zstd-compressed HTTP otherwise
Provider quotaPlan windows, balances and rate limits per provider; 30-day spend; failure causes
Context compositionUpstream: how content is layered and assembled (L0, L1, L2)

Credentials and accounts

RecordCovers
Companies, ways and credentialsOne company's architecture: where a credential comes from, is stored and is read
Credential validationThe validation entry point
Credential statusUsable or stopped
API key resolutionWhere a key comes from
Auth storageSelf-contained storage
Provider keys and failoverThe list, the choice per conversation, what a failure does

Reliability

RecordCovers
Fault toleranceOverall design and timeouts
Request repairShape refusals (byte cap, refused prefill) mended and resent, the lesson kept
Error retryHandling and retry decisions
Error taxonomyStructured errors all the way to the UI
Error and timeout mechanismVisual walk-through

Model catalog

RecordCovers
ModelsData layout, fetch, merge, provider configuration
Thinking effortDeclarative per-provider mapping
Fast tierTwo-tier detection, storage, wires
Last updated · 2026-11-25