mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
Add request cloaking feature for non-Claude-Code clients to disguise
API requests as originating from the official Claude Code CLI.
Features:
- CloakConfig struct with mode (auto/always/never), strict-mode, and
sensitive-words options
- System prompt injection (prepend or replace with Claude Code identity)
- Fake user ID generation matching Claude Code format
- Sensitive word obfuscation using zero-width space insertion
- Configurable via claude-api-key.cloak or auth attributes
Ported from upstream commit 00280b6f.