← ALL NEWS

SIMON WILLISON · 16 Jul 2026

xAI open-sources Grok CLI tool following privacy controversy

xAI has open-sourced its Grok Build command-line interface tool following a significant privacy controversy. Users discovered that the tool was automatically uploading entire local directories to xAI’s Google Cloud storage, potentially exposing sensitive files like SSH keys and password databases. In response to the backlash, xAI disabled the data upload feature and deleted all previously collected user data.

The company released the full Grok Build codebase under an Apache 2.0 license to restore user trust. The project consists of over 800,000 lines of Rust code, revealing a complex architecture that includes a terminal-based Mermaid diagram renderer and various tools ported from other coding agents. While remnants of the original cloud-uploading functionality remain in the code, they have been explicitly disabled to ensure the tool now operates in a local-first manner.

This shift toward an open-source, local-first model is intended to provide users with greater control over their data and privacy. By allowing developers to run the tool locally with their own inference, xAI aims to differentiate its coding product from other major tools that rely on centralized data retention. The move highlights the technical complexity of modern terminal coding agents and the growing demand for transparency in how AI development tools handle local file systems.

Read the original ↗