running-claude-code-via-litellm-copilot
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.
Security Assessment
Detected risks:
About running-claude-code-via-litellm-copilot
The `running-claude-code-via-litellm-copilot` skill enables users to route Claude Code through a local LiteLLM proxy to GitHub Copilot. This approach allows the Claude-shaped client to maintain its normal behavior while redirecting backend traffic through a local proxy, helping reduce direct Anthropic API spend and providing a workaround for various Copilot setup issues. It addresses common technical challenges such as model-not-found errors, GitHub authentication failures (401/403), and ensuring requests reach the LiteLLM proxy correctly. This skill is intended as an advanced guidance-first solution rather than an officially supported GitHub workflow, focusing on enabling functional integration while respecting user discretion and current GitHub terms.
FAQ
Can I use this skill without having GitHub Copilot access?
No. This skill requires valid GitHub Copilot access since it routes Claude Code traffic through LiteLLM to Copilot. Without Copilot access, the skill cannot function as intended.
What is the difference between temporary and persistent setup?
Temporary setup applies environment variables and local configuration for a single session or trial, ideal for first-time setup or debugging. Persistent setup merges configuration into `~/.claude/settings.json` to apply the proxy path every time Claude Code starts, and should only be done when explicitly requested.
Do I need to match `ANTHROPIC_MODEL` and LiteLLM `model_name` exactly?
Yes. Exact string matching is required for proper routing. Misalignment can cause requests to fail or not reach the LiteLLM proxy correctly.
Will this skill overwrite my existing Claude Code settings?
No. It only merges necessary environment keys into `~/.claude/settings.json` while preserving unrelated settings. Wholesale replacement of settings is not performed.
Can I use this skill to manage general LiteLLM setups unrelated to Copilot?
No. This skill is specifically designed for Claude Code integration with LiteLLM and GitHub Copilot. General LiteLLM architecture or direct Anthropic API setup without Copilot is outside its scope.
Install running-claude-code-via-litellm-copilot
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
xixu-me/skills