CC Gateway
A reverse proxy that normalizes device fingerprints and telemetry between Claude Code and the Anthropic API, giving users control over what identity data leaves their network.
At a Glance
Free and open-source under the MIT License. Self-hosted reverse proxy for AI API telemetry normalization.
Engagement
Available On
Listed Apr 2026
About CC Gateway
CC Gateway is an open-source reverse proxy written in TypeScript that sits between Claude Code and the Anthropic API. It intercepts and rewrites device identity, environment fingerprints, process metrics, and system prompt content to a single canonical profile, preventing hardware and identity leakage across multiple machines. The project is MIT-licensed and currently in alpha, designed for developers who want privacy-preserving control over AI API telemetry.
- Full identity rewrite — normalizes
device_id,email, session metadata, and theuser_idJSON blob in every API request to one canonical identity - 40+ environment dimensions replaced — swaps the entire
envobject including platform, architecture, Node.js version, terminal, package managers, runtimes, CI flags, and deployment environment - System prompt sanitization — rewrites the
<env>block injected into every prompt (Platform, Shell, OS Version, working directory) to match the canonical profile - Process metrics normalization — masks physical RAM (
constrainedMemory), heap size, and RSS to canonical values so hardware differences don't leak - Centralized OAuth — the gateway manages token refresh internally; client machines never contact
platform.claude.comand never need a browser login - Telemetry leak prevention — strips
baseUrlandgatewayfields that would reveal proxy usage in analytics events - Three-layer defense architecture — combines env vars (voluntary routing), Clash rules (network-level blocking), and gateway rewriting (identity normalization)
- Docker support — can be deployed via
docker-compose up -dfor production use - Clash rules template — includes a ready-to-use
clash-rules.yamlto block direct Anthropic connections at the network level - Verification endpoint — exposes a
/_verifyendpoint showing a before/after diff of rewrites for auditing purposes
Community Discussions
Be the first to start a conversation about CC Gateway
Share your experience with CC Gateway, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Free and open-source under the MIT License. Self-hosted reverse proxy for AI API telemetry normalization.
- Full identity rewrite
- 40+ environment dimension replacement
- System prompt sanitization
- Process metrics normalization
- Centralized OAuth management
Capabilities
Key Features
- Device identity normalization
- 40+ environment fingerprint replacement
- System prompt sanitization
- Process metrics masking
- Centralized OAuth token management
- Telemetry leak prevention
- Clash rules for network-level blocking
- Docker deployment support
- SSE stream passthrough
- Rewrite verification endpoint
- Client setup script
- Token extraction script
