Skip to main content

Running Claude Code Via Litellm Copilot

Skill Verified Active

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.

Purpose

Reduce direct Anthropic API spend by routing Claude Code traffic through a local LiteLLM proxy to GitHub Copilot, while providing clear setup and troubleshooting guidance.

Features

  • Route Claude Code traffic to GitHub Copilot via LiteLLM
  • Reduce direct Anthropic API costs
  • Configure LiteLLM `config.yaml` for GitHub Copilot
  • Set `ANTHROPIC_BASE_URL` and `ANTHROPIC_MODEL` overrides
  • Troubleshoot model-not-found and GitHub auth errors

Use Cases

  • When aiming to lower direct Anthropic API spending while using Claude Code.
  • When setting up a local proxy to route Claude Code requests to GitHub Copilot.
  • When troubleshooting model-not-found, no localhost traffic, or GitHub 401/403 errors.
  • When needing to configure LiteLLM provider routes and environment variables for this specific workflow.

Non-Goals

  • Deciding whether this workaround is allowed by GitHub terms of service.
  • General LiteLLM architecture unrelated to Claude Code and GitHub Copilot integration.
  • Direct Anthropic API setup without a LiteLLM or GitHub Copilot component.

Installation

npx skills add xixu-me/skills

Runs the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.

Quality Score

Verified
100 /100
Analyzed about 11 hours ago

Trust Signals

Last commitabout 1 month ago
Stars52
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.