Skip to content

Clarification on Using ANTHROPIC_BASE_URL for Custom Models and Adapters #5577

Description

@nikhil-pandey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssue is asking a question about how Claude Code works, or similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions