OpenAI-compatible proxy for Claude Pro/Max subscriptions using OAuth.
FOR EDUCATIONAL PURPOSES ONLY
This tool:
- Is NOT affiliated with or endorsed by Anthropic
- Uses undocumented OAuth flows from Claude Code
- May violate Anthropic's Terms of Service
- Could stop working at any time without notice
- Comes with NO WARRANTY or support
USE AT YOUR OWN RISK. The authors assume no liability for any consequences.
For official access, use Claude Code or Anthropic's API with console API keys.
- Active Claude Pro or Claude Max subscription
- Python 3.8+
- pip
- Virtual Environment Setup (Recommended)
python -m venv venv- Install:
venv/Scripts/Activate.ps1
pip install -r requirements.txt- Configure (optional):
cp config.example.json config.json- Run:
python cli.py- Authenticate:
- Select option 2 (Login)
- Browser opens automatically
- Complete login at claude.ai
- Copy the authorization code
- Paste in terminal
- Start proxy:
- Select option 1 (Start Proxy Server)
- Server runs at
http://127.0.0.1:8081
Configure your OpenAI-compatible client (Cline, Roo, etc.):
- Base URL:
http://127.0.0.1:8081/v1 - API Key: Any non-empty string (e.g., "dummy")
- Model:
claude-sonnet-4-0(or any available Claude model)
claude-opus-4-1- Opus 4.1 (200k context, 32k output)claude-sonnet-4-0- Sonnet 4 (200k context, 64k output) [DEFAULT]claude-3-7-sonnet-latest- Sonnet 3.7 (200k context, 64k output)claude-3-5-sonnet-latest- Sonnet 3.5 (200k context, 8k output)- See proxy output for full model list
- Environment variables (highest)
- config.json file
- Built-in defaults (lowest)
MIT License - see LICENSE file
This software is provided for educational purposes only. Users assume all risks.
