Skip to content

Conversation

@nsxdavid
Copy link

Summary

Adds support for configuring a custom base_url for the Anthropic provider, enabling use with proxy servers or alternative API-compatible endpoints.

Closes #51

Changes

  • Added optional base_url field to Anthropic provider configuration
  • Updated provider initialization to use custom base URL when specified
  • Falls back to default Anthropic API endpoint when not configured

Example Configuration

[providers.anthropic.custom]
api_key = "your-api-key"
model = "claude-sonnet-4-20250514"
base_url = "https://your.custom.endpoint/v1"

Test plan

  • Builds successfully
  • Works with default Anthropic endpoint (no base_url specified)
  • Works with custom base_url for alternative providers

nsxdavid and others added 2 commits December 12, 2025 16:26
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allow configuring a custom base URL for the Anthropic API endpoint.
This enables using Anthropic-compatible proxies or alternative endpoints.

The base_url is the API base (e.g., https://api.anthropic.com/v1) and
the provider appends /messages when making requests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nsxdavid
Copy link
Author

This makes it easy to pair G3 with something like my anthropic max plan router. Player and Coach arguing about things can otherwise get pretty costly. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Support for External Providers Using Anthropic-format API

1 participant