Skip to content

Comments

Add Anthropic API URL configuration option#53

Merged
matheusml merged 3 commits intomatheusml:mainfrom
hungthai1401:feature/anthropic-url-customizable
Jan 7, 2026
Merged

Add Anthropic API URL configuration option#53
matheusml merged 3 commits intomatheusml:mainfrom
hungthai1401:feature/anthropic-url-customizable

Conversation

@hungthai1401
Copy link
Contributor

This PR allows user can custom Anthropic API URL.

Add ZSH_AI_ANTHROPIC_URL configuration variable to allow users to specify custom Anthropic API endpoints. This enables usage with proxy servers or alternative API gateways.

- Add ZSH_AI_ANTHROPIC_URL default config in lib/config.zsh
- Update anthropic provider to use configured URL instead of hardcoded endpoint
- Add test coverage for custom URL configuration
Add documentation for the new ZSH_AI_ANTHROPIC_URL environment variable that allows users to configure custom Anthropic API endpoints. This enables usage with Anthropic-compatible APIs or proxy servers while maintaining the default official API URL.
Copy link
Owner

@matheusml matheusml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, just solve the conflicts and I'll merge

@hungthai1401
Copy link
Contributor Author

@matheusml I have resolved the conflicts

@matheusml matheusml merged commit 4a30ae9 into matheusml:main Jan 7, 2026
2 checks passed
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.

2 participants