Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
AI API identity gateway — reverse proxy that normalizes device fingerprints and telemetry for privacy-preserving API proxying
| Date | Stars |
|---|---|
| 2026-07-24 | 2982 |
| 2026-07-25 | 2983 |
| 2026-07-28 | 2983 |
| 2026-07-30 | 2983 |
| 2026-08-06 | 2983 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset=".github/logo-light.svg">
<img alt="CC Gateway" src=".github/logo-light.svg" width="440">
</picture>
<p>Take back control of your AI API telemetry</p>
</div>
<div align="center">
[![License: MIT][license-shield]][license-url]
[![Version][version-shield]][version-url]
[![Tests][tests-shield]][tests-url]
[![Follow @whiletrue0x][twitter-shield]][twitter-url]
</div>
<div align="center">
<a href="#quick-start">Quick Start</a> ·
<a href="#add-clients">Add Clients</a> ·
<a href="#what-gets-rewritten">What Gets Rewritten</a> ·
<a href="#deployment">Deployment</a> ·
<a href="#changelog">Changelog</a>
</div>
---
> **Alpha** — This project is under active development. Test with a non-primary account first.
> **Disclaimer** — See [full disclaimer](#disclaimer) below.
## Why
Claude Code collects **640+ telemetry event types** across 3 parallel channels, fingerprints your machine with **40+ environment dimensions**, and phones home every 5 seconds. Your device ID, email, OS version, installed runtimes, shell type, CPU architecture, and physical RAM are all reported to the vendor — continuously.
If you run Claude Code on multiple machines, each device gets a unique permanent identifier. There is no built-in way to manage how your identity is presented to the API.
CC Gateway is a reverse proxy that sits between Claude Code and the Anthropic API. It normalizes device identity, environment fingerprints, and process metrics to a single canonical profile — giving you control over what telemetry leaves your network.
## Features
- **Full identity rewrite** — device ID, email, session metadata, and the `user_id` JSON blob in every API request are normalized to one canonical identity
- **40+ environment dimensions replaced** — platform, architecture, Node.js version, terminal, package managers, runtimes, CI flags, deployment environment — the entire `env` object is swapped, not patched
- **System prompt sanitization** — the `<env>` block injected into every prompt (Platform, Shell, OS Version, working directory) is rewritten to match the canonical profile
- **Billing header stripped** — the `x-anthropic-billing-header` (which contains a per-session fingerprint hash) is removed entirely, consistent with the official `CLAUDE_CODE_ATTRIBUTION_HEADER=false` toggle. This also enables [cross-session prompt cache sharing](https://github.com/anthropics/claude-code/issues/40652), reducing system prompt costs by ~85%
- **Process metrics normalization** — physical RAM (`constrainedMemory`), heap size, and RSS are masked to canonical values so hardware differences don't leak
- **Zero-login client setup** — clients receive a single launcher script. No browser OAuth, no `~/.zshrc` changes, no config files
- **Centralized OAuth** — the gateway manages token refresh internally; client machines never contact `platform.claude.com`
- **Instant startup** — gateway uses your existing access token on launch. No network call until the token actually expires
- **Proxy-aware** — supports `HTTPS_PROXY` / `HTTP_PROXY` env vars for outbound connections (Clash, V2Ray, etc.)
- **Telemetry leak prevention** — strips `baseUrl` and `gateway` fields that would reveal proxy usage in analytics events
## Quick Start
One command. Requires Node.js 22+ and an existing Claude Code login on this machine.
```bash
git clone https://github.com/motiful/cc-gateway.git
cd cc-gateway
npm install
bash scripts/quick-setup.sh
```
This will:
1. Extract your OAuth credentials from macOS Keychain (access token + refresh token)
2. Generate a canonical device identity and client token
3. Write `config.yaml`
4. Generate a client launcher at `./clients/cc-<hostname>`
5. Start the gateway on `http://localhost:8443`
### Use it
In another terminal:
```bash
./clients/cc-<hostnamExcerpt of 16,855 characters
Read on GitHub11
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:8fc6b80f1fe31c79, topic:telemetry
matched fp:8fc6b80f1fe31c79, topic:api-gateway
matched fp:8fc6b80f1fe31c79, topic:privacy