Clarification on Using ANTHROPIC_BASE_URL for Custom Models and Adapters

Resolved 💬 5 comments Opened Aug 12, 2025 by nikhil-pandey Closed Aug 12, 2025

I am seeking clarification regarding Anthropic's Commercial Terms of Service and Usage Policy.

Specifically, is it permissible under Anthropic's ToS to:

  1. Use the ANTHROPIC_BASE_URL environment variable (as documented here: https://docs.anthropic.com/en/docs/claude-code/llm-gateway) to route SDK/API requests to custom models or endpoints that are not Anthropic's official models?
  2. Publish adapters or code on GitHub that enables others to use ANTHROPIC_BASE_URL to connect to non-Anthropic models or endpoints?

Are there any restrictions or implications under Anthropic's Terms of Service for these activities?

Thank you for clarifying whether this usage is compliant with Anthropic's policies.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗