cc-gateway-ai-proxy — Claude Code skill: setup
Guides deployment of CC Gateway, a proxy that routes Claude Code traffic through one gateway and standardizes device telemetry. Useful across multiple machines.
npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a claude-codeWhat cc-gateway-ai-proxy does
This skill guides setup of CC Gateway, a TypeScript reverse proxy placed between Claude Code and the Anthropic API. The gateway replaces more than 40 fingerprint fields with one configured identity, injects OAuth authentication, and forwards SSE responses. Environment settings and Clash rules cover client routing and direct-connection blocking.
The guide covers npm installation, identity and client-token generation, OAuth extraction on macOS, config.yaml editing, and startup with npm or Docker Compose. Health and rewrite checks use /_health and /_verify; client setup can run through scripts/client-setup.sh. Node.js 18+ or Docker is required to deploy the gateway.
What it helps with
- route Claude Code traffic through a reverse proxy
- normalize identities across several machines
- centralize OAuth token refresh
- block direct Anthropic connections
- inspect request rewriting at the gateway
Example prompts for the agent
- Set up CC Gateway for Claude Code with OAuth authentication and client tokens.
- Create
config.yaml, generate one identity, and add tokens formy-laptopandwork-desktop. - Configure a client with
scripts/client-setup.sh, then check/_healthand/_verify.
How to install cc-gateway-ai-proxy
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a claude-code2Manually: put the files in place
~/.claude/skills/cc-gateway-ai-proxy/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cc-gateway-ai-proxy/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a codex2Manually: put the files in place
.agents/skills/cc-gateway-ai-proxy/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a cursor2Manually: put the files in place
.cursor/skills/cc-gateway-ai-proxy/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills cc-gateway-ai-proxy2Manually: put the files in place
.github/skills/cc-gateway-ai-proxy/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/cc-gateway-ai-proxyManually: put the files in place
.devin/skills/cc-gateway-ai-proxy/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cc-gateway-ai-proxy
How do I install cc-gateway-ai-proxy in Claude Code?
Run npx skills add reason-machines/trending-skills --skill cc-gateway-ai-proxy -a claude-code, then check ~/.claude/skills/cc-gateway-ai-proxy/SKILL.md.
What does cc-gateway-ai-proxy do?
The skill guides deployment of CC Gateway between Claude Code and the Anthropic API. It covers device-fingerprint normalization, centralized OAuth handling, and blocking direct traffic.
What does CC Gateway require?
Deployment needs Node.js 18+ or Docker, plus a machine that has already signed in to Claude Code so its OAuth token can be extracted. Clash is used for network-level blocking of direct connections.