跳到主要內容

Grok Build 開源:xAI 資安風波後公開百萬行編碼代理 | Grok Build Goes Open Source After xAI Privacy Scandal

By Kit 小克 | AI Tool Observer | 2026-07-25

🇹🇼 Grok Build 開源:xAI 資安風波後公開百萬行編碼代理

Grok Build 是 xAI 旗下的終端機 AI 編碼代理,今年 5 月先以邀請制測試版限量開放,直到 2026 年 7 月 15 日才正式全面開源,把整套用 Rust 打造的代理迴圈、檔案編輯工具、終端機介面(TUI)與外掛系統一次公開到 GitHub。但這次開源背後藏著一段不太光彩的插曲:資安研究人員先前發現,早期版本的 Grok Build 會把使用者完整的程式碼庫(包含私有資料)在未取得明確同意的情況下同步到 Google Cloud 伺服器。xAI 選在爭議延燒之際開源 Grok Build,某種程度上是用「透明」來滅火。

Grok Build 是什麼?

Grok Build 是一套跑在終端機裡的 AI 編碼代理,能讀懂整個專案、自動編輯檔案、執行 shell 指令、上網查資料,還能管理長時間執行的任務。它背後搭載的是 xAI 最新旗艦模型 Grok 4.5,一顆 1.5 兆參數的 MoE 模型,主打賣點不是跑分多高,而是「省 token」——處理同樣的 SWE-bench Pro 任務,Grok 4.5 平均只用約 1.6 萬個輸出 token,對比 Claude Opus 4.8 的 6.7 萬個,差距超過 4 倍。

為什麼突然開源?

直接導火線是隱私爭議。研究人員發現舊版 Grok Build 會把整個程式碼庫悄悄傳到 Google Cloud,使用者並不知情,甚至可能外洩 SSH 金鑰之類的敏感資訊。與其低調修補,xAI 選擇把超過百萬行的 Rust 原始碼全部公開,讓任何人都能檢視程式在做什麼,甚至自行編譯後接上自架的推論伺服器,把雲端這一環從流程裡整個拿掉。

Grok Build 開源後能怎麼用?

  • 本機自架:編譯後可指向自己的推論後端,不必把程式碼傳到 xAI 或任何第三方雲端
  • 可擴充架構:內建 skills、plugins、hooks、MCP 伺服器與 subagent 支援,跟 Claude Code、Gemini CLI 走的是同一套「代理生態系」邏輯
  • 用量重置:開源同時,xAI 也把所有使用者的用量上限重新歸零

值得注意的風險是什麼?

開源不等於沒有風險。代理工具能直接執行 shell 指令、改寫檔案,一旦串接的模型或外掛來源不受信任,潛在攻擊面比單純聊天機器人大得多。建議先在沙箱或測試專案跑過一輪,搞清楚它會碰哪些檔案、送出哪些網路請求,再拿去接正式專案。

對常駐終端機工作流的開發者來說,Grok Build 開源代表又多一個可以自己接模型、自己審查程式碼行為的選項,尤其是本來就在意資料主權的團隊。但它也提醒一件事:AI 編碼代理的權限越大,資安審查就越不能省。好不好用,試了才知道。


🇺🇸 Grok Build Goes Open Source After xAI Privacy Scandal

Grok Build, xAI's terminal-based AI coding agent, quietly launched as an invite-only beta in May 2026 and went fully open source on July 15, 2026 — putting its entire Rust-built agent loop, file-editing tools, terminal UI, and plugin system on GitHub. The timing isn't a coincidence: security researchers had found that earlier versions of Grok Build were syncing users' entire codebases, including private data, to Google Cloud servers without clear consent. Open-sourcing the tool mid-controversy reads as xAI using transparency to put out a fire it started.

What Is Grok Build?

Grok Build is a terminal-native AI coding agent that reads an entire codebase, edits files, executes shell commands, searches the web, and manages long-running tasks. It runs on xAI's flagship Grok 4.5, a 1.5-trillion-parameter MoE model whose main pitch isn't raw benchmark scores but token efficiency: on SWE-bench Pro tasks, Grok 4.5 averages roughly 16,000 output tokens versus about 67,000 for Claude Opus 4.8 on the same work — a 4x-plus gap.

Why Open Source It Now?

The trigger was the privacy fallout. Researchers found older Grok Build builds silently uploading full repositories — and potentially sensitive material like SSH keys — to Google Cloud without user knowledge. Instead of a quiet patch, xAI published over a million lines of Rust source, letting anyone inspect exactly what the agent does, compile it themselves, and point it at a self-hosted inference endpoint — cutting the cloud out of the loop entirely.

What Can You Do With Open-Source Grok Build?

  • Self-hosted inference: compile locally and connect your own backend, no code has to touch xAI or any third-party cloud
  • Extensible by design: built-in support for skills, plugins, hooks, MCP servers, and subagents — the same "agent ecosystem" playbook as Claude Code and Gemini CLI
  • Usage reset: xAI reset rate limits for all users alongside the open-source release

What Should You Watch Out For?

Open source doesn't mean risk-free. A coding agent that can run shell commands and rewrite files has a much bigger attack surface than a chatbot, especially if you plug in untrusted models or extensions. Run it in a sandbox or throwaway project first, and watch exactly which files it touches and which network calls it makes before pointing it at anything real.

For developers already living in the terminal, an open Grok Build means one more option for teams that care about data sovereignty and want to audit agent behavior themselves. It's also a reminder that the more permissions an AI coding agent gets, the less you can skip the security review. 好不好用,試了才知道 — you won't know until you try it yourself.

Sources / 資料來源

常見問題 FAQ

Grok Build 是免費的嗎?

開源版本可自行編譯並接上自架的推論伺服器,成本取決於你用的模型;若改用 xAI 官方 API 或雲端服務,仍依用量計費。

Grok Build 和 Claude Code、Gemini CLI 有什麼差別?

三者都是終端機編碼代理,差別主要在底層模型與生態系,Grok Build 主打搭配 Grok 4.5 的省 token 特性,且原始碼完全公開可自行修改與自架。

之前的資安疑慮解決了嗎?

開源讓外界能檢視程式碼實際在做什麼,但只有真正改用自架推論後端,才能避免程式碼再被同步到第三方雲端,單純開源不代表舊版行為已完全停用。

一般開發者現在該怎麼用 Grok Build?

建議先在沙箱或測試專案跑過一輪,觀察它會存取哪些檔案、送出哪些網路請求,確認風險可控後再用在正式專案。

延伸閱讀 / Related Articles


AI 工具觀察站 — 每日精選 AI Agent 與工具趨勢
AI Tool Observer — Daily curated AI Agent & tool trends

留言

這個網誌中的熱門文章

Cursor vs GitHub Copilot vs Claude Code:AI 程式助手大比拼 | AI Coding Assistants Compared: Cursor vs GitHub Copilot vs Claude Code

Stanford 研究登上《Science》:11 個 AI 模型有 47% 機率說你對,即使你錯了 | Stanford Study in Science: AI Models Validate Harmful Behavior 47% of the Time — Sycophancy Is a Real Problem

Claude Code 實測:AI 幫你寫程式到底行不行? | Claude Code Review: Can AI Really Code for You?