Community程式設計與開發github.com

xixu-me/running-claude-code-via-litellm-copilot

適用於通過本地 LiteLLM 代理將 Claude Code 路由至 GitHub Copilot,以減少直接使用 Anthropic 的費用、設定 ANTHROPIC_BASE_URL 或 ANTHROPIC_MODEL 覆蓋,或排查 Copilot 代理設定失敗(如模型未找到、無本地流量或 GitHub 401/403 認證錯誤)的情況。

running-claude-code-via-litellm-copilot 是什麼?

此技能針對希望通過本地 LiteLLM 代理(proxy)來路由 Claude Code 的開發者,使其能夠與 GitHub Copilot 搭配使用。主要優勢在於可以顯著降低直接呼叫 Anthropic API 的費用,因為 Claude Code 的請求會先經過本地代理再轉發到 Copilot。技能涵蓋了關鍵配置項的設定,包括如何覆蓋 ANTHROPIC_BASE_URL 和 ANTHROPIC_MODEL 環境變數,以指定代理路徑與模型。此外,它還提供了常見故障的排查指導,例如模型未找到(model-not-found)、代理無法在 localhost 取得流量,或是 GitHub 認證失敗(HTTP 401/403 錯誤)。適用於任何支援 Claude Code 與 LiteLLM 整合的開發環境,能有效簡化代理設定的流程並提升除錯效率。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/xixu-me/skills/tree/main/skills/running-claude-code-via-litellm-copilot

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

running-claude-code-via-litellm-copilot 是做什麼的?

用於將 Claude Code 透過本地 LiteLLM 代理路由至 GitHub Copilot,以降低直接使用 Anthropic 的開銷、設定 ANTHROPIC_BASE_URL 或 ANTHROPIC_MODEL 覆蓋,或排查 Copilot 代理設定失敗(如模型未找到、無本地流量或 GitHub 401/403 認證錯誤)。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

xixu-me/develop-userscripts

Use when building, debugging, packaging, or publishing browser userscripts for Tampermonkey or ScriptCat, including GM APIs, metadata blocks, permission issues, @match/@grant/@connect setup, ScriptCat background or scheduled scripts, UserConfig blocks, or subscription workflows.

xixu-me/github-actions-docs

Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners, reusable workflows, artifacts, caching, secrets, OIDC, deployments, custom actions, or Actions Runner Controller, especially when they need official GitHub documentation, exact links, or docs-grounded YAML guidance.

xixu-me/openclaw-secure-linux-cloud

Use when self-hosting OpenClaw on a cloud server, hardening a remote OpenClaw gateway, choosing between SSH tunneling, Tailscale, or reverse-proxy exposure, or reviewing Podman, pairing, sandboxing, token auth, and tool-permission defaults for a secure personal deployment.

xixu-me/opensource-guide-coach

Use when a user wants guidance on starting, contributing to, growing, governing, funding, securing, or sustaining an open source project, or asks about contributor onboarding, community health, maintainer burnout, code of conduct, metrics, legal basics, or open source project adoption.

xixu-me/readme-i18n

Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.

xixu-me/secure-linux-web-hosting

Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.

xixu-me/skills-cli

Use when users ask to discover, install, list, check, update, remove, back up, restore, sync, or initialize Agent Skills, mention `bunx skills`, `npx skills`, `skills.sh`, or `skills-lock.json`, ask "find a skill for X", or want help extending agent capabilities with installable skills.

xixu-me/tzst

Use when the user needs to create, extract, flatten, list, test, install, script, or troubleshoot `tzst` CLI workflows for `.tzst` or `.tar.zst` archives, including compression levels, streaming mode, extraction filters, conflict resolution, JSON output, or standalone binary setup, even if they describe the archive task without naming `tzst`.

xixu-me/use-my-browser

Use when work depends on the user's live browser session or visible rendered state rather than static fetches, especially for browser debugging contexts or DevTools-selected elements or requests, logged-in dashboards or CMS flows, localhost apps, forms, uploads, downloads, media inspection, DOM or iframe inspection, Shadow DOM, or browser failures that look like soft 404s, auth walls, anti-bot checks, or rate limits.

xixu-me/xdrop

Use 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, provides an Xdrop `/t/:transferId#k=...` link to download and decrypt locally, or needs Xdrop CLI flags such as `--quiet`, `--json`, `--expires-in`, `--output`, or `--api-url`, even if they do not explicitly mention the skill name.

xixu-me/xget

Use when tasks involve Xget URL rewriting, registry/package/container/API acceleration, integrating Xget into Git, download tools, package managers, container builds, AI SDKs, CI/CD, deployment, self-hosting, or adapting commands and config from the live README `Use Cases` section into files, environments, shells, or base URLs.

相關技能