OpenClawSkills
GitHub
Providers β€’ TutorialHeader.readTime

Claude Max API Proxy

Use Claude Max/Pro subscription as an OpenAI-compatible API endpoint

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 OpenAI API format.

Tutorial.step

Why Use This?

| Approach | Cost | Best For |

| | |

| Anthropic API | Pay per token (~$15/M input, $75/M output for Opus) | Production apps, high volume |

| Claude Max subscription | $200/month flat | Personal use, development, unlimited usage |

If you have a Claude Max subscription and want to use it with OpenAI-compatible tools, this proxy can save you significant money.

Tutorial.step

How It Works

Terminal
Your App β†’ claude-max-api-proxy β†’ Claude Code CLI β†’ Anthropic (via subscription)
     (OpenAI format)              (converts format)      (uses your login)

The proxy:

1. Accepts OpenAI-format requests at ''http://localhost:3456/v1/chat/completions''

2. Converts them to Claude Code CLI commands

3. Returns responses in OpenAI format (streaming supported)

Tutorial.step

Installation

Bash
npm install -g claude-max-api-proxy


claude --version
Tutorial.step

Usage

#

Tutorial.step

Start server

Bash
claude-max-api

#

Tutorial.step

Test it

Bash
curl http://localhost:3456/health


curl http://localhost:3456/v1/models


curl http://localhost:3456/v1/chat/completions   -H "Content-Type: application/json"   -d '{
    "model": "claude-opus-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

#

Tutorial.step

With OpenClaw

You can point OpenClaw at proxy as a custom OpenAI-compatible endpoint:

Json5
{
  env: {
    OPENAI_API_KEY: "not-needed",
    OPENAI_BASE_URL: "http://localhost:3456/v1",
  },
  agents: {
    defaults: {
      model: { primary: "openai/claude-opus-4" },
    },
  },
}
Tutorial.step

Available Models

| Model ID | Maps To |

| |

| ''claude-opus-4'' | Claude Opus 4 |

| ''claude-sonnet-4'' | Claude Sonnet 4 |

| ''claude-haiku-4'' | Claude Haiku 4 |

Tutorial.step

Auto-Start on macOS

Create a LaunchAgent to run the proxy automatically:

Bash
cat > ~/Library/LaunchAgents/com.claude-max-api.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.claude-max-api</string>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <true/>
  <key>ProgramArguments</key>
  <array>
    <string>/usr/local/bin/node</string>
    <string>/usr/local/lib/node_modules/claude-max-api-proxy/dist/server/standalone.js</string>
  </array>
  <key>EnvironmentVariables</key>
  <dict>
    <key>PATH</key>
    <string>/usr/local/bin:/opt/homebrew/bin:~/.local/bin:/usr/bin:/bin</string>
  </dict>
</dict>
</plist>
EOF

launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.claude-max-api.plist
Tutorial.step

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

Tutorial.step

Notes

- This is a community tool, not officially supported by Anthropic or OpenClaw

- 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

Tutorial.step

See Also

- ''Anthropic provider'' - Native OpenClaw integration with Claude setup-token or API keys

- ''OpenAI provider'' - For OpenAI/Codex subscriptions