Anthropic (Claude)
Claude models can be added to Tresor via API key authentication. Use the native Anthropic format for full Claude functionality.
- Web UI
- config.yaml
Web UI is more intuitive, but requires more manual operations.
In the "Downstreams" tab:
- Click + Add Provider if Anthropic is not already listed.
- Enter
Anthropicor any name you like. - Under "API Formats", select Anthropic.
- Under "Authentication", select API key and enter a key from Anthropic API Keys.
- Under "API Host", enter
https://api.anthropic.com. - Under "Models", click Fetch Models and add the models you need. If discovery is unavailable, enter model IDs from your Anthropic console manually.
Editing YAML is less intuitive, but requires fewer manual operations.
Replace YOUR-ANTHROPIC-API-KEY with your API key. The model IDs below follow Tresor's example configuration; replace them with models available to your account.
~/.config/tresor/config.yaml
# Other settings omitted. Add this entry to your existing downstreams list.
downstreams:
- id: anthropic
name: Anthropic
base_url: https://api.anthropic.com
api_formats:
- anthropic
output_model_ids:
- claude-sonnet-5
- claude-haiku-4-5
is_enabled: true
auth:
type: api_key
api_key: YOUR-ANTHROPIC-API-KEY
Restart Tresor to apply the YAML changes.
To enable Anthropic's optional Chat Completions compatibility, also select OpenAI in the Web UI or add openai to api_formats; the API host stays the same.
Done! Clients accessing Tresor can now use your configured Claude models.