Search This Blog

November 09, 2026

Kilobat CLI Network diagnostics for macOS, in your terminal and your AI agent. (By Philip Seifi)

When an API request fails on a Mac, check the path in layers (By Philip Seifi)
An API request that times out does not tell you where the trouble started. The Mac may be offline, DNS may return an unexpected address, a configured proxy may be unavailable, or TCP and TLS may fail on the way to the destination. 

Start with the evidence for each layer before changing settings. I built Kilobat CLI to make that first pass easier. It is a free, GPL-3.0-only macOS command-line tool; the Kilobat desktop app is a separate proprietary product. The CLI needs macOS 14 or later. Its Homebrew installation builds from source and requires Xcode 16 or newer: 

sh brew install seifip/kilobat/kilobat 

kilobat why example.com --json

Replace example.com with a host you are authorized to check. The command makes network requests, so use a public test host or a service you control. Avoid putting credentials or private tokens in the command or in a report you share. 

In one local check of the separately source-built CLI 0.20.0, kilobat why example.com --json completed successfully: Network, Interface, Proxy, DNS, Kilobat rules, IPv4 and Server reported OK, while IPv6 was skipped. That is one observation on one Mac and network, not a benchmark or evidence that IPv6 works. The Homebrew command installs the current version, so its output may differ from that earlier 0.20.0 example. The JSON report breaks the check into steps. Start with the network and interface. Then look at the system proxy and DNS, followed by IPv4 and IPv6 connectivity and the secure connection or request. Read the individual status and detail fields along with the overall verdict: a failure at one stage is a useful next lead, not proof of why the service is broken. For example, if the report identifies an unavailable system proxy, check whether the application is supposed to use that proxy and whether the proxy itself is running. 

A command-line application may also have its own proxy environment variables or settings. Conversely, a successful check from Kilobat does not prove that a different application used the same proxy, resolver, credentials or network path. If DNS looks suspicious, compare the configured resolver with a test for the specific hostname. macOS can use scoped resolvers, and a browser can use its own encrypted DNS. A single resolver or default-route observation is not a complete DNS leak test. With a VPN or proxy, check the path for the application and destination in question rather than assuming all traffic follows the default route. Some Wi-Fi information depends on macOS Location permission, and some history or app-managed data requires the separate desktop app. Controller-specific proxy information requires a reachable, configured Clash-compatible controller. I have checked route and delay queries against Mihomo 1.19.33 in an isolated loopback DIRECT setup; I have not completed a real remote proxy-node or end-to-end OpenClash test. Kilobat CLI source and installation details: https://github.com/seifip/kilobat-cli 

Philip Seifi is the maker of Kilobat, a Mac network diagnostics tool.  


?utm_source=lovemytool&utm_medium=referral&utm_campaign=website_promotion


Popular post in the past 30 days