Claude Code model router

Claude Code Copilot

Use Claude Code for free via GitHub Copilot — local proxy that translates Anthropic API to Copilot API

Install

From source
git clone https://github.com/samarth777/claude-code-copilot.git

From the README

Claude Code via GitHub Copilot

Use Claude Code for free by routing it through your existing GitHub Copilot subscription.

This project runs a lightweight local proxy that translates between Anthropic's Messages API (which Claude Code speaks) and OpenAI's Chat Completions API (which GitHub Copilot speaks). No Anthropic API key needed — just your Copilot subscription.

Features

- Full API Translation — Anthropic Messages API ↔ OpenAI Chat Completions, including streaming
- Web Search — Emulates Anthropic's web_search_20250305 tool using DuckDuckGo Lite (free) or Brave Search API
- Docker Support — Run the proxy as an always-on container that survives reboots
- Zero Dependencies — Pure Node.js, no npm install needed

Prerequisites

- GitHub account with an active Copilot subscription (Individual, Business, or Enterprise)
- Node.js 18+ (or Docker)
- Claude Code installed (npm install -g @anthropic-ai/claude-code)

Quick Start

1. Clone and authenticate

The auth script opens a GitHub device code flow in your browser. Your token is saved to ~/.claude-copilot-auth.json.

2. Start Claude Code

One-command launcher (recommended):

This auto-starts the proxy (via Docker if available, otherwise as a background process) and launches Claude Code.

Or use Docker directly:

The proxy runs with restart: always — it stays running across reboots.

3. Select your model

Inside Claude Code, use /model to switch between available models (Claude Opus, Sonnet, etc.).

Web Search

The proxy emulates Anthropic's web search tool so Claude Code's WebSearch works automatically.

Search providers:
- Brave Search API — Best results. Set BRAVE_API_KEY env var (free tier: 2000 queries/month at api.search.brave.com)
- DuckDuckGo Lite — Free, no API key needed (default)

How It Works

Claude Code…
Read the full README on GitHub

Details

Language
JavaScript
License
MIT
Last updated
16 February 2026
Topics
claude-codecoding-agentcopilot

FAQ

What is Claude Code Copilot?

Use Claude Code for free via GitHub Copilot — local proxy that translates Anthropic API to Copilot API It is a model router for Claude Code, from samarth777/claude-code-copilot on GitHub.

How do I install Claude Code Copilot?

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

Is Claude Code Copilot popular?

samarth777/claude-code-copilot has 37 GitHub stars and 10 forks. It was last updated on 16 February 2026.

More model routers & proxies

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