Setup
Initialize providers with API keys, typically in your app’s entry point or a shared module:Model strings
Agents reference models as"provider/model":
Direct provider access
For cases outside the agent system:Custom base URLs
Point a provider to a compatible API (Azure OpenAI, local models, proxies):Provider configuration
OpenAI
Anthropic
Environment variables
The framework auto-detects API keys from standard environment variables if you don’t callinitializeProviders():
| Variable | Provider |
|---|---|
OPENAI_API_KEY | OpenAI |
ANTHROPIC_API_KEY | Anthropic |
GOOGLE_API_KEY |
Next
- Middleware: add CORS, rate limiting, and logging
- Agents: agents use providers for AI models
Related
veryfront/provider: provider API reference