r/OpenSourceeAI • u/m03geek • 5h ago
Project share: Open-source tool that shows what your AI coding tools send and where it goes
A while ago I wondered what Claude Code, Codex, Cursor and Copilot actually send from my machine, and to whom. Answering that meant digging through settings files, environment variables, org-managed policies and vendor docs, and the answer was often "it depends on a flag your admin set that you never saw."
So I built cAInary (the "canary in the coal mine", with AI in the middle).
What it does
It scans your machine and tells you, per tool, what is being tracked or sent:
- π΄ HIGH: your conversations (prompts, responses, transcripts) leave the machine
- π MEDIUM: activity is sent (shell commands, tool calls, file contents)
- π‘ LOW: usage metrics or the vendor's default telemetry
- π΅ OPTED OUT / π’ OK: nothing it can see is being sent
For every finding it shows who turned it on (your organization, you, or the vendor default), the exact config file and key, and a link to the vendor docs. If your company quietly enabled OpenTelemetry export of every prompt, you'll see it, along with the file that did it.
It currently covers Claude (Code and Desktop), ChatGPT & Codex, Cursor, GitHub Copilot, and some device-monitoring software.
How it works
- A CLI (
cainary scan,cainary status,cainary explain <id>) with text or JSON output. It also works in starship, tmux or a Claude Code statusline. - A menu-bar app on macOS and a Qt tray app on Linux. They show a status icon with the worst level and notify you when something new appears or a finding gets worse, for example after a config update.
- The scanner only reads files and never touches the network. I didn't want a privacy tool that phones home. You can only launch yourself otel collector to debug and check what opentelemetry sending, then you obviously do some networking, but only on localhost.
The fun part: seeing the real payload
There's an optional, separate tool, cainary-otel-debug, a tiny OpenTelemetry collector that listens only on localhost. Point Claude Code or Codex at it and you see what their telemetry contains. Values are masked by default, and it flags anything that looks like an email, API key, private key, or words you choose. For people whose org pins telemetry to an HTTPS endpoint, there's a guided "takeover" mode for when you're allowed to inspect it locally.
Tech
The core is in Rust, the macOS app in SwiftUI, and the Linux app in Qt 6/QML. It's licensed GPL-3.0. Signed APT and DNF repos are available for Debian/Ubuntu/Fedora, plus tarballs, cargo install cainary, and mise.
π GitHub: https://github.com/SkeLLLa/cainary
Why I'm posting
This started as a personal itch, and AI tooling changes fast. New tools, new settings and new telemetry flags show up every month. I'd love for it to become something the community keeps sharp. Feel free to explore it, break it, file issues, and send PRs. Good ways to help:
- Support for more AI tools (Windsurf, Zed AI, JetBrains AI, Gemini CLI�)
- Better detection rules, or corrections where I've misread vendor docs
- Packaging (the AUR package is still missing, and Homebrew too)
- UI/UX polish on either platform
Even a "here's what it found on my machine and it surprised me" comment helps. Thanks for reading! π€