v1.4.0
AgentGate 1.4.0 — Run Claude Code on your Copilot subscription / 用 Copilot 订阅跑 Claude Code
What's new
- Use your GitHub Copilot subscription as a provider. A new
copilotprovider type lets you run Claude Code / Codex on a Copilot Pro / Business subscription — no separate Anthropic API needed. Paste agho_token and it's auto-detected; credentials are exchanged and renewed for you (hash-cached, never stored in plaintext), and agent follow-up / compaction requests are taggedx-initiator: agentso they don't burn your premium-request quota.⚠️ Using a Copilot subscription outside official clients is a GitHub ToS gray area; the feature is entirely optional — see the README risk note. - Windows clients now fully supported. Running-client detection, automatic Codex restart after applying config, and Claude Desktop integration are all implemented on Windows (previously macOS-only).
- Smarter Claude thinking and caching. Thinking turns on whenever the target Claude model supports it, prompt-cache breakpoints are now injected on the direct Anthropic path too (savings show up in the cost dashboard), and a configurable circuit-breaker threshold (
AGENTGATE_CB_FAILURE_THRESHOLD) keeps the occasional blip from tripping a healthy provider. - Clearer errors when a session is polluted. Leftover truncated tool arguments that used to cause a raw upstream 400 now become an actionable "start a new session / upgrade" hint.
本次更新
- 把 GitHub Copilot 订阅当 Provider 用。 新增
copilotProvider 类型,可用 Copilot Pro / Business 订阅跑 Claude Code / Codex,无需单独的 Anthropic API。粘贴gho_token 自动识别为 Copilot;凭证自动换取并续期(hash 缓存、不落明文),工具续写 / 历史压缩请求自动标记x-initiator: agent,不消耗 premium 请求额度。⚠️ 在官方客户端之外使用 Copilot 订阅属 GitHub ToS 灰色地带,功能完全可选,详见 README 风险声明。 - Windows 客户端集成补齐。 运行中客户端检测、应用配置后自动重启 Codex、Claude Desktop 集成全部补上 Windows 实现(此前仅 macOS)。
- Claude 思考与缓存更聪明。 转换到支持思考的 Claude 模型时"支持就开",prompt cache 断点也注入直通路径(省的钱直接体现在成本仪表盘),熔断阈值可配(
AGENTGATE_CB_FAILURE_THRESHOLD),避免偶发抖动误伤健康 provider。 - 会话污染时报错更清楚。 历史残留的截断工具参数原本会导致上游裸 400,现改写为"开新会话 / 升级"的可操作提示。
Why it matters / 为什么重要
The headline is Copilot-as-provider: a large existing subscription base can now run Claude Code without a separate API spend, while full Windows support widens the install base. 本版本的核心卖点是 Copilot 即 Provider:庞大的 Copilot 订阅用户可以无需额外 API 支出就跑 Claude Code,配合完整 Windows 支持进一步扩大可安装人群。
Full changelog / 完整更新
See CHANGELOG.md for the full itemized list.