Back
43/65
Lesson 43
6 min
RANO: Network Observer
Monitor and debug AI CLI network traffic
Ready to level up?
Mark complete to track your learning progress.
Monitor and debug AI CLI network traffic
Mark complete to track your learning progress.
See which endpoints your AI CLIs and their child processes connect to, without a proxy or code changes.
RANO is a network observer purpose-built for AI coding CLIs. It polls /proc (or macOS libproc) to map the sockets held by Claude Code, Codex CLI, Gemini CLI and their child processes to a PID and a provider. It is not a proxy and never sees request or response bodies.
When agents behave unexpectedly, RANO shows which endpoints they connect to, how often they reconnect, and which process or subprocess holds each socket.
Polls /proc or libproc
Top providers, domains and IPs
Provider tagging per socket
report, diff and CSV/JSONL export
Socket Observer
Step through scenarios to see which sockets RANO attributes to which process, and the commands that surface them (simulated; RANO observes and reports, it never blocks)
With no flags, RANO polls for processes matching claude, codex and gemini, follows their children, and tags every socket with a provider and remote endpoint.
41
5 sockets
4
0
Run it in a spare terminal while your agents work.
--pattern, --pid or --exclude-pattern to change targets.Each run is logged to SQLite (observer.sqlite by default), so you can summarize, export, and compare sessions afterward.
# Summarize the latest session (providers, top domains/IPs)rano report --latest# Last 24 hours as JSONrano report --since 24h --json# Export one provider's eventsrano export --format csv --provider anthropic > anthropic.csv# Compare two sessionsrano diff --old <run-id> --new <run-id>
When an agent behaves unexpectedly, turn on the live checks that match the symptom.
# Live stats including UDP and listening socketsrano --preset verbose# Warn on reconnect stormsrano --pattern claude --retry-threshold 5 --retry-window-ms 30000# Alert on long-lived connectionsrano --alert-duration-ms 30000# Single poll, then exitrano --once --json
--redact-cmdline (or --preset audit) to mask recognizable secrets in argv before they're stored, or --redact-cmdline all to hide command lines entirely.RANO shows which endpoints were hit; CAUT shows the usage and cost
Reconnect storms are a hint to check limits or switch accounts
Watch the sockets of every agent NTM spawns, children included
Track network issues as beads for follow-up