Overview
Forge supports 8 AI coding agents out of the box. Each agent needs proper configuration before use.BYOL Architecture: Forge uses a “Bring Your Own LLM” model - you provide API keys, Forge handles orchestration.
Supported AI Agents
Configuration File
Forge stores LLM configuration in.forge/config.json:
.forge/config.json
Claude Code Setup
Get Your API Key
1
Create Anthropic Account
Go to console.anthropic.com
2
Generate API Key
Navigate to API Keys → Create Key
3
Configure Forge
Available Models
Advanced Configuration
Claude Code Router Setup
Claude Code Router is LLM-agnostic - use any model with an OpenAI-compatible API!
Configuration
Supported Providers
- OpenAI
- Anthropic
- Local (Ollama)
- Custom
Gemini Setup
Get Your API Key
1
Go to Google AI Studio
Visit aistudio.google.com
2
Get API Key
Click “Get API Key” → Create API key
3
Configure Forge
Available Models
Cursor CLI Setup
Cursor CLI is separate from the Cursor IDE. You can use it independently!
Installation
Configuration
OpenAI Codex Setup
Get Your API Key
1
Create OpenAI Account
Go to platform.openai.com
2
Generate API Key
Navigate to API Keys → Create new secret key
3
Configure Forge
Available Models
Open Source Agents
OpenCode (Local)
Qwen Code (Local)
Configuration Best Practices
Start Simple
Begin with one agent (Claude or Gemini), add more later
Test Each Agent
Create a test task to verify configuration
Secure API Keys
Never commit
.forge/config.json to version controlMonitor Usage
Track API costs per agent to optimize spending
Validation
Test your configuration:Troubleshooting
Invalid API key
Invalid API key
Symptoms: Authentication errors when running tasksSolutions:
- Verify API key is correct (no extra spaces)
- Check API key has proper permissions
- Ensure API key isn’t expired
- Confirm you have credits/quota remaining
Model not found
Model not found
Symptoms: “Model not available” errorsSolutions:
- Check model name spelling (case-sensitive)
- Verify model is available in your region
- Ensure your API tier has access to the model
Timeout errors
Timeout errors
Symptoms: Tasks fail with timeoutSolutions:
- Increase
timeoutvalue in config - Check network connectivity
- Try a faster model (e.g., Haiku, Flash)
Cursor CLI not authenticated
Cursor CLI not authenticated
Symptoms: Cursor tasks fail immediatelySolutions:
Cost Optimization
Model Selection Strategy
1
Use Fast Models for Iteration
Start with fast, cheap models:
- Claude Haiku
- Gemini Flash
- GPT-3.5 Turbo
2
Use Powerful Models for Complex Tasks
Switch to stronger models for:
- Large refactoring
- Architecture changes
- Critical bug fixes
3
Compare Results
Run the same task with multiple models to find the sweet spot for each task type
Cost Comparison
Advanced: Multiple Configurations
Create environment-specific configs:Next Steps
Create Your First Task
Put your configuration to work
AI Agents Guide
Deep dive into each agent’s capabilities
Environment Variables
Additional configuration options

