Claude Max Api Proxy banner
wende wende

Claude Max Api Proxy

AI community

Description

Actively maintained fork that allows using Claude Code as a model provider via OpenAI compatible protocol

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Max API Proxy

Actively maintained fork of [atalovesyou/claude-max-api-proxy](https://github.com/atalovesyou/claude-max-api-proxy) with OpenClaw integration, improved streaming, and expanded model support.

**Use your existing Claude Code subscription (Pro, Max, or Team) with any OpenAI-compatible client — no separate API costs!**

This proxy wraps the Claude Code CLI as a subprocess and exposes an OpenAI-compatible HTTP API, allowing tools like OpenClaw, Continue.dev, or any OpenAI-compatible client to use your Claude subscription instead of paying per-API-call. It works with any subscription tier that Claude Code itself supports — Pro, Max, or Team — not just Max.

Why This Exists

Approach Cost Limitation
Claude API ~$15/M input, ~$75/M output tokens Pay per use
Claude subscription (Pro/Max/Team) Flat monthly fee OAuth blocked for third-party API use
This Proxy $0 extra (uses your existing subscription) Routes through CLI

Anthropic blocks OAuth tokens from being used directly with third-party API clients. However, the Claude Code CLI *can* use OAuth tokens from any subscription tier. This proxy bridges that gap by wrapping the CLI and exposing a standard API.

How It Works

Your App (OpenClaw, Continue.dev, etc.)
         ↓
    HTTP Request (OpenAI format)
         ↓
   Claude Max API Proxy (this project)
         ↓
   Claude Code CLI (subprocess)
         ↓
   OAuth Token (from your Claude Code subscription)
         ↓
   Anthropic API
         ↓
   Response → OpenAI format → Your App

Features

  • OpenAI-compatible API — Works with any client that supports OpenAI's API format
  • Streaming support — Real-time token streaming via Server-Sent Events
  • Multiple models — Claude Opus, Sonnet, and Haiku with flexible model aliases
  • OpenClaw integration — Automatic tool name mapping and system prompt adaptation
  • Content block handling — Proper text bloc