Claude Code model router

Claude Proxy

Lightweight proxy that routes Anthropic API billing through Claude Code subscriptions. Zero dependencies, ~150 lines.

Install

From source
git clone https://github.com/John-Rood/claude-proxy.git

From the README

Claude Code Proxy

A lightweight Node.js proxy (~150 lines, zero dependencies) that wraps Anthropic API requests with the Claude Code envelope, routing billing through your Claude Code subscription instead of direct API credits.

What It Does

Setup

That's it. No dependencies to install.

Configuration

config.json:

Usage

Point your Anthropic client at http://127.0.0.1:8082 instead of https://api.anthropic.com. The proxy passes through your API key and adds the Claude Code billing envelope.

Endpoints

Requirements

- Node.js 18+
- A valid Anthropic API key (from an account with Claude Code / Max subscription)

Run as a Service (macOS)

To keep the proxy running persistently, create a launchd plist at ~/Library/LaunchAgents/com.claude-proxy.plist:

Replace /path/to/node with your node binary path (which node) and /path/to/claude-proxy with where you cloned this repo.

The proxy will auto-restart on crash and start on boot.

OpenClaw Skill (Troubleshooting)

This repo includes an OpenClaw skill for automated troubleshooting. If you're using OpenClaw and the proxy stops working, the skill walks your agent through diagnosing and fixing common issues (baseUrl overwrites, auth token cycling, Keychain sync, etc).

Install the skill

Copy the skill folder into your OpenClaw workspace:

Or if your workspace is in a different location:

That's it — OpenClaw will automatically detect the skill and use it when proxy-related issues come up.

License

MIT
Read the full README on GitHub

Details

Language
JavaScript
Last updated
11 April 2026
Topics
anthropicbillingclaude-codeproxy

FAQ

What is Claude Proxy?

Lightweight proxy that routes Anthropic API billing through Claude Code subscriptions. Zero dependencies, ~150 lines. It is a model router for Claude Code, from John-Rood/claude-proxy on GitHub.

How do I install Claude Proxy?

Clone John-Rood/claude-proxy from GitHub and follow the setup steps in its README.

Is Claude Proxy popular?

John-Rood/claude-proxy has 114 GitHub stars and 3 forks. It was last updated on 11 April 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.