Skip to main content

Anthropic Provider

Use Anthropic’s Claude models including Claude 4, Claude 3.5 Sonnet, and Claude 3 Opus.

Environment Variables

Supported Modalities

Quick Start

1

Simple Usage

2

With Configuration

Adjust provider credentials and model settings for production — see the sections above.

Available Models

Advanced Configuration

With Tools

Vision (Image Input)

Streaming

Multi-Agent Workflow

Troubleshooting

Invalid API Key

Solution: Verify your ANTHROPIC_API_KEY starts with sk-ant-.

Rate Limits

Solution: Implement retry logic or contact Anthropic for higher limits.

Model Not Found

Solution: Check the model name includes the date suffix (e.g., claude-sonnet-4-20250514).

Anthropic CLI Usage

Anthropic CLI Usage

Providers Overview

Providers Overview