# Claude Max API Proxy
Open-source Node.js proxy that exposes a Claude Max subscription as an OpenAI-compatible API. Wraps the [[Claude Code]] CLI as a subprocess and translates between OpenAI and Claude CLI formats. Enables tools like Continue.dev and Clawdbot to use a Max subscription without separate API costs. Written in TypeScript. MIT licensed.
## How it works
1. Client sends OpenAI-formatted HTTP request
2. Proxy converts to Claude CLI format
3. CLI subprocess executes with existing OAuth credentials
4. Response converts back to OpenAI format
5. Results stream to client via Server-Sent Events
## Key features
- OpenAI API compatibility (works with any OpenAI-compatible client)
- Streaming support via SSE
- Multi-model: Opus, Sonnet, Haiku
- Session management for conversation context
- Zero config — uses existing Claude CLI authentication
- Security: Node.js `spawn()` to prevent shell injection, keychain-based credentials
- macOS auto-start via LaunchAgent
## Available models
- `claude-opus-4` → Claude Opus 4.5
- `claude-sonnet-4` → Claude Sonnet 4
- `claude-haiku-4` → Claude Haiku 4
## Prerequisites
- Claude Max subscription ($200/month)
- Claude Code CLI installed and authenticated
## References
- Source code: https://github.com/atalovesyou/claude-max-api-proxy
## Related
- [[Bring Your Own Key (BYOK)]]
- [[Claude Code]]
- [[Anthropic]]
- [[LiteLLM Claude Code Proxy]]