Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot p
1---2name: running-claude-code-via-litellm-copilot3description: Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend…4---56# skills/running-claude-code-via-litellm-copilot/SKILL.md
R
SKILL.mdAgent skill
Transport
File
Status
Listed
SKILL.md
Install
The skill file stays in the publisher's repository.
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
shterminal
1npx skills add xixu-me/skills --skill running-claude-code-via-litellm-copilot -a cursor -y
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot proxy setup failures such as model-not-found, no localhost traffic, or GitHub 401/403 auth errors.
How do I install running-claude-code-via-litellm-copilot?
Download skills/running-claude-code-via-litellm-copilot/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
Where does running-claude-code-via-litellm-copilot live?
The publisher keeps it at https://github.com/xixu-me/skills.
Which agents can use running-claude-code-via-litellm-copilot?
Claude, Cursor, Codex, and Grok Build can read a SKILL.md you add from the publisher's repository. Grok Bot installs it when you send the skill's GitHub folder link in a chat.
From the publisher
SKILL.md
name
running-claude-code-via-litellm-copilot
description
Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot proxy setup failures such as model-not-found, no localhost traffic, or GitHub 401/403 auth errors.
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:
Claude Code to run against GitHub Copilot through LiteLLM
lower direct Anthropic API spending while keeping the Claude Code workflow
a local config.yaml for LiteLLM's GitHub Copilot provider
ANTHROPIC_BASE_URL, ANTHROPIC_MODEL, or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC setup
help understanding GitHub device authorization during LiteLLM startup
help with model mismatch, 404-like errors, no requests reaching LiteLLM, or GitHub 401/403 failures
Do not use this skill for:
deciding whether the workaround is allowed by GitHub terms
general LiteLLM architecture unrelated to Claude Code plus Copilot
direct Anthropic API setup with no Copilot or LiteLLM component
Core Rules
Lead with a short compliance caveat.
Explain that this is a workaround based on a local proxy path, not a GitHub-promoted workflow, and the user must evaluate the latest Copilot terms and limits for themselves.
Prefer the minimum viable path first.
Start with temporary environment variables and a local config.yaml unless the user explicitly wants a persistent setup.
Keep ANTHROPIC_MODEL and LiteLLM model_name identical.
Exact string match matters more than clever explanation.
Treat ANTHROPIC_AUTH_TOKEN as a local placeholder.
Claude Code expects a non-empty value locally, but it is not the GitHub Copilot credential and should not be presented as a reusable secret.
Never overwrite ~/.claude/settings.json wholesale.
Merge only the needed env keys and preserve unrelated settings.
Workflow
1. Preflight
Check these first when the user wants real setup work:
claude --help succeeds
uv --version or pip --version succeeds
the user has GitHub Copilot access
the intended LiteLLM port is available, usually 4000
If the user only wants instructions, state the prerequisites instead of running them.
2. Choose Temporary vs Persistent Setup
Use this rule:
Temporary setup: preferred default for first-time setup, debugging, and low-risk trials
Persistent setup: only when the user explicitly wants the proxy path to apply every time Claude Code starts
For persistent setup, confirm the target file and then merge keys into ~/.claude/settings.json. Do not replace the file contents.
3. Create LiteLLM config.yaml
Start from the article's flow, but keep the provider naming aligned with LiteLLM docs:
Present this as an advanced fallback, not the universal default.
Output Checklist
When answering a real user request with this skill, include:
the brief compliance caveat
the exact config.yaml or the delta to apply
shell-appropriate commands
whether the setup is temporary or persistent
the verification path
the smallest relevant troubleshooting section if something failed
Safety Reminders
Do not state that GitHub officially supports this workaround.
Do not imply that a dummy ANTHROPIC_AUTH_TOKEN is a real Copilot credential.
Do not recommend replacing ~/.claude/settings.json wholesale.
Do not present stale model names as guaranteed current availability; if the user asks for a specific model, keep the github_copilot/<model> pattern and note that Copilot-exposed model availability may change.