Skip to main content

Anthropic

Status: ✅ Supported

Official Anthropic Claude API integration.

Supported Models

Model IDNameContext
claude-3-haiku-20240307Claude Haiku 3200K
claude-3-5-haiku-20241022Claude Haiku 3.5200K
claude-3-5-haiku-latestClaude Haiku 3.5 (latest)200K
claude-haiku-4-5-20251001Claude Haiku 4.5200K
claude-haiku-4-5Claude Haiku 4.5 (latest)200K
claude-3-opus-20240229Claude Opus 3200K
claude-opus-4-20250514Claude Opus 4200K
claude-opus-4-0Claude Opus 4 (latest)200K
claude-opus-4-1-20250805Claude Opus 4.1200K
claude-opus-4-1Claude Opus 4.1 (latest)200K
claude-opus-4-5-20251101Claude Opus 4.5200K
claude-opus-4-5Claude Opus 4.5 (latest)200K
claude-opus-4-6Claude Opus 4.61M
claude-opus-4-7Claude Opus 4.71M
claude-3-sonnet-20240229Claude Sonnet 3200K
claude-3-5-sonnet-20240620Claude Sonnet 3.5200K
claude-3-5-sonnet-20241022Claude Sonnet 3.5 v2200K
claude-3-7-sonnet-20250219Claude Sonnet 3.7200K
claude-sonnet-4-20250514Claude Sonnet 4200K
claude-sonnet-4-0Claude Sonnet 4 (latest)200K
claude-sonnet-4-5-20250929Claude Sonnet 4.5200K
claude-sonnet-4-5Claude Sonnet 4.5 (latest)200K
claude-sonnet-4-6Claude Sonnet 4.61M

Setup

1. Get API Key

  1. Visit Anthropic Console
  2. Create or log in to your account
  3. Go to API keysCreate Key
  4. Copy the key (starts with sk-ant-)

2. Add to Clawrium

clm provider add my-claude --type anthropic

You will be prompted to enter your API key securely.

3. Select Model

Choose a default model during setup:

  • claude-opus-4-20250514 (best quality)
  • claude-sonnet-4-20250514 (recommended balance)
  • claude-3-5-haiku-20241022 (fastest)

Configuration

# View provider details
clm provider list

# Change default model
clm provider edit my-claude --model claude-sonnet-4-20250514

# Update API key
clm provider edit my-claude --update-key

# Remove provider
clm provider remove my-claude

Pricing Considerations

ModelInput (per 1M tokens)Output (per 1M tokens)
Claude Opus 4$15.00$75.00
Claude Sonnet 4$3.00$15.00
Claude 3.5 Haiku$0.25$1.25

Prices subject to change. Check Anthropic pricing for current rates.

Why Claude?

  • Longer context: Up to 200K tokens on some models
  • Strong reasoning: Excellent for complex tasks
  • Constitutional AI: Built-in safety measures
  • Vision support: Some models support image input

Usage in Agents

During agent onboarding:

clm agent configure my-agent
# Select my-claude when prompted for provider

Troubleshooting

"Invalid API key"

  • Verify the key starts with sk-ant-
  • Check your Anthropic console for active keys

"Rate limit exceeded"

  • Check your Anthropic usage dashboard
  • Contact Anthropic for rate limit increases

Back to Providers