Someone finally packet-sniffed Grok's CLI. Here's the receipt.

4 min read 1 source clear_take
├── "The Grok Build CLI's telemetry exceeds what its marketing implies, and users deserve to know"
│  ├── cereblab (GitHub Gist (via Hacker News), 146 pts) → read

Cereblab published a forensic inventory of the CLI's network traffic showing it transmits file paths, prompt/response envelopes, and correlatable session identifiers through a telemetry channel. Their point isn't that the traffic is malicious, but that the CLI is designed to see your working directory and phone home about it — a fact not disclosed in the product's marketing copy.

│  └── top10.dev editorial (top10.dev) → read below

Argues that AI dev CLIs run with debugger-level trust — inside your terminal, in your source directory, with file-read and command-execute capability — but users extend that trust based on a landing page rather than a verifiable telemetry manifest. The vacuum of vendor transparency is what makes these community forensic writeups keep going viral.

├── "This is normal behavior for hosted-model CLIs and the alarm is overblown"
│  └── @HN commenters (defenders) (Hacker News) → view

A cluster of top comments argues that every CLI talking to a hosted model necessarily needs auth, inference, and telemetry channels, and that Grok's traffic pattern is unremarkable compared to Claude Code, Cursor, or Codex CLI. Their framing: 'this is how all these tools work, calm down.'

├── "The scandal isn't the telemetry — it's that nobody knew until someone packet-captured it"
│  └── @HN commenters (transparency camp) (Hacker News) → view

Counter-argues that even if the traffic is 'normal,' the fact that discovering it requires tcpdump is the actual problem. Vendors should ship signed, versioned telemetry manifests that engineers can diff between releases, not force the community to reverse-engineer network behavior post-install.

└── "AI dev tools warrant debugger-level scrutiny, not chatbot-level trust"
  └── top10.dev editorial (top10.dev) → read below

Frames the threat model explicitly: these CLIs execute in your shell, in your source directory, with the ability to read files and run commands. That's the trust surface of a debugger, not a chatbot — and the recurring pattern of Wireshark writeups (Claude Code, Cursor, Codex, now Grok) shows the industry hasn't caught up to what users are actually consenting to.

What happened

A GitHub user going by `cereblab` published a plain-English inventory of what xAI's newly-shipped Grok Build CLI actually sends over the wire. Not a rant, not a takedown — a gist with endpoints, header names, request shapes, and the surrounding behavior. It landed on the Hacker News front page and pulled 146 points, which for a single-author forensic writeup is a small mountain.

The contents themselves are the sort of thing you'd expect from any CLI that talks to a hosted model: an auth channel, a model-inference channel, and — this is where readers started leaning in — a telemetry channel that ships more context than the marketing copy implies. File paths. Prompt/response envelopes. Session identifiers with enough shape to correlate across runs. The exact fields matter less than the pattern: the CLI is designed to see your working directory, and it phones home about what it sees.

xAI hasn't formally responded as of publish. The comment threads split cleanly between "this is how all these tools work, calm down" and "the problem is that none of you knew until someone tcpdump'd it."

Why it matters

This is now the fourth or fifth time in a year that a community member has run Wireshark on an AI dev tool and turned the output into a viral post. Claude Code got the treatment. Cursor got the treatment. OpenAI's Codex CLI got the treatment. Now Grok. The genre exists because the vendors haven't shipped a credible alternative to it — a signed, versioned telemetry manifest that engineers can diff between releases.

That vacuum is doing real damage. Consider the actual trust surface of any of these tools: they run inside your terminal, with your shell environment, in the directory where your source code lives, with the ability to read files and execute commands. The threat model is closer to a debugger than a chatbot. Users are extending debugger-level trust based on a landing page and a Discord.

The HN top comments make the technical case cleanly: nobody objects to a CLI sending a request ID and a model name. What people object to is discovering, months after adoption, that the CLI has been sending working-directory names, git remote URLs, or truncated file contents as "context enrichment." These are all defensible product decisions in isolation. They stop being defensible when they aren't documented in a place your security team can read. "Telemetry" has become the last unversioned interface in software — the one part of the product that ships without a changelog.

There is also a competitive dimension worth naming. xAI is late to the AI-CLI market. Anthropic's Claude Code and OpenAI's Codex have most of the mindshare, and both have had roughly a year to absorb this exact critique and tighten their defaults. Grok Build shipping in 2026 without a documented network profile isn't a fatal flaw — but it's the kind of unforced error that gives an incumbent an opening to say "we don't do that" in a keynote. Anthropic already ships an offline mode and a documented list of egress endpoints for Claude Code. If xAI wants a real seat at this table, the answer to `cereblab`'s gist should not be silence.

One more thing worth calling out: the reaction to this gist was overwhelmingly positive toward the author, not defensive on behalf of the vendor. That's a shift. Two years ago, forensic writeups of AI tools got framed as pedantic or paranoid. Now they get upvoted as public goods. The community has decided that auditing AI dev tools is table stakes, and the vendors haven't caught up to the new default.

What this means for your stack

If you have an AI CLI installed on a machine that touches proprietary code, do the audit yourself before your compliance team does it for you. It's a one-afternoon job:

First, run the CLI through a local proxy. `mitmproxy` on `HTTPS_PROXY=http://127.0.0.1:8080` catches almost everything. Do a cold start, a single prompt, a multi-turn session, and a clean exit. Diff what you see against what the vendor documents. If there is no vendor documentation, that itself is a finding.

Second, check the ambient context. Does the CLI read `.env`? Does it walk parent directories looking for a git root? Does it include file paths in error reports? Does it fingerprint your machine (CPU, OS, timezone) beyond what a normal API request would? None of these are automatically disqualifying, but you want to know before a customer asks.

Third, decide your policy. Some teams will land on "AI CLIs only inside sandboxed dev containers with an outbound allowlist." Others will decide the productivity gain justifies looser rules. Either is defensible. What isn't defensible is having no policy and hoping. If your engineers can `curl | sh` an AI CLI onto their laptop tomorrow, you already have a shadow AI problem — you just haven't measured it yet.

For solo devs and small teams: at minimum, know which of your CLIs support an offline or air-gapped mode, and know what the environment variable is. Claude Code has one. Cursor's rules-based mode limits egress. Codex has documented endpoints. Grok's story here is still being written by users, not by xAI.

Looking ahead

The next twelve months will decide whether AI dev tools converge on something like a `security.txt` for telemetry — a machine-readable manifest of what each version sends, versioned in the release notes and diffable in CI. The demand signal is now unmistakable: users are willing to reverse-engineer these tools and publish the results whether the vendors cooperate or not. The vendors who get in front of this will earn a real trust moat. The ones who keep shipping opaque CLIs will keep waking up to gists with 146 upvotes. `cereblab`'s writeup is a gift to xAI, if they choose to read it that way.

Hacker News 496 pts 185 comments

What xAI's Grok Build CLI Actually Sends to xAI

→ read on Hacker News
kordlessagain · Hacker News

Mitigation for use: ``` export GROK_TELEMETRY_TRACE_UPLOAD=0 export GROK_TELEMETRY_ENABLED=0 # or config file with [telemetry] trace_upload = false, [harness] disable_codebase_upload = true ``` The practical takeaway for users: your entire codebase leaves (uploaded) your machine unencrypted on each

phaseleza · Hacker News

I always separate the coding tools from LLM providers, and use bubblewrap to sandbox the coding tools so they:1. Can only read the working project directory, with .git read-only and sensitive directories hidden (mounted as empty directories).2. Have an isolated network namespace; they can only acces

gitgud · Hacker News

This is one of the reasons why native proprietary coding agent runners like claude-code, codex, grok-build etc are so dangerous for privacy… you just don’t know what “secret sauce” they’ll add in the next update…It’s much safer to use something like opencode and use models via their API… however, th

freakynit · Hacker News

"It uploads the whole repository — every tracked file's content plus git history — independent of what the agent reads"Holy cow!!!! I mean I kinda expected Elon would do something like this to try to catch-up.. but this is extremely concerning.This is precisely the reason, even though

j_bum · Hacker News

I wish a human would’ve written the overview.Nonetheless, this is disturbing.

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.