Supported Providers
| Provider | Models | Environment Variable |
|---|---|---|
| OpenAI | All models | OPENAI_API_KEY |
| Anthropic | All models | ANTHROPIC_API_KEY |
| Google Gemini | All models | GEMINI_API_KEY |
Configuration
OpenAI
Anthropic
Google Gemini
Environment Setup
Create a.env file in your project root:
Switching Providers
Create agents with different providers for different tasks:Cost Optimization
Token costs vary by provider and model. To reduce costs:- Use
page.perform()instead ofpage.ai()when possible (single LLM call vs. multiple) - Use Action Caching to replay without LLM calls
- Use smaller/cheaper models for simple tasks