[UNTESTED] [AgentXaGent/claude-max-api-proxy] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,173 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:3456/v1/chat/completions
http://localhost:3456/v1/models
Source: https://github.com/AgentXaGent/claude-max-api-proxy
# Claude Code CLI Provider
**Use your Claude Max subscription ($200/month) with any OpenAI-compatible client — no separate API costs!**
This provider wraps the Claude Code CLI as a subprocess and exposes an OpenAI-compatible HTTP API, allowing tools like Clawdbot, Continue.dev, or any OpenAI-compatible client to use your Claude Max subscription instead of paying per-API-call.
## Why This Exists
| Approach | Cost | Limitation |
|----------|------|------------|
| Claude API | ~$15/M input, ~$75/M output tokens | Pay per use |
| Claude Max | $200/month flat | OAuth blocked for third-party API use |
| **This Provider** | $0 extra (uses Max 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. This provider bridges that gap by wrapping the CLI and exposing a standard API.
## How It Works
```
Your App (Clawdbot, etc.)
↓
HTTP Request (OpenAI format)
↓
Claude Code CLI Provider (this project)
↓
Claude Code CLI (subprocess)
↓
OAuth Token (from Max 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
- **Session management** — Maintains conversation context
- **Auto-start service** — Optional LaunchAgent for macOS
- **Zero configuration** — Uses existing Claude CLI authentication
- **Secure by design** — Uses spawn() to prevent shell injection
## Prerequisites
1. **Claude Max subscription** ($200/month) — [Subscribe here](https://claude.ai)
2. **Claude Code CLI** installed and authenticated:
```bash
npm install -g @anthropic-ai/claude-code
claude auth login
```
## Installation
```bash
#