Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active April 4, 2026 05:25
Show Gist options
  • Select an option

  • Save hardyscc/8744ae934f03a76fa587624ad091bbb3 to your computer and use it in GitHub Desktop.

Select an option

Save hardyscc/8744ae934f03a76fa587624ad091bbb3 to your computer and use it in GitHub Desktop.

Claude Code with Copilot API

install

npm install -g copilot-api
copilot-api start --claude-code
npm install -g @anthropic-ai/claude-code

setup

create file ~/.claude/settings.json

{
  "env": {
    "ANTHROPIC_BASE_URL": "http://localhost:4141",
    "ANTHROPIC_API_KEY": "copilot-proxy"
  }
}

start claude code

# open vpn (only first time)
claude

Copilot

npm install -g @github/copilot

copliot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment