Configure Limit to use Anthropic's Claude models.
- Visit https://console.anthropic.com/settings/keys
- Log in to your Anthropic account
- Click "Create Key"
- Copy the key (starts with
sk-ant-api03-...)
Create ~/.limit/config.toml:
provider = "anthropic"
[providers.anthropic]
api_key = "sk-ant-api03-..."
model = "claude-3-5-sonnet-20241022"
max_tokens = 4096
timeout = 60Or use environment variable:
export ANTHROPIC_API_KEY="sk-ant-api03-..."lim
lim> /modelYou should see Anthropic provider settings.
Invalid API key: Check your key in config or environment variable.
Rate limit exceeded: Wait a few minutes or check your usage at https://console.anthropic.com/settings/usage.
Timeout: Increase timeout value in config.toml.