xixu-me avatar

Running Claude Code Via Litellm Copilot

Routes Claude Code through a local LiteLLM proxy to hit GitHub Copilot instead of Anthropic's API, cutting direct spend while keeping your existing workflow. Generates the config.yaml with proper github_copilot provider routing, sets up ANTHROPIC_BASE_URL overrides, and walks through GitHub's device auth flow when LiteLLM first connects. Handles the common gotchas like model name mismatches between your ANTHROPIC_MODEL env var and LiteLLM's model_name, plus debugging when requests never reach the proxy or Copilot throws 401s. It's a technical workaround that works but isn't officially blessed by GitHub.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
520.2K
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add xixu-me/skills --skill running-claude-code-via-litellm-copilot --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

Sponsors

Details

Repository
github.com/xixu-me/skills
Categories
Backend & APIs, Git & Pull Requests, AI & Agent Building, Debugging, Marketing & SEO
First seen
Apr 16, 2026

More from xixu-me/skills

All 12
1xixu-me avatarxdropxixu-me/skillsUse this skill when the user wants to send or fetch files through an Xdrop server from the terminal, asks to automate encrypted Xdrop share-link workflows, prov516.8Kskills.sh installs
2pbakaus avatarimpeccablepbakaus/impeccableUse when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise396.9Kskills.sh installs
3neondatabase avatarneon-postgresneondatabase/agent-skillsGuides and best practices for working with Lakebase Postgres, the database behind Neon. Covers setup, connection methods and drivers, pooled vs direct connectio307.3Kskills.sh installs
4doany-ai avatarruncomfy-clidoany-ai/skillsRun any model on RunComfy from the command line. The `runcomfy` CLI is one binary, one auth, hundreds of model endpoints — image generation, image edit, video g274.2Kskills.sh installs
5runcomfy-com avatarruncomfy-cliruncomfy-com/skillsRun any model on RunComfy from the command line. The `runcomfy` CLI is one binary, one auth, hundreds of model endpoints — image generation, image edit, video g274.1Kskills.sh installs
6neondatabase avatarneonneondatabase/agent-skillsOverview of Neon, a complete set of cloud backend primitives for apps and agents, spanning Lakebase Postgres, Auth, the Data API, Object Storage, Compute Functi260.2Kskills.sh installs