PcapAnalyzer is a free, Apache-2.0 packet capture analyzer you run on your own machine. You upload a .pcap or .pcapng file, and 27 detectors flag problems such as firewall blocks, retransmissions, DNS failures, PMTUD black holes and cleartext logins, each with a severity and a suggested next step. For agencies and small ops teams who get a "the network is slow" ticket and no networking specialist, that is an appealing shortcut.

The sharpest caveat: the optional AI investigation uses your own Anthropic API key, and the project's own README calls the tool a beta tested on synthetic fixtures and public sample captures. Treat its output as a lead to confirm, not a diagnosis.

What the project says it does

The PcapAnalyzer repository describes a tool built around the pitch "find the network fault in seconds, not hours." You upload a capture (gzip is accepted too), and it reports what is failing, why, and what to check next. Captures stay on your own network, according to the README.

The 27 detectors are grouped by area:

  • TCP: firewall blocks (SYN followed by RST), retransmissions, duplicate ACKs, loss and reordering, zero and full windows, resets after the handshake, slow handshakes.
  • Path: PMTUD black holes, low MSS, IP fragmentation, ICMP errors, routing loops.
  • Name services: unanswered or slow DNS, SERVFAIL, NXDOMAIN bursts.
  • Applications: HTTP 4xx/5xx and slow responses, TLS alerts, and legacy SSL 3.0 / TLS 1.0 / 1.1.
  • Tunnels: IPsec, WireGuard, OpenVPN, GRE, L2TP and Teredo.
  • Security: port scans and sweeps, cleartext logins over FTP, POP3, IMAP, SMTP AUTH and HTTP Basic (the README says credentials are never stored or shown), plus Telnet, SMBv1 and SNMP v1/v2c.

One design choice stands out: "capture quality first." The tool warns when the capture itself limits the result, for example frames duplicated by a mirror port, traffic seen in only one direction, or truncated packets. Anyone who has chased a phantom retransmission problem that turned out to be a SPAN port duplicating frames will see why that matters.

There is also a Wireshark-style layer: a packet list with real Wireshark display filters across the whole capture, colouring, CSV export, expert info, and HTTP, DNS, DHCP and TLS tables. A PDF report, English and Spanish interfaces and light/dark themes round it out.

How the AI part works

The AI investigation is optional. When enabled, a model investigates using tools (real filters, stream detail, statistics) and cites the packets behind each claim. You can then ask follow-up questions. It uses your own Anthropic API key. Without a key, a demo mode runs the same flow with text generated from the analysis, at no cost.

On data handling, the README says the AI only sees what its tools return, which is packet metadata, and packet content only if you switch that on for the session. It says the AI never receives the pcap file itself. While an investigation runs, the capture is kept encrypted, expiring after 60 minutes of inactivity or when you press "Delete capture now."

Setup and the security note you should not skip

The default route is Docker with Docker Compose. The README says that on Windows you should run the script from Git Bash or WSL. The script creates a random access token (shown once, stored in .env), starts the app, and you open http://localhost:8080 and paste the token into the "API token" field. A "Try the sample capture" button exists, and a hosted demo is linked from the README.

The manual route needs Python 3.9+, Node 20+ and tshark. The backend is FastAPI, and Wireshark's tshark runs as a separate program that is not distributed with the tool.

The app listens on 127.0.0.1 only. The README warns not to expose it on a network without an authenticated reverse proxy, because the API can spend your AI account. That is the sentence to remember. If someone on your team puts this on a shared VM with a public port "just for the week," they have handed strangers a path to your Anthropic bill.

Why this matters for a small stack

Small teams usually handle network faults in one of two ways: someone who knows Wireshark spends an afternoon on it, or the team guesses and restarts things. A tool that turns a capture into a ranked list of suspects with next steps sits in the gap between those.

Three practical angles:

Triage speed. Many of the detectors target problems that are common and annoying: MTU black holes behind a VPN, a firewall silently resetting connections, DNS timeouts that look like application slowness. If the detectors are accurate, a junior engineer gets to the right question faster.

Data residency. Captures often contain customer traffic. A local-first tool avoids uploading them to a SaaS analyzer, which can matter for client contracts. The README's claim is that analysis happens on your machine. The AI mode changes that picture, which we cover below.

Cost control. The tool is free, and the AI is bring-your-own-key. That means the spend is yours to cap, but it also means you are the one who has to set the cap.

What to do about it

Treat this as a tool to evaluate, not to adopt on day one.

  1. Run the hosted demo or sample capture first. The README links a demo that needs no install. It tells you what the output looks like before you commit time.
  2. Test on captures you already understand. Take a capture from an incident you solved last quarter and see whether the detectors find the same cause. The README itself says the most useful feedback is a capture where it misses a problem or flags a false one, so you are doing what the author asks.
  3. Run in Docker on localhost, with the AI off. Get value from the 27 detectors alone before involving an external API.
  4. Anonymise before sharing anything. The README asks users not to attach captures with real credentials or customer data to issues. The same discipline applies inside your team.
  5. If you enable AI, use a dedicated API key with a spend limit. A separate key makes it easy to revoke and to see what the tool costs. Do not reuse the key that powers production features.
  6. Never bind it to a public interface. If a colleague needs remote access, put an authenticated reverse proxy in front, as the README instructs.
  7. Read the AI data path yourself. The code is open. Before enabling AI on sensitive captures, check what the tools actually return to the model.

For context, the established alternative is plain Wireshark or tshark, which is free and has far more maturity and protocol coverage. PcapAnalyzer is not a replacement for that; it is a layer on top that tries to point you at the right packets. If you already have someone fluent in Wireshark, the gain is smaller. If you do not, the gain could be large, with the beta caveat attached.

What the Hacker News discussion adds

The HN thread is small, with around ten comments, but it raises a few useful points.

One commenter said their team at CableLabs built something very similar with more of a proactive network maintenance and automated self-fix angle, demoed it to senior executives at large broadband companies, and it never gained traction. That is a useful reminder that technical fit and adoption are different problems.

Another commenter described a pattern that applies beyond networking: instead of repeatedly feeding raw data files to an LLM to find the same issues, they use LLMs to write "doctor" scripts, then run those deterministic checks against every telemetry file that arrives. That is close to what PcapAnalyzer's detector layer does, with the AI as an optional extra on top, and it is a sensible design for anyone worried about LLM cost and repeatability.

Two questions were practical. One asked whether a uv environment could replace Docker for installation. Another asked what is disclosed when the AI feature is used, and whether it redacts IPs, MACs and payload data in both directions. The thread excerpt we have does not include an answer to either, so they remain open from our reading. Finally, a commenter shared their own similar project, a packet explorer with no login page.

What is still unknown

  • Detector accuracy. The README says testing used synthetic fixtures and public sample captures. There are no published false-positive or false-negative rates in the source we have.
  • AI redaction. The README says the AI sees packet metadata, and content only if enabled. Whether it redacts IPs, MACs or hostnames before they reach the model is not stated in the material we reviewed, and a commenter asked exactly that.
  • Maintenance. It is a beta from a single author account. Whether it will be maintained is not something the source tells us.
  • Non-Docker installs. The README documents a manual route with Python, Node and tshark. Whether uv works is unconfirmed.
  • Scale. The source mentions "limits" in a technical reference but does not give maximum capture sizes in the text we have.

Frequently asked questions

Is PcapAnalyzer free? Yes. The README describes it as free, licensed under Apache 2.0, and available by cloning the repository or downloading from a linked Gumroad page at no cost. The optional AI mode costs whatever your Anthropic API usage costs.

Does my capture leave my network? According to the README, analysis runs on your machine and captures do not leave your network. The AI mode is different in practice: the model only sees what its tools return, mainly packet metadata, but that still goes to an external API, so check it before using sensitive captures.

Can I use it without an Anthropic API key? Yes. All 27 detectors and the Wireshark-style views work without AI. Without a key, a demo mode runs the AI flow with text generated from the analysis rather than from a model.

Is it safe to expose on a shared server? Not as shipped. The app listens on 127.0.0.1 only, and the README says not to expose it without an authenticated reverse proxy, because the API can use your AI account. Keep it local or put real authentication in front.