Skip to main content

Anthropic CLI Commands

Manage and test Anthropic Claude provider via the command line.

Environment Setup

Commands

Check Provider Status

Output:

JSON Output

Output:

Test Provider

Output:

Test with JSON Output

Output:

Chat with Anthropic

Advanced Usage

Using Alias

Verbose Output

Options Reference

Troubleshooting

Missing API Key

Solution:

Invalid Model Name

Solution: Include the full model name with date:

Rate Limit

Solution: Wait and retry, or implement exponential backoff.

Anthropic Code Usage

Anthropic Code Usage

Providers CLI Overview

Providers CLI Overview