Claude Code
Connect Claude Code to Sovereign through the Anthropic-compatible Messages API.
Official docs:
- Claude Code model configuration
- Claude Code LLM gateway configuration
- Claude Code environment variables
Recommended Surface
Use the Anthropic-compatible surface:
Environment Variables
If you want sovereign-alpha to appear in the /model picker as a custom entry, Claude Code supports:
Notes
- Keep
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERYdisabled unless you specifically need discovery behavior. ANTHROPIC_BASE_URLchanges where Claude Code sends requests; it does not change the model automatically.- Sovereign currently exposes a stable public model name rather than Anthropic-branded model IDs.
Quick Check
Run:
or inside Claude Code: