Prerequisites
Before installing Claude Code Copilot, ensure you have the following:GitHub Copilot subscription
Active Copilot subscription (Individual, Business, or Enterprise)
Node.js 18+
Runtime environment for the proxy server
Claude Code CLI
Anthropic’s official CLI tool
Docker (optional)
For running the proxy as a persistent container
No Anthropic API key needed — This proxy uses your existing GitHub Copilot subscription to access Claude models.
System requirements
- Operating system: macOS, Linux, or Windows (with WSL recommended)
- Memory: Minimum 512MB RAM for the proxy server
- Network: Internet connection for GitHub authentication and Copilot API access
- Port availability: Port 18080 (default) must be available
Installation steps
Install Node.js
Install Claude Code CLI
Install Anthropic’s official Claude Code command-line tool globally:Verify the installation:
Authenticate with GitHub
Run the authentication script to connect your GitHub Copilot account:This will open a browser window for GitHub OAuth authentication. See the Authentication guide for detailed instructions.
Verification
Once installation is complete, verify that everything is working:-
Check proxy server status:
-
Launch Claude Code:
-
Select a model:
Inside Claude Code, type
/modelto see available Claude models
If you see the model selection menu, your installation is successful!
Environment variables
You can customize the proxy behavior with these environment variables:| Variable | Default | Description |
|---|---|---|
COPILOT_PROXY_PORT | 18080 | Port for the local proxy server |
COPILOT_AUTH_FILE | ~/.claude-copilot-auth.json | Path to saved OAuth token |
BRAVE_API_KEY | (none) | Brave Search API key for enhanced web search |
WEB_SEARCH_MAX_RESULTS | 5 | Maximum search results per query |
NPM scripts
The project includes convenient npm scripts for common tasks:package.json
Next steps
Authentication
Learn about the GitHub OAuth flow and credential storage
Docker setup
Run the proxy as a persistent Docker container