Copilot桥接 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
.NET 10 Native AOT反向代理
Copilot桥接 是一款基于 C# 开发的开源工具,专注于 AI、Copilot、C# 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
.NET 10 Native AOT反向代理
Copilot桥接 是一款基于 C# 开发的开源工具,专注于 AI、Copilot、C# 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/hooyao/copilot-bridge cd copilot-bridge # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 copilot-bridge --help # 基本运行 copilot-bridge [options] <input> # 详细使用说明请查阅文档 # https://github.com/hooyao/copilot-bridge
# copilot-bridge 配置说明 # 查看配置选项 copilot-bridge --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export COPILOT_BRIDGE_CONFIG="/path/to/config.yml"
Use your GitHub Copilot subscription as the model backend for Claude Code and Codex (Gemini CLI is on the roadmap). copilot-bridge is a small reverse proxy that exposes Copilot's LLM API under a vendor-neutral URL per client, so each CLI talks to the bridge as if it were talking to its native provider.
Claude Code (Anthropic shape) ──► /cc/v1/messages ┐
Codex (Responses shape) ──► /codex/responses ├─► copilot-bridge ─► GitHub Copilot
Gemini CLI (Gemini shape) ──► /gemini/v1/... (soon) ┘
It ships as a single ~12 MB native executable with no .NET runtime to install, for win-x64, win-arm64, linux-x64, and osx-arm64.
1. Download the archive for your OS from the Releases page — .zip for Windows, .tar.gz for Linux/macOS, plus an unsigned .pkg installer for macOS. Extract it, keeping copilot-bridge(.exe) and appsettings.json together — the bridge loads its config from its own folder.
macOS only: the binary is unsigned, so the first run is blocked by > Gatekeeper. Clear the quarantine flag once: >xattr -dr com.apple.quarantine ./copilot-bridge(or the install directory > for the.pkg), then run normally.
2. Start it — just double-click copilot-bridge.exe (or run it from a terminal). It starts the server on port 8765. On the first run it prints a GitHub device-code URL and a code:
To authorize, open https://github.com/login/device and enter code: ABCD-1234
Open that URL in your browser, enter the code, and approve. The bridge saves an encrypted token next to the executable, so every later start is silent — no login prompt. (On Windows, double-clicking opens a console window that shows the URL and the live log.)
Requires the .NET 10 SDK plus a C/C++ toolchain for the AOT linker on the OS you're building for (Windows: Visual Studio C++ Build Tools; Linux: clang + zlib1g-dev; macOS: Xcode Command Line Tools). Native AOT cannot cross-compile across operating systems — you build for the OS you're on.
```pwsh
dotnet run --project src/CopilotBridge.Cli -- serve --port 18765
dotnet build CopilotBridge.slnx
The file next to the executable. A few keys worth knowing:
- Server.Port — the port the bridge listens on (default 8765). If you change it, update the base_url in your CLI config to match. - Tracing.Enabled — per-request audit logging, off by default. Turn it on to dump every request/response as JSON under request-traces/ when debugging — but note the files contain your full prompts, so turn it back off afterward. - Pipeline:Detectors:ToolLeakGuard — the tool-call-leak auto-repair (Enabled, Signal). On by default; leave it unless you want to tune the retry signal. - Routing.Locations — optional nginx-style rules to remap a model or tweak headers per request. For example, the shipped rule:
{
"When": { "Model": "gpt-5.5-1m" },
"Use": { "Model": "gpt-5.5" }
}
rewrites a request for gpt-5.5-1m to the real gpt-5.5 (Codex uses the -1m alias to unlock the 1M window client-side; the bridge maps it back). See docs/routing.md for the full match/rewrite syntax.
docs/pipeline-design.md — pipeline architecture specdocs/routing.md — Routing.Locations config referencedocs/copilot-api-research.md — Copilot API protocol notesdocs/codex-implementation-design.md — Codex /responses pathdocs/token-storage.md — token-at-rest threat modeldocs/design.md — original design docdotnet test --filter "Category!=Integration"
dotnet test tests/CopilotBridge.Playground ```
Playground tests carry [Trait("Category","Integration")] so CI skips them. See docs/routing.md for the routing config reference and tests/harness/README.md for the end-to-end harness.
Copilot桥接提供了对GitHub Copilot的LLM API的便捷访问
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
经综合评估,Copilot桥接 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | copilot-bridge |
| Topics | AICopilotC# |
| GitHub | https://github.com/hooyao/copilot-bridge |
| 语言 | C# |
收录时间:2026-07-02 · 更新时间:2026-07-02 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。