Event scanner: what gets sent and what is kept
@databuddy/scan finds user actions in your repository that have no analytics event. See exactly what it would send before it sends anything:
Real requests carry the same data as --dry-run --json, in batches of up to four segments. With your own gateway key they also include the scanner's fixed classification instructions. Before sending, the CLI prints where the code is going and how many files it comes from.
With a folder, it still reads the rest of the repository locally to find existing tracking. It sends that only as event names and file:line references, so actions tracked elsewhere aren't reported as missing.
Check what is sent
Secret detection is a safeguard, not a guarantee. Review --dry-run for repositories with unusual credential formats.
The CLI reads the repository root's .env only for AI_GATEWAY_API_KEY. It checks .env.local, .env.development and .env.production in the root and the working folder for that variable too, only to tell whether a key came from the repository.
Know where it goes
Requests go to Databuddy's scan API at api.databuddy.cc, which forwards them to the Jev model (typesafe-ai/jev) on Vercel AI Gateway. Every call requires zero data retention, which limits routing to providers that don't keep prompts or outputs.
The API holds your code in memory only while it answers. It doesn't write source to logs, databases, caches or error reports, or use it to train models. It returns only classification labels, never generated text.
See what Databuddy records
Nothing recorded contains source code, file paths, repository names, Git remotes or account details. Logs are processed by Axiom and Sazabi.
Keep your code off Databuddy
AI_GATEWAY_API_KEY=your-vercel-gateway-key npx @databuddy/scanWith your own Vercel AI Gateway key, in your shell or the repository's .env, requests go straight to your Vercel account with zero data retention, and Databuddy receives nothing. A key in the repository's .env bills whoever owns it, so the CLI says when the key came from there.
Clear the local cache
Results are cached in ~/.cache/databuddy/scan, or $XDG_CACHE_HOME/databuddy/scan, so unchanged code isn't sent again. The cache holds scanned files with their hashes, tracking calls found, action locations and classifications. Delete the folder to clear it. The scanner never edits your repository, and it's MIT licensed.
Related
How is this guide?