Files
higress/plugins/wasm-go/extensions
johnlanni caf910cf48 feat(ai-proxy): add Claude Code mode support for Claude provider
Add claudeCodeMode configuration option to emulate Claude Code client
requests, enabling OAuth token authentication with Claude API.

Changes:
- Add claudeCodeMode config field in ProviderConfig
- Transform request headers for Claude Code mode:
  - Use Bearer token authorization instead of x-api-key
  - Set user-agent to claude-cli/2.1.2 (external, cli)
  - Set x-app: cli header
  - Set anthropic-beta with OAuth and Claude Code features
  - Add ?beta=true query parameter to path
- Add cache_control with ephemeral type to system prompts in Claude Code mode

This allows users to use Claude Code OAuth tokens with Higress AI proxy.
2026-02-07 01:12:33 +08:00
..
2025-08-26 14:41:05 +08:00