Skip to content

running-claude-code-via-litellm-copilot

Route Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic API spend.

— (0 ratings) 13 downloads xixu-me
$ npx skills add https://github.com/xixu-me/skills --skill running-claude-code-via-litellm-copilot

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Route Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic API spend.

  • Advanced workaround (not officially GitHub-endorsed) that intercepts Claude Code's Anthropic-shaped requests and forwards them through LiteLLM to GitHub Copilot
  • Requires local config.yaml setup for LiteLLM with GitHub Copilot provider routing, plus four environment variables (ANTHROPIC_BASE_URL, ANTHROPIC_MODEL, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)
  • Handles GitHub device authorization flow automatically on first request and supports persistent or temporary configuration via shell exports or ~/.claude/settings.json merging
  • Includes troubleshooting for model mismatches, missing requests, GitHub 401/403 errors, and port conflicts; optional header overrides for edge cases

Overview

Use this skill for the specific workaround where Claude Code keeps its Anthropic-shaped client behavior, but the actual backend traffic is sent to a local LiteLLM proxy and then forwarded to GitHub Copilot.

Treat this as an advanced workaround, not an officially guaranteed GitHub workflow. Help the user succeed technically, but do not promise GitHub support, policy approval, or long-term compatibility.

This skill is guidance-first but execution-aware:

  • If the user wants explanation only, provide the smallest correct set of files, commands, and checks.
  • If the user wants real setup work on the current machine, inspect first and adapt commands to the active shell and OS.
  • Pause before persistent edits such as ~/.claude/settings.json or shell profile files.

Read references/doc-verified-notes.md before answering if you need to justify which parts come from the article and which parts were tightened against current LiteLLM docs.

When To Use

Use this skill when the user wants any of the following:


Installs: 13 | GitHub stars: 79 | First seen: Mar 28, 2026

Related skills

New

Coding & dev tools

hyperframes-cli

CLI toolkit for scaffolding, validating, previewing, and rendering HyperFrames video compositions.

New • 1.8M
New

Coding & dev tools

improve-codebase-architecture

Analyze codebases for architectural friction and propose module-deepening refactors as testability improvements.

New • 1.3M
New

Coding & dev tools

tdd

Test-driven development with vertical slices, behavior-focused tests, and incremental red-green-refactor cycles.

New • 1.3M