Anthropic Setup
To use Anthropic models with Janito, follow these steps:
1. Get Your API Key
- Sign up at https://console.anthropic.com/
- Navigate to your API keys page
- Create a new API key or copy an existing one
2. Set the API Key
Set your Anthropic API key using the CLI:
janito set-api-key --provider anthropic --key YOUR_API_KEY_HERE
Or set it as an environment variable:
export ANTHROPIC_API_KEY="YOUR_API_KEY_HERE"
3. Available Models
Janito supports the following Anthropic models:
claude-sonnet-4-5-20250929
- Latest model with enhanced agent and coding capabilitiesclaude-opus-4-1-20250805
- Exceptional model for specialized complex tasksclaude-opus-4-20250514
- High-capability model for complex tasksclaude-sonnet-4-20250514
- Balanced performance and costclaude-3-7-sonnet-20250219
- High-performance modelclaude-3-5-haiku-20241022
- Fast and cost-effectiveclaude-3-5-sonnet-20241022
- Balanced speed and capabilityclaude-3-haiku-20240307
- Fastest model for simple tasks
4. Usage Examples
List available models
janito list-models --provider anthropic
Use a specific model
janito chat --provider anthropic --model claude-3-5-sonnet-20241022
Set as default provider
janito set-config provider=anthropic
Notes
- Anthropic is accessed through an OpenAI-compatible API endpoint
- The default model is
claude-sonnet-4-5-20250929
- All models support streaming responses
- Context window sizes vary by model (see Supported Models for details)
For more information, visit the Anthropic documentation.