Skip to main content

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
Never commit .forge/config.json! Add it to .gitignore immediately:

Claude Code Setup

Get Your API Key

1

Create Anthropic Account

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


Gemini Setup

Get Your API Key

1

Go to Google AI Studio

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

Cursor CLI respects your Cursor account subscription - no additional API keys needed!

OpenAI Codex Setup

Get Your API Key

1

Create OpenAI Account

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 control

Monitor Usage

Track API costs per agent to optimize spending

Validation

Test your configuration:

Troubleshooting

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
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
Symptoms: Tasks fail with timeoutSolutions:
  • Increase timeout value in config
  • Check network connectivity
  • Try a faster model (e.g., Haiku, Flash)
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:
Switch between them:

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