Anthropic’s Claude models are known for their advanced reasoning capabilities, long context windows, and excellent performance on coding tasks. Forge supports both direct Anthropic API access and Claude Code integration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/antinomyhq/forge/llms.txt
Use this file to discover all available pages before exploring further.
Available Models
Anthropic offers several Claude model families:Claude 4 Series (Latest)
- claude-sonnet-4-20250514 - Balanced performance and speed
- claude-opus-4-20250514 - Most capable for complex tasks
- claude-opus-4-1-20250805 - Enhanced reasoning capabilities
- claude-opus-4-5-20251101 - Latest flagship with advanced analysis
- claude-haiku-4-5-20251001 - Fast and efficient
Claude 3 Series
- claude-3-7-sonnet-20250219 - Enhanced third generation
- claude-3-5-haiku-20241022 - Fast and efficient
- claude-3-haiku-20240307 - Quick responses
- 200K context window
- Tool calling and parallel tool execution
- Extended thinking/reasoning
- Vision (text + image input)
Setup Methods
Forge supports two ways to use Claude:1. Direct API Access (Recommended)
Get Your API Key
- Visit Anthropic Console
- Sign up or log in to your account
- Navigate to API Keys section
- Create a new API key
- Copy your API key (starts with
sk-ant-...)
Configure Forge
Run the interactive login command:Select Anthropic from the list and paste your API key when prompted.
2. Claude Code Integration
Claude Code provides OAuth-based authentication for seamless integration with Anthropic’s ecosystem.Authorize Access
Follow the prompts to:
- Open the authorization URL in your browser
- Log in to your Anthropic account
- Grant Forge access to your Claude Code session
Configuration
API Endpoint
- Messages API:
https://api.anthropic.com/v1/messages - Models List:
https://api.anthropic.com/v1/models
Authentication
Anthropic uses API key authentication via thex-api-key header or OAuth tokens for Claude Code.
Model Selection
Choosing the Right Model
For Coding and Agents:claude-sonnet-4-20250514- Best balance of speed and capabilityclaude-opus-4-6- Most intelligent for complex coding tasks
claude-haiku-4-5-20251001- Quick, efficient responsesclaude-3-5-haiku-20241022- Fast third-generation model
claude-opus-4-5-20251101- Enhanced reasoning and analysisclaude-opus-4-1-20250805- Advanced problem-solving
Switching Models
Change models during a Forge session:Features
Extended Thinking
Claude 4 models support extended thinking for complex reasoning tasks. The model will show its reasoning process before providing the final answer.Vision Capabilities
All Claude 4 models support both text and image inputs:- Analyze code screenshots
- Process diagrams and charts
- Review UI mockups
- Examine error messages in images
Tool Calling
Claude models excel at using tools:- File operations
- Code execution
- API calls
- Multi-step workflows
Long Context
With 200K context windows, Claude can:- Analyze entire codebases
- Process long documents
- Maintain conversation history
- Work with large data files
Best Practices
Rate Limits
Be aware of rate limits:- Requests per minute: Varies by plan
- Tokens per minute: Varies by plan and model
- Check your usage dashboard for current limits
Cost Optimization
- Use Haiku models for simple tasks
- Use Sonnet for balanced performance
- Reserve Opus for complex reasoning tasks
- Monitor token usage in the console
Troubleshooting
Invalid API Key
If authentication fails:- Verify your API key starts with
sk-ant- - Check that the key is active in the console
- Ensure you have sufficient credits
Rate Limit Errors
If you hit rate limits:- Check your current limits in the console
- Implement exponential backoff
- Consider upgrading your plan
- Spread requests over time
Token Limit Exceeded
If requests exceed token limits:- Reduce context size
- Summarize previous conversation
- Split large requests into smaller chunks
- Use models with appropriate context windows
Deprecated: Environment Variable Setup
For backward compatibility:Next Steps
- Learn about Claude’s capabilities
- Explore prompt engineering
- Set up custom rules for your projects