GoatCode – 开源终端 AI 代理,支持提供商故障转移
2 分•作者: Arhan-w•13 天前
GoatCode 是一个仅 85MB 的二进制文件,可在您的终端中运行。它集成了 180 多个大型语言模型(LLM)提供商(或通过 OAuth 集成的现有 Claude/ChatGPT/Gemini/Copilot 订阅),当您的配额在会话中途耗尽时,它会自动重试,然后实时切换到您的备用链——在回合中途切换提供商,并告知您,然后完成回答。不会崩溃,也不会丢失上下文。
v2.1.10 新增功能:
- Anthropic 的提示缓存(长会话可节省高达 90% 的费用;节省金额在 /cost 中显示)
- 每次写入/编辑后显示内联统一 diff
- /rewind — 将对话记录+文件回溯到任何回合
- 并行子代理(最多可同时发出 3 个任务调用)
- /search + goat search — 全文搜索所有已保存的会话
- @file 标签补全,/model sonnet 别名
- 真正的上下文计量器(实际 API token 与模型窗口)
- GOAT MODE(绕过)真正有效:回合中途切换,提示解析为 YES
- Noir 主题:深岩板岩 + 黑绿色界面
安装:npm install -g goatcode-cli(或从发布页面获取静态二进制文件)
仓库:https://github.com/Arhan-w/GoatCode
官网:https://goatcode.vercel.app
查看原文
GoatCode is a single 85 MB binary that runs in your terminal. It brings 180+ LLM providers (or your existing Claude/ChatGPT/Gemini/Copilot subscriptions via OAuth), and when your quota dies mid-session it automatically retries then walks your fallback chain live — switches provider mid-turn, says so, and finishes the answer. No crash, no lost context.<p>What’s new in v2.1.10:
- Prompt caching on Anthropic (up to 90% cheaper long sessions; savings shown in /cost)
- Inline unified diffs after every write/edit
- /rewind — jump transcript + files back to any turn
- Parallel subagents (up to 3 task calls fan out concurrently)
- /search + goat search — full-text across every saved session
- @file Tab completion, /model sonnet aliases
- True context meter (real API tokens vs model window)
- GOAT MODE (bypass) that actually works: mid-turn switch, prompt resolves YES
- Noir theme: deep slate + black-green surfaces<p>Install: npm install -g goatcode-cli (or grab a static binary from the releases page)<p>Repo: https://github.com/Arhan-w/GoatCode
Landing: https://goatcode.vercel.app