Skip to content
xixu-me avatar

Running Claude Code Via Litellm Copilot

Routes Claude Code through a local LiteLLM proxy to GitHub Copilot, with setup and troubleshooting steps.

CCM score
67 of 100
install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
5
skills.sh installs
526.8K
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the request path from Claude Code to a local LiteLLM proxy, then on to GitHub Copilot models
  • Includes a config.yaml template, environment variable setup for ANTHROPIC_BASE_URL and ANTHROPIC_MODEL, and a merge-safe ~/.claude/settings.json procedure
  • Enforces an exact match between ANTHROPIC_MODEL and the LiteLLM model_name, and treats the auth token as a local placeholder only
  • Designed for advanced users troubleshooting model-not-found errors, missing localhost traffic, or GitHub 401/403 auth failures

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

Details

Repository
github.com/xixu-me/skills
Categories
AI Agents & LLM Apps, DevOps & Cloud
First seen
Apr 16, 2026

Questions

What does the running-claude-code-via-litellm-copilot skill do?

It routes Claude Code through a local LiteLLM proxy that forwards requests to GitHub Copilot, which can reduce direct Anthropic API spending while keeping the Claude Code workflow. It covers configuring ANTHROPIC_BASE_URL and ANTHROPIC_MODEL, writing a LiteLLM config.yaml, and troubleshooting errors such as model-not-found or GitHub 401/403 auth failures.

Who is this skill for and what do I need before using it?

It is for developers who want Claude Code to run against GitHub Copilot through LiteLLM. You need GitHub Copilot access, uv or pip to install LiteLLM with its proxy extra, and an available local port, usually 4000.

How do I install the running-claude-code-via-litellm-copilot skill?

Run npx -y skills add xixu-me/skills --skill running-claude-code-via-litellm-copilot -y in your project. Once installed, the agent can walk you through LiteLLM setup, Claude Code environment variables, and request verification.

Where does this skill rank in its category?

It sits in the AI Agents & LLM Apps category and ranks in the top 10 there, alongside skills such as microsoft-foundry and azure-ai. It stands out by focusing narrowly on routing Claude Code through LiteLLM to GitHub Copilot, with setup and troubleshooting for that path.

More from xixu-me/skills

All 2

Similar to Running Claude Code Via Litellm Copilot

More AI Agents & LLM Apps