Claude Cloak
A lightweight reverse proxy that cloaks API requests as Claude Code CLI format.
Features
- Request Cloaking: Transforms requests to appear as Claude Code CLI
- Outbound Proxy: Optional HTTP/HTTPS outbound proxy for IP obfuscation
- Multi-Credential Management: Store and switch between API credentials
- Admin Panel: Web UI for management at
/admin/
- Streaming Support: Full SSE streaming with backpressure handling
- Sensitive Word Filtering: Aho-Corasick based single-pass obfuscation
- Parameter Normalization: Automatically strips top_p/top_k to prevent upstream errors
Configuration
After deployment, access the Admin Panel at https://your-domain/admin/ using your ADMIN_KEY.
Usage
curl -X POST https://your-domain/v1/messages \
-H "Authorization: Bearer YOUR_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'
Links