Skip to content

xavernsk/anthropic-claude-max-proxy

Repository files navigation

Anthropic Claude Max Proxy

OpenAI-compatible proxy for Claude Pro/Max subscriptions using OAuth.

SUPPORT MY WORK

Buy Me A Coffee

DISCLAIMER

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.

Prerequisites

  • Active Claude Pro or Claude Max subscription
  • Python 3.8+
  • pip

Quick Start

  1. Virtual Environment Setup (Recommended)
python -m venv venv
  1. Install:
venv/Scripts/Activate.ps1
pip install -r requirements.txt
  1. Configure (optional):
cp config.example.json config.json
  1. Run:
python cli.py
  1. Authenticate:
  • Select option 2 (Login)
  • Browser opens automatically
  • Complete login at claude.ai
  • Copy the authorization code
  • Paste in terminal
  1. Start proxy:
  • Select option 1 (Start Proxy Server)
  • Server runs at http://127.0.0.1:8081

Client Configuration

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)

Available Models

  • 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

Configuration Priority

  1. Environment variables (highest)
  2. config.json file
  3. Built-in defaults (lowest)

License

MIT License - see LICENSE file

This software is provided for educational purposes only. Users assume all risks.

About

OpenAI-compatible proxy for Claude Pro/Max subscriptions using OAuth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages