Skip to main content

Anthropic Claude Configuration

Configure a Claude API key from Anthropic for use with RoostGPT.

Step 1: Create an Anthropic Account

  1. Visit console.anthropic.com
  2. Click "Sign Up" or "Get Started"
  3. Complete registration with email verification

Step 2: Generate an API Key

  1. Log into the Anthropic Console

  2. Navigate to "API keys" in the left sidebar

  3. Click "Create API key"

  4. Configure:

    • Workspace: Select your workspace (or "Default")
    • Name: Enter a descriptive name (e.g., RoostGPT-Production)

    Claude API key creation

  5. Click "Add"

  6. Copy the key immediately — it starts with sk-ant-api03- and is shown only once

Step 3: Add to RoostGPT

Web UI (Connector)

  1. Click Connectors in the top navigation bar → AI Model
  2. Select Claude AI
  3. Paste your API key
  4. Select your default model

CLI (.env file)

AI_TYPE=claude_ai
CLAUDE_AI_API_KEY=sk-ant-api03-...your_key...
CLAUDE_AI_MODEL=claude-sonnet-4-20250514
ModelIDContextOutputPricingBest For
Claude Sonnet 4 (Primary)claude-sonnet-4-20250514200K–1M64K$3/1M in, $15/1M outAll RoostGPT tasks — best balance
Claude Opus 4.1 (Premium)claude-opus-4-1-20250805200K32K$15/1M in, $75/1M outMost demanding tasks, critical analysis
Claude Haiku 3.5 (Budget)claude-3-5-haiku-20241022200K8K$0.25/1M in, $1.25/1M outHigh-volume, speed-critical tasks

Start with claude-sonnet-4-20250514 — optimal balance of performance, speed, and cost for RoostGPT.

Model Feature Comparison

FeatureSonnet 4Opus 4.1Haiku 3.5
Extended Thinking✅ (most advanced)
Multimodal (Vision)
LatencyFastModerateFastest
SWE-bench Score74.5%
Training DataMar 2025Mar 2025Jul 2024

Notes

  • Claude models have a 200K default context window, expandable to 1M with a beta header (Sonnet 4)
  • The large output capacity (64K tokens on Sonnet 4) is ideal for comprehensive code generation
  • Extended thinking on Opus 4.1 is best for complex debugging and architecture-level reasoning