bandwhich
$ bandwhich Community Med Riskbandwhich sniffs network interfaces to display live upload/download throughput broken down by local process, connection, and remote address (sudo bandwhich). Supports a --raw stdout mode (-n to skip DNS) for text capture, though it streams continuously without JSON or a built-in sample limit.
brew install bandwhich Sniffs local NIC packets and correlates socket tables with OS PIDs (bandwhich --raw); MCP tools cannot perform live kernel socket-to-packet attribution.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Offers --raw to bypass the TUI for stdout streaming, but streams indefinitely with no finite count flag, no JSON format, and typically needs sudo.
--rawprints unformatted text lines to stdout- No JSON output, no
--countlimit, and requiressudo
Strictly read-only traffic accounting with no disk writes, though packet sniffing requires root/sudo or CAP_NET_RAW/CAP_NET_ADMIN.
- Read-only passive monitor requiring elevated packet-capture privileges
Single Rust binary via brew install bandwhich, cargo install, and GitHub Releases for macOS, Linux, and Windows.
- Cross-platform binary via Homebrew, Cargo, and releases
Uniquely maps live bandwidth to local processes (-p), connections (-c), and remote addresses, though streaming text is noisy for agents.
- Correlates packet throughput to local process names/PIDs
Community Rust project (imsnif/bandwhich) under MIT license.
- Maintained at
imsnif/bandwhich
Concise README and bandwhich --help covering --raw and privilege setup.
- GitHub README and
bandwhich --help
Security, Auth & Guardrails
No authentication credentials required; requires sudo or CAP_NET_RAW/CAP_NET_ADMIN packet capture privileges.
Free, MIT-licensed open-source Rust binary.
# bandwhich Agent Rules - Never run bare `bandwhich` in an agent shell—it launches an infinite curses TUI; always use `--raw` under an explicit timeout. - Confirm user approval before invoking `sudo bandwhich` for packet capture privileges.
Agent-Ready Command Recipes
Safe Read-Only Queries
bandwhich --help
Prints options (--raw, -i, -n, --processes, --connections) without capturing packets.
sudo bandwhich --raw -n -p
Emits plain-text per-process throughput snapshots (--raw -p) without DNS lookups (-n) until terminated.
Strengths for Agents
- + Attributes real-time interface bandwidth directly to local OS processes and remote endpoints.
- +
--rawmode avoids curses TUI rendering when stdout capture is needed.
Caveats & Pitfalls
- ! Streams continuously until killed—lacks a built-in
--countor duration flag and has no JSON output. - ! Requires
sudo(or Linux capabilities) to capture raw packets.