Claude Max API Proxy
claude-max-api-proxy is a community tool that exposes your Claude Max/Pro subscription as an OpenAI-compatible API endpoint. This allows you to use your subscription with any tool that supports the OpenAI API format.Why Use This?
| Approach | Cost | Best For |
|---|---|---|
| Anthropic API | Pay per token (~75/M output for Opus) | Production apps, high volume |
| Claude Max subscription | $200/month flat | Personal use, development, unlimited usage |
How It Works
- Accepts OpenAI-format requests at
http://localhost:3456/v1/chat/completions - Converts them to Claude Code CLI commands
- Returns responses in OpenAI format (streaming supported)
Installation
Usage
Start the server
Test it
With Moltbot
You can point Moltbot at the proxy as a custom OpenAI-compatible endpoint:Available Models
| Model ID | Maps To |
|---|---|
claude-opus-4 | Claude Opus 4 |
claude-sonnet-4 | Claude Sonnet 4 |
claude-haiku-4 | Claude Haiku 4 |
Auto-Start on macOS
Create a LaunchAgent to run the proxy automatically:Links
- npm: https://www.npmjs.com/package/claude-max-api-proxy
- GitHub: https://github.com/atalovesyou/claude-max-api-proxy
- Issues: https://github.com/atalovesyou/claude-max-api-proxy/issues
Notes
- This is a community tool, not officially supported by Anthropic or Moltbot
- Requires an active Claude Max/Pro subscription with Claude Code CLI authenticated
- The proxy runs locally and does not send data to any third-party servers
- Streaming responses are fully supported
See Also
- Anthropic provider - Native Moltbot integration with Claude setup-token or API keys
- OpenAI provider - For OpenAI/Codex subscriptions