Available Models
| Model | Model ID | Context | Best For |
|---|---|---|---|
| Claude 4 Opus | claude-opus-4-20250514 | 200K tokens | Hardest problems, deep architectural analysis, multi-file refactors |
| Claude 4 Sonnet | claude-sonnet-4-20250514 | 200K tokens | Daily driver -- fast, capable, great at coding |
| Claude 3.5 Haiku | claude-3-5-haiku-20241022 | 200K tokens | Quick tasks, title generation, lightweight operations |
Tip
Claude 4 Sonnet is the recommended default model for most users. It balances speed, capability, and cost. Use Opus for particularly complex tasks that require extended reasoning.
Setup
Step 1: Get an API Key
- Go to console.anthropic.com and sign in or create an account.
- Navigate to API Keys in the dashboard.
- Click "Create Key" and copy the key (it starts with sk-ant-).
Step 2: Add the Key to Creor
You can add your Anthropic API key in two ways:
Option A: Settings UI (recommended)
- Open Creor and go to Settings (command palette: "Creor: Settings").
- Navigate to the Providers section.
- Find Anthropic and enter your API key.
- The key is stored securely in your OS keychain.
Option B: Environment Variable
Set the ANTHROPIC_API_KEY environment variable in your shell profile:
export ANTHROPIC_API_KEY="sk-ant-your-key-here"
Configuration
Set Claude as your default model in creor.json:
1
2
3
4
{
"model": "anthropic/claude-sonnet-4-20250514",
"small_model": "anthropic/claude-3-5-haiku-20241022"
}
Or assign different Claude models to different agents:
1
2
3
4
5
6
7
8
9
10
{
"agent": {
"build": {
"model": "anthropic/claude-sonnet-4-20250514"
},
"plan": {
"model": "anthropic/claude-opus-4-20250514"
}
}
}
Advanced Options
Custom Base URL
If you use an Anthropic API proxy or enterprise endpoint, configure a custom base URL:
1
2
3
4
5
6
7
8
9
{
"provider": {
"anthropic": {
"options": {
"baseURL": "https://your-anthropic-proxy.example.com/v1"
}
}
}
}
Model Filtering
Restrict which Anthropic models appear in the model selector:
1
2
3
4
5
6
7
8
9
10
{
"provider": {
"anthropic": {
"whitelist": [
"claude-sonnet-4-20250514",
"claude-opus-4-20250514"
]
}
}
}
Request Timeout
Claude Opus can take longer on complex tasks. Adjust the request timeout (default is 300,000ms / 5 minutes):
1
2
3
4
5
6
7
{
"provider": {
"anthropic": {
"timeout": 600000
}
}
}
Best For
- Complex multi-step reasoning across large codebases.
- Careful instruction following with minimal hallucination.
- Architecture design, code review, and refactoring.
- Tasks requiring extended thinking and planning.
- Understanding and working with nuanced requirements.