Skip to content

Add authentication and host configuration to Anthropic proxy #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ThomasK33
Copy link
Member

Add authentication and host configuration to Anthropic proxy

This PR adds security and flexibility to the Anthropic proxy:

  1. Added authentication support with a custom header token:

    • New authToken option to require authentication
    • Configurable authHeaderName (defaults to "X-AnyClaude-Token")
    • Returns 401 Unauthorized when token doesn't match
  2. Added host configuration:

    • New host parameter (defaults to "127.0.0.1")
    • Properly reflects host in returned URL
  3. Improved security for the CLI:

    • Generates a random UUID token if none provided
    • Injects token via ANTHROPIC_CUSTOM_HEADERS
    • Reuses existing API keys when available
  4. Updated example model name in help text to "openai/gpt-5-mini"

@ThomasK33 ThomasK33 requested a review from kylecarbs August 8, 2025 15:07
@ThomasK33 ThomasK33 self-assigned this Aug 8, 2025
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ThomasK33 ThomasK33 marked this pull request as ready for review August 8, 2025 15:07
Change-Id: If6f97c548b00d040beccf17e207c389bcaef3be8
Signed-off-by: Thomas Kosiewski <[email protected]>
@ThomasK33 ThomasK33 force-pushed the thomask33/Add_authentication_and_host_configuration_to_Anthropic_proxy branch from 0b7b235 to 0ce51b5 Compare August 10, 2025 13:40
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.

1 participant