Claude Code model router

Claude Code Proxy

Lightweight HTTP proxy enabling Claude Code to work with OpenRouter (200+ models), OpenAI Direct (GPT-5), and Ollama (local inference). Full tool support, streaming, thinking blocks.

Install

From source
git clone https://github.com/nielspeter/claude-code-proxy.git

From the README

Claude Code Proxy (Go)

A lightweight HTTP proxy that enables Claude Code to work with OpenAI-compatible API providers including OpenRouter (200+ models), OpenAI Direct (GPT-5 reasoning), and Ollama (free local inference).
⚠️ Early Stage / Beta Software
This project is in active development and has limited production testing. While core functionality works, edge cases and some provider-specific features may have issues. Use with caution in production environments.
Feedback welcome! Please report issues at https://github.com/nielspeter/claude-code-proxy/issues

Features

- ✅ Full Claude Code Compatibility - Complete support for all Claude Code features
  - Tool calling (read, write, edit, glob, grep, bash, etc.)
  - Extended thinking blocks with proper hiding/showing
  - Streaming responses with real-time token tracking
  - Proper SSE event formatting
- ✅ Multiple Provider Support - OpenRouter, OpenAI Direct, and Ollama
  - OpenRouter: 200+ models (GPT, Grok, Gemini, etc.) through single API
  - OpenAI Direct: Native GPT-5 reasoning model support
  - Ollama: Free local inference with DeepSeek-R1, Llama3, Qwen, etc.
- ✅ Adaptive Per-Model Detection - Zero-config provider compatibility
  - Automatically learns which parameters each model supports
  - No hardcoded model patterns - works with any future model/provider
  - Per-model capability caching for instant subsequent requests
- ✅ Pattern-based routing - Auto-detects Claude models and routes to appropriate backend models
- ✅ Zero dependencies - Single ~10MB binary, no runtime needed
- ✅ Daemon mode - Runs in background, serves multiple Claude Code sessions
- ✅ Fast startup - < 10ms cold start
- ✅ Config flexibility - Loads from ~/.claude/proxy.env or .env
- ✅ Passthrough mode - Optional direct proxying to Anthropic API…
Read the full README on GitHub

Details

Language
Go
License
MIT
Last updated
24 November 2025
Topics
aiai-proxyantrophicchatgptclaudeclaude-codegeminigolangllmopenaiopenroutersonnet

FAQ

What is Claude Code Proxy?

Lightweight HTTP proxy enabling Claude Code to work with OpenRouter (200+ models), OpenAI Direct (GPT-5), and Ollama (local inference). Full tool support, streaming, thinking blocks. It is a model router for Claude Code, from nielspeter/claude-code-proxy on GitHub.

How do I install Claude Code Proxy?

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

Is Claude Code Proxy popular?

nielspeter/claude-code-proxy has 39 GitHub stars and 14 forks. It was last updated on 24 November 2025.

More model routers & proxies

Open Code Go Tools

46

ethan-blue/open-code-go-tools

主要为 OpenCode Go 套餐打造的桌面客户端与本地代理:把 Claude Code 和 Codex 接到 OpenCode Go 并查看额度,也支持其他 OpenAI/Anthropic 兼容上游(Anthropic ↔ OpenAI Chat Completions / Responses 协议互转)。

Model routers & proxies

CC Proxy Detector

47

zxc123aa/cc-proxy-detector

Detect Claude Code proxy backend origin (Anthropic / Bedrock Kiro / Vertex AI) | 检测 Claude Code 中转站真实后端来源,多维指纹 + ratelimit 动态验证 + 防伪装识别

Model routers & proxies

Security Harness

42

dmdhrumilmistry/security-harness

A multi-agent application-security review harness for Claude Code (and, later, other AI agents). One router skill dispatches to a full offensive-security pipeline that maps a codebase, hunts vulnerabilities with a per-class knowledge base, chains findings into escalations, verifies real impact, and reports to README/JSON/SARIF/doc/PDF.

Model routers & proxies/plugin install11

Chat2claude

41

mingzitaichangduozaishuhoumian/chat2claude

Local ChatGPT/Codex session adapter for Claude Code, OpenAI-compatible APIs and GPT Image, with a browser admin console.

Model routers & proxies

Claude Code Via Antigravity

47

SovranAMR/claude-code-via-antigravity

Use Claude Code CLI (Opus 4.6, Sonnet 4.5) for free via your Google Antigravity/Code Assist subscription. No Anthropic API key needed. Works on Linux, macOS, and Windows.

Model routers & proxies

Claude Slim

44

iops-leo/claude-slim

Audit and shrink your Claude Code startup context. Measures what every skill, plugin, agent, and memory file costs in the system prompt, then reversibly disables the dead weight. No proxy, no compression.

Model routers & proxies/plugin install

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