Prerequisites
Before you begin, make sure you have:Active GitHub Copilot subscription (Individual, Business, or Enterprise)
Node.js 18 or higher installed (download here)
Claude Code installed globally:
npm install -g @anthropic-ai/claude-codeInstallation
Clone the repository
Clone the project to your local machine:The project has zero dependencies — no
npm install needed!Authenticate with GitHub
Run the authentication script to connect your GitHub Copilot account:This will:
- Open your browser automatically to GitHub’s device authorization page
- Display a one-time code in your terminal
- Wait for you to enter the code and authorize the application
- Save your access token to
~/.claude-copilot-auth.json
Your token is saved locally and never shared with anyone except GitHub Copilot.
Start Claude Code
Use the launcher script to automatically start the proxy and Claude Code:The launcher will:
- Check if you’re authenticated
- Start the proxy server (via Docker if available, otherwise as a Node.js process)
- Launch Claude Code with the correct environment variables
Verify it’s working
Try a simple prompt to verify everything is working:Alternative: Manual startup
If you prefer to start the proxy manually instead of using the launcher script:Troubleshooting
401 Unauthorized from Copilot
401 Unauthorized from Copilot
EADDRINUSE: address already in use
EADDRINUSE: address already in use
Port 18080 is already in use. Kill the existing process:Or use a different port:
Proxy running but Claude Code shows errors
Proxy running but Claude Code shows errors
Make sure both environment variables are set when launching Claude Code:The
ANTHROPIC_API_KEY can be any non-empty string — the proxy doesn’t validate it.Node.js version too old
Node.js version too old
This project requires Node.js 18 or higher. Check your version:If you’re on an older version, upgrade from nodejs.org.
Claude Code not installed
Claude Code not installed
Install Claude Code globally:Then verify it’s installed:
Next steps
Docker setup
Run the proxy as a persistent container that survives reboots
Web search
Enable web search for up-to-date information
Configuration
Customize ports, auth file location, and more
Architecture
Learn how the proxy translates between APIs