← Writing
Project note 1 min read

A dual-format gateway for Claude Max

Point your existing OpenAI- or Anthropic-SDK code at a Claude Max subscription, no rewrites.

Open source/LLM infrastructure/Claude

If you pay for Claude Max, you already have a lot of model access, but most tools and SDKs expect a raw API key, not a subscription. Claude Max Gateway bridges that gap.

It’s a small gateway that speaks both the OpenAI Chat Completions format and the Anthropic Messages format, and routes requests through the Claude Code CLI. An OpenAI SDK app, an Anthropic SDK app, or an agent framework can point at the gateway and just work, backed by your Max plan.

The point is leverage: stop maintaining two integrations and stop paying twice for access you already have. Code’s on GitHub.

Two different connectors joining an adapter that leads to one model endpoint.
A sketch of the gateway accepting two request formats.
  1. OpenAI or Anthropic SDKExisting clients send their usual request format.
  2. Gateway translatesThe local service accepts both formats.
  3. Claude Code CLIRequests use the subscription-backed path described here.
Flowchart: Gateway request path. The article text and linked evidence explain the boundaries in detail.