Quick Start
Provider Management
Interactive Login
The recommended way to configure providers:- Shows available providers
- Guides you through credential entry
- Securely stores credentials in file-based storage
- Validates the credentials
Listing Providers
View all supported providers:Removing Credentials
Remove stored credentials:Supported Providers
Anthropic
Anthropic
Claude models from Anthropic.Setup:Configure model:Available models:
claude-3.7-sonnet- Latest Sonnet modelclaude-sonnet-4- Claude Sonnet 4claude-3-opus- Most capable modelclaude-3-haiku- Fastest model
OpenAI
OpenAI
GPT models from OpenAI.Setup:Configure model:Available models:
o3-mini-high- High reasoning capabilitygpt-4-turbo- Advanced GPT-4 modelgpt-4- Standard GPT-4
Google Vertex AI
Google Vertex AI
Gemini and Claude models via Google Cloud.Setup:Configure model:Available models:
- Install and authenticate with Google Cloud CLI:
- Get authentication token:
- Configure in Forge:
gemini-2.5-pro- Latest Gemini Progemini-2.0-flash- Fast Gemini modelclaude-sonnet-4@20250514- Claude via Vertex AI
OpenRouter
OpenRouter
Access multiple AI models through a single API.Setup:
x.ai
x.ai
Grok models from x.ai.Setup:
Cerebras
Cerebras
Fast inference models from Cerebras.Setup:
Amazon Bedrock
Amazon Bedrock
Claude and other models via AWS Bedrock.Requirements:Configure model:
- Deploy Bedrock Access Gateway
- Create API key in AWS Secrets Manager
- Note the API Base URL from CloudFormation outputs
Groq
Groq
Fast inference using Groq hardware.Setup:Configure model:
OpenAI-Compatible Providers
OpenAI-Compatible Providers
Any provider with OpenAI-compatible API.Setup:Configure model:
Forge Services
Forge Services
Managed AI services from Forge.Setup:Configure model:
Environment Variables (Deprecated)
For backward compatibility, Forge still supports environment variables. Credentials found in environment variables are automatically migrated to file-based storage on first run.Model Selection
After configuring a provider, specify the model in yourforge.yaml:
/model command in the Forge CLI to see all available models for your configured providers.
Advanced Configuration
Custom API Endpoints
Override default API URLs using environment variables:HTTP Client Configuration
Fine-tune API request behavior:Troubleshooting
Invalid Credentials
Invalid Credentials
If you see authentication errors:
- Run
forge provider logoutto remove old credentials - Run
forge provider loginto re-enter credentials - Verify your API key is valid on the provider’s website
Rate Limiting
Rate Limiting
If you hit rate limits, configure retry behavior:
Connection Timeouts
Connection Timeouts
For slow connections, increase timeout values:
Certificate Errors
Certificate Errors
If you encounter SSL certificate issues:Warning: Only use
FORGE_HTTP_ACCEPT_INVALID_CERTS=true in development.Security Best Practices
Credential Storage
- Never commit API keys to version control
- Use
forge provider loginfor secure credential storage - Credentials are stored in platform-specific secure locations
- Environment variables are auto-migrated on first run
Next Steps
forge.yaml Configuration
Configure model behavior and workflow settings
Custom Rules
Define project-specific guidelines