😂 I opened my laptop to “just try GPT-5 for the weekend” and accidentally built a Wireshark-with-a-copilot that lives in your terminal. Meet pktai! 🚀🤖📦💻 (pronounced as packet eh ay 😂)
It’s a modern Textual TUI (via
@textualizeio an on-device AI (via
@ollama) that lets you:
⚡ Browse packets in a packet‑first UI (left pane) with expandable per‑layer details
🧠 Chat about your capture in plain English (Markdown answers, optional “thought process” expander)
🔎 Use Wireshark‑style display filters and slash commands
🗣️ Say “get me all NGAP packets” and it applies the filter for you (NL → filter)
⌨️ Fly with the keyboard—zero mouse, buttery smooth UX
🛑 Smash “Stop” to cancel in‑flight LLM replies
Under the hood, it’s sneakily smart:
🧭 Agentic Orchestrator routes your intent across Chat, Packet, and Packet‑Filter agents
✅ Validates filters before applying, so you don’t nuke your view
🧩 In‑memory tokenizer parser evaluator for a practical Wireshark‑like subset (protocols, fields, ==/!=, &&/||, parentheses)
🌀 Inline spinner, 👤/🤖 avatars, soft‑wrapping logs, tight spacing, cancelable flows
🧠 LLMService abstraction (OpenAI‑compatible) talking to Ollama—model‑agnostic and swappable
Bring your own local LLM:
🔧 Settings modal to pick model, tweak temperature/top_p, tokens
How to start (60 seconds):
📦 pip install pktai OR uv add pktai
🧠 Optional: ollama run qwen3:latest
▶️ Run: pktai → press o to open .pcap/.pcapng
💬 Ask: “summarize traffic patterns” / “why the timeouts?”
🧪 Filter: /df ngap && sctp.dstport == 38412
🗣️ NL filter: “show only NGAP packets with dst port 38412” → instant apply
Great for:
🛰️ 5G/NGAP/SCTP deep dives
🧑💻 Incident response & rapid triage
🧪 Lab analysis, demos, teaching
🛠️ Folks who love Wireshark filters and want an AI copilot—right in the terminal
Your packets, your machine:
🔒 On‑device LLM via
@ollama
⚡ Immediate filters, no context‑switching
🎯 Less hunting, more understanding
Weekend project → terminal superpower. pktai: Wireshark‑style mastery meets an AI copilot.
Star it ⭐, run it ▶️ and vibe analyse the packets 🪄.
#pktai #Wireshark #pcap #Textual #Ollama #CyberSecurity #NetOps #DevTools #AI #LLM #TerminalTools #SRE