Claude Max API Proxy (community)

Claude Max API Proxy (community)

Scope

claude-max-api-proxy is a community tool that exposes your Claude Max/Pro subscription as an OpenAI-compatible API endpoint. It’s useful for personal/dev workflows where you already use Claude Code and want “OpenAI-format” compatibility.

This is not an official Anthropic or Moltbot component.

Why you might use it

  • You already pay for Claude Max/Pro and want to reuse it in tools that only speak “OpenAI API format”.
  • You want a local, OpenAI-compatible endpoint for development (not production).

How it works

Your app/tool → claude-max-api-proxy → Claude Code CLI → Anthropic (subscription auth)
   (OpenAI API)                         (format adapter)

Install

Prereqs:

  • Node.js 20+
  • Claude Code CLI installed and already authenticated
npm install -g claude-max-api-proxy
claude --version

Run and test

Start the server:

claude-max-api

Health and models:

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

Chat completion smoke test:

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

Models

Typical model IDs exposed by the proxy:

  • claude-opus-4
  • claude-sonnet-4
  • claude-haiku-4

Use with Moltbot (OpenAI-compatible endpoint)

Point Moltbot’s OpenAI provider at the local base URL:

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

Links

  • npm: claude-max-api-proxy
  • GitHub: atalovesyou/claude-max-api-proxy

Notes

  • This is a community project; treat it as “best-effort”.
  • It relies on your Claude Code CLI login state on the machine where you run the proxy.

Further reading

  • Anthropic provider: /en/docs/providers/anthropic/
  • OpenAI provider: /en/docs/providers/openai/