AI API reverse engineering: private APIs and protocols decoded with AI
Updated · 30 projects
By whyamas
Yes. A language model can decode an undocumented API or protocol when it gets a decompiled companion app or a capture of real traffic. It describes the message format and writes a small client. The person then tests each command against the real device or service and corrects the model when it guesses.
The question here is how two pieces of software talk when there is no public documentation. The projects decoded Bluetooth messages from a lamp and a home battery. They also decoded binary WebSocket frames from a web app, and private system frameworks on macOS and Windows. The model is quick at spotting structure in hex dumps and following code paths in decompiled Java or JavaScript. Most authors did this for interoperability, such as adding a device to Home Assistant.
Claude did the work in 26 of them and GPT in 2.
Where should I start?
Start with Reverse engineer a Bluetooth device's protocol with AI, a 9 minute read. The projects after it show the same steps in practice.
Which private APIs and protocols have people decoded with AI?
Send me the repo or the write-up, and tell me where the model got it wrong.
Guides to read before decoding an API
What people ask about AI API reverse engineering
The model reads a decompiled client app or a traffic capture, describes the message format, and writes a client that can be tested against the real service. The person runs those tests and feeds back what failed.
A decompiled companion app gives the model the exact code that builds each message. Traffic captures help confirm it. Projects here used JADX for Android apps and browser or Bluetooth logging tools for traffic.
Laws differ by country, and many allow it for interoperability. Terms of service may also apply. This is not legal advice. Check what applies to you before you publish a client.











