Skip to content

Conversation

@vaayne
Copy link
Collaborator

@vaayne vaayne commented Oct 30, 2025

Summary

This PR fixes two issues with Claude Code agent configuration:

  1. OAuth Support ([Bug]: Agents can't use Anthropic OAuth. It force to use API Key #10785): Agents now properly support Anthropic OAuth authentication by routing requests through the proxy API server, allowing users with Anthropic Pro subscriptions to use OAuth instead of being forced to use API keys.

  2. Fast Model Settings ([Bug]: Agent did not correctly apply the fast model setting #11014): Updated environment variable configuration to match the official Claude Code documentation, using ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, and ANTHROPIC_DEFAULT_HAIKU_MODEL instead of the incorrect ANTHROPIC_SMALL_FAST_MODEL.

Changes

  • Route agent requests through proxy API server to support OAuth and other authentication methods
  • Fix model environment variables according to official Claude Code docs
  • Allow forwarding of additional HTTP headers needed for proper request routing

Test Plan

  • Test agent creation with Anthropic OAuth authentication
  • Test agent creation with API key authentication
  • Verify fast model selection works correctly
  • Test existing agents still work after changes

Related Issues

Fixes #10785
Fixes #11014

- Fix agent OAuth authentication by routing through proxy API server
- Update model environment variables to use ANTHROPIC_DEFAULT_*_MODEL
- Allow forwarding of sentry-trace, baggage, content-length, connection headers

Fixes #10785, #11014
@vaayne
Copy link
Collaborator Author

vaayne commented Oct 30, 2025

@beyondkmp please help to check if OAuth is working now.

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

Labels

None yet

3 participants