Claude Code
Point Claude Code at the Admesh gateway with two environment variables and keep your existing workflow.
Configure
export ANTHROPIC_BASE_URL="https://gateway.admesh.ai"
export ANTHROPIC_AUTH_TOKEN="$ADMESH_API_KEY"
Claude Code appends
/v1/...toANTHROPIC_BASE_URLitself, so set the root address here without/v1.
Verify
Run claude and call a model. If you see 401 invalid_api_key, check that ANTHROPIC_AUTH_TOKEN holds the full sk-live-* secret.
Notes
- Model IDs use the
anthropic/*namespace (e.g.anthropic/claude-sonnet). - The same base URL and key are shared across tools — no separate upstream account needed.