OpenProgram Docs

Providers

openprogram providers available also lists hundreds of OpenAI-compatible community entries, configured the same way.

ProviderProtocolAccessNotes
anthropicAnthropic MessagesANTHROPIC_API_KEYExplicit caching, cache_control, 1h TTL supported
openaiOpenAI ResponsesOPENAI_API_KEYAutomatic caching, prompt_cache_key
openai_responses openai_completionsResponses, Chat CompletionsShared implementationsReused by many providers
openai_codexChatGPT backendOAuth (ChatGPT subscription), or import a codex loginLive model list
azure_openai_responsesAzure OpenAI ResponsesAZURE_OPENAI_API_KEY and your base URL
googleGoogle Generative AIGEMINI_API_KEY, GOOGLE_API_KEYThinking by token budget
google_gemini_cliCloud Code AssistCLI credentials: reads ~/.gemini/oauth_creds.json; the Gemini CLI refreshes
gemini_subscriptionCloud Code AssistCLI credentials: imports the same fileAliases gemini, gemini-cli
amazon_bedrockBedrock Converse StreamCloud credential chain, detected at runtimeExplicit caching, cachePoint
github_copilotOpenAI Responses and othersGitHub device code or token importNo thinking effort
deepseekOpenAI CompletionsDEEPSEEK_API_KEYReasoner effort not adjustable
openrouterOpenAI CompletionsOPENROUTER_API_KEYGateway
vercel_ai_gatewayAnthropic MessagesAI_GATEWAY_API_KEYGateway
groqOpenAI CompletionsGROQ_API_KEY
cerebrasOpenAI CompletionsCEREBRAS_API_KEY
mistralOpenAI CompletionsMISTRAL_API_KEY
xaiOpenAI CompletionsXAI_API_KEY
xai_subscriptionOpenAI ResponsesOAuth (SuperGrok, X Premium+), browser PKCESame models as xai, via cli-chat-proxy.grok.com. Keeps the selected model ID: grok-4.6 is not replaced by grok-build.
zaiOpenAI CompletionsZAI_API_KEY
huggingfaceOpenAI CompletionsHF_TOKEN
minimax minimax_cnAnthropic MessagesMINIMAX_API_KEY, MINIMAX_CN_API_KEYInternational, China
minimax_cn_coding_planAnthropic MessagesMINIMAX_CN_API_KEY, MINIMAX_API_KEYMiniMax Token Plan (CN), same account as minimax_cn
kimi_codingAnthropic MessagesKIMI_API_KEY, MOONSHOT_API_KEY
alibaba_token_plan_cnOpenAI CompletionsPlan API keyAlias bailian
opencodeOpenAI Completions and othersOPENCODE_API_KEY
opencode_goOpenAI CompletionsOPENCODE_API_KEY
atlascloudOpenAI CompletionsATLASCLOUD_API_KEY
ollama lmstudio vllm llamacpp localOpenAI CompletionsOptional keyLocal models

API keys are imported into the credential store: Authentication. Every provider streams. Multimodal input is per model; trust the UI. Prompt caching is verified in code only where noted.

Custom providers

Settings → Model services: a display name and base URL are required; an id is derived from the name if omitted. https://api.example.com resolves to /v1; an explicit path such as /compatible-mode/v1 is kept. Fetch models browses the endpoint's /models. Stored as providers.<id> with source: "custom".

Which session uses which model

Settings → Model services opens on Overview, a map for now, 24 hours or 7 days.

LeftRight
Sessions answering or calling a model in the window; under each, branches, sub-agents and child sessions from program runs. Session-less calls such as titling sit under Background calls.Models in use, by provider
MarkMeaning
Blue line, moving dotRequest in flight
Orange dashed lineModel that failed and was switched away from
Note beside a providerKey cooling down, or needs fixing

Hover a row to pick out its lines. Click a session to open it, a provider for its settings. Recent model switches below lists each with its reason. Sessions with no call in the window are only counted. The map needs a wide pane.

Fallback models

For a model that is rate limited, overloaded, down or unreachable. Set under Settings → Model services → Behavior, or:

openprogram config set model_fallback.mode same-provider
openprogram config set model_fallback.models '["anthropic/claude-sonnet-5-5", "openai/gpt-5.5"]'
model_fallback.modeOn such a failure
off (default)The error is shown
same-providerUp to two other enabled models from that provider, in settings order. No other provider is contacted.
listmodel_fallback.models in order; other providers allowed

A switch happens only before any reply text. Authentication errors, invalid requests, a full context window and content-policy refusals are not retried. OPENPROGRAM_FALLBACK_MODELS overrides the setting.

Redacting secrets in requests

Off by default. Redact secrets in requests under Settings → Model services → Behavior, or openprogram config set privacy.redact_requests true. Before each request these become placeholders such as [[SECRET_1]], [[EMAIL_2]]:

  • API keys and tokens with a recognizable shape: Anthropic, OpenAI, GitHub, AWS, Google, Slack, JWTs
  • Private key blocks
  • The value in password=…, api_key: …, Authorization: Bearer … and similar
  • Email addresses

The reply and its tool calls get real values back first, so a command written with [[SECRET_1]] runs with the key. The mapping lives in memory for one request. A password in free text with no assignment is sent as is.

Library use

from openprogram.runtime.agent.runtime.factory import create_runtime

runtime = create_runtime()                                        # first available provider
runtime = create_runtime(provider="anthropic", model="claude-sonnet-4-6")  # Anthropic API key
runtime = create_runtime(provider="openai", model="gpt-4.1")               # OpenAI Responses
runtime = create_runtime(provider="gemini", model="gemini-2.5-flash")      # Google Generative AI
runtime = create_runtime(provider="openai-codex")                          # ChatGPT subscription
runtime = create_runtime(provider="gemini-cli")                            # Gemini CLI login

Those five have bespoke behavior. Every other provider routes by the model's protocol, as in chat.

Last updated · 2026-11-25