Provider Strategy & API Keys Reference
MultiModel Dev OS supports multi-vendor API routing by centralizing provider properties, endpoints, and credentials reference schemas.
Provider Registry Configuration
Configure base URLs and API environment variables in [.ai/models/providers.yaml](file:///F:/multimodel-dev-os/.ai/models/providers.yaml):
yaml
providers:
anthropic:
name: "Anthropic"
api_endpoint: "https://api.anthropic.com/v1"
env_key: "ANTHROPIC_API_KEY"
default_headers:
"anthropic-version": "2023-06-01"
google:
name: "Google Gemini"
api_endpoint: "https://generativelanguage.googleapis.com/v1beta"
env_key: "GEMINI_API_KEY"
openai:
name: "OpenAI"
api_endpoint: "https://api.openai.com/v1"
env_key: "OPENAI_API_KEY"API Key Security Rules
To guarantee credential safety during agentic loops:
- Never commit raw keys: Add
.envand.env.localfiles to.gitignoreto prevent committing secrets to version control. - Centralized Environment Variables: Centralize keys inside local shell environments or local
.envconfigs. - No hardcoded defaults: The default
providers.yamlrefers only to standard environment variable keys (e.g.ANTHROPIC_API_KEY), never API secrets.
custom endpoint routing (e.g. proxy/gateways)
For companies routing traffic through centralized proxy interfaces (such as OpenRouter, Cloudflare AI Gateway, or local mocks):
- Edit
.ai/models/providers.yamland update theapi_endpointparameter of the targeted provider. - Update
default_headersto inject custom authentication tokens or routing parameters required by the gateway.
