
Vibe Reverse Engineer with IDA Pro: An interface for IDA in SQL via live virtual tables. Don't let appearances deceive you! :)
Ask your AI agent about any binary open in IDA Pro, in plain English. It answers from the live database.
[!TIP] You don't need to know SQL. You ask in plain English: "who calls this function?", "rename these and comment them", "what does this binary do?". Your agent writes and runs the SQL for you. SQL is simply the language idasql speaks with the agent, one every agent already knows. You can type it yourself whenever you want to, but you never have to.
[!NOTE] idasql exports nothing. Despite the "sql" in its name, idasql never converts or exports your IDB to a SQL database, or to anything else. It is a virtual SQL interface on top of the IDA SDK: every query reads your live IDB, and every change goes straight back into it.
IDASQL gives AI coding agents full, live access to IDA databases: 70+ tables covering functions, xrefs, strings, types, pseudocode and more, all read and write. It works with Claude Code, Copilot CLI, Codex, or any MCP (Model Context Protocol) client, or anything that speaks HTTP. It is created by Elias Bachaalany.

▶ Watch: Vibe Reverse Engineering #1: IDASQL & the xSQL Concept
Work fully headless, with no IDA window at all, or right inside the IDA you already have open. The agent handles both.
/idasql:connect Open sample.exe in the background and let's analyze it together.
The agent runs IDA in the background (idasql -s) and analyses raw binaries itself. It opens as
many databases as you like, and saves them when you say so.
There's nothing to set up in IDA. Open your database as usual, then ask your agent. It finds your IDA by itself:
You: how many functions in target.dll?
The agent then runs:
$ idasql instances # every running IDA: target.dll.i64 is pid 4242, no SQL server
$ idasql http start 4242
remote control is off for target.dll.i64 (pid 4242)
turn it on with: idasql remote on 4242 (or .remote on in that IDA)
$ idasql remote on 4242 && idasql http start 4242
remote control on for target.dll.i64 (pid 4242)
http://127.0.0.1:8174
It then checks it is talking to the right database, and counts:
Agent: target.dll has 812 functions. That IDA wasn't serving SQL, so I turned on its remote control and started an HTTP server on localhost.
idasql remote off 4242andidasql http stop 4242undo both.
The whole exchange takes about 30 seconds. The agent switches remote control on only for the database you asked about.
Prefer to point the agent yourself? The classic way works as it always has. In IDA's
idasql> prompt type .http start. IDA prints IDASQL HTTP server: http://127.0.0.1:8174 and
copies the connection instructions to the clipboard. Then:
/idasql:connect Let's work with this database: http://127.0.0.1:8174
Run .pin http once, and that database starts its server every time it opens.
/idasql:connect.ida:// links that jump IDA to the code (IDA 9.4+).idasql -s db.i64 --mcp, or .mcp start inside IDA, and any MCP (Model Context Protocol) client gets an idasql_query tool..pin http (or .pin mcp) once in IDA, and that database serves every time it opens, so your agent connects with no step at all.idasql rescue saves the work of a frozen IDA, and idasql close ends one cleanly.| You may have heard | Actually |
|---|---|
| "I have to learn SQL." | No. You ask in plain language, and the agent writes the SQL. |
| "It only reads." | It writes too: renames, comments, types, structs, prototypes, patches, bookmarks, and undo checkpoints. |
| "It exports the database first." | No. Every query runs live against the open database, and every change shows in IDA at once. |
| "It replaces IDA." | It runs on your IDA Pro (9.2 to 9.5) and your license. The pseudocode tables need the Hex-Rays decompiler. |
| "It only works headless" (or "only in the GUI"). | Either, or both, with many databases at once. |
| "It's for Claude only." | Any agent: the skills ship for Claude Code, Copilot CLI and Codex, and HTTP and MCP serve the rest. |
| "It's only for malware." | Any binary IDA opens: drivers, firmware, games, libraries. |
| "The agent will make things up." | Its answers come from queries on your database, and on IDA 9.4+ links let you click through to check each one in IDA. |
| "My binary goes to the cloud." | idasql runs on your machine and its servers listen on localhost only. Your agent's model sees what the agent reads, so pick your agent accordingly. |
Download the release for your IDA version from Releases (ida92, ida93, ida94 or ida95; builds are IDA-version-specific):
| Archive | What's in it |
|---|---|
*-plugin.zip | The HCLI-compatible plugin (Windows x64, Linux x64, macOS ARM64) |
*-cli.zip | The idasql command line, by host architecture |
*-arm64-plugin.zip | ARM64 plugins, installed by hand: Linux (IDA 9.3+) and Windows (IDA 9.4+) |