Do you have a Github Copilot subscription sitting around doing nothing? Why not pair it with the Claude Code (claimed by many developers as the best AI coding agent thus far).
A. Using LiteLLM
- Install Python on your local machine
- Setup LiteLLM
- Create a folder for LiteLLM e.g.: litellm
- Create a config.yaml file with the below content in the litellm folder
model_list: - model_name: anthropic/* litellm_params: model: github_copilot/gpt-5-mini extra_headers: {"editor-version": "vscode/1.85.1", "Copilot-Integration-Id": "vscode-chat"} - model_name: anthropic/* litellm_params: model: github_copilot/claude-sonnet-4.5 extra_headers: {"editor-version": "vscode/1.85.1", "Copilot-Integration-Id": "vscode-chat"} - Start the litellm proxy server
litellm --config config.yaml B. Using Copilot API
- First you need to setup GitHub Copilot API proxy
- Run
npm install -g copilot-apito install the API proxy - Run
copilot-api startto start the proxy server
Setup Claude Code
- Now install Claude Code in your local machine
- Run
npm install -g @anthropic-ai/claude-code - Edit the config file
.claude/settings.jsonfor Claude Code to use the LiteLLM or Copilot API proxy server instead of the default Claude subscription which is more expensive - Add this settings into the config file
LiteLLM
{ "env": { "ANTHROPIC_BASE_URL": "http://0.0.0.0:4000", "ANTHROPIC_AUTH_TOKEN": "sk-litellm-static-key", "ANTHROPIC_MODEL": "github_copilot/claude-sonnet-4.5", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "github_copilot/gpt-5-mini", "DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1" } } Copilot API
{ "env": { "ANTHROPIC_BASE_URL": "http://localhost:4141", "ANTHROPIC_AUTH_TOKEN": "sk-dummy", "ANTHROPIC_MODEL": "claude-sonnet-4.5", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "gpt-5-mini", "DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1" } } Start your Claude Code and enjoy coding!



Top comments (0)