idare2
idare2 brings a radare2-style command line and output model to IDA Pro.
It drives an IDA database through IDA Nexus,
so analysis, disassembly, cross-references, types, strings, and decompilation come
directly from IDA and Hex-Rays.
Use it interactively or from scripts. When attached to a running IDA instance, both clients share the same database.
Status: alpha. The command surface is broad, but interfaces may change before 1.0.
Requirements
- IDA Pro 9.4 or newer, with a valid IDA license. IDA is commercial software
and is not bundled with idare2. The current
ida-nexusruntime rejects older kernels. - Python 3.11 or newer.
- A configured IDA installation path. IDA Nexus needs to find
libidalib.so,idat, and the rest of the IDA installation. HCLI-installed IDA configures this automatically; for a manual install, runpy-activate-idalib.pyonce or setIDADIR. - Optional: the IDA Nexus plugin for GUI attachment and
idatheadless workers, a Hex-Rays decompiler license for decompilation commands, and radare2'srasm2for thepa/waassembler fallback.
Tested with IDA Pro 9.5, ida-nexus 0.14.2 / ida-domain 0.6.0, idapro
0.0.12, and Python 3.11-3.14.
idare2 is a pure-Python CLI. It depends on ida-nexus and does not import
ida_* modules itself. pip install idare2 installs the Python side, including
the official idapro IDA Library module; it does not install IDA or the IDA
Nexus plugin.
Does idare2 require idalib?
Not necessarily. IDA Nexus can use three backends:
| How the database is reached | Backend | Requires idalib? |
|---|---|---|
| Attach to a database already open in the IDA GUI (plugin required) | gui |
No |
| Open a file or IDB headlessly with the IDA Nexus plugin installed | idat |
No |
Open a file or IDB headlessly without the plugin, or with IDA_NEXUS_IDALIB_ONLY=1 |
idalib |
Yes |
With no plugin, IDA Nexus opens a headless idalib worker in idare2's Python
environment. That path uses the idapro module installed by pip install idare2; you do not have to install the idapro*.whl that ships with IDA. If you
want to pin the exact binding version from your IDA installation, you can
install that wheel instead.
Minimum setups
- No plugin, headless only:
pip install idare2plus a configured IDA install path. This is the smallest setup, but it cannot attach to an IDA GUI. - Plugin, no idalib:
pip install idare2plus the IDA Nexus plugin. This supports GUI attach and headlessidatworkers. - Both: the plugin is preferred; idalib remains the fallback.
Installing only the ida-nexus Python library is enough for idare2 -v,
idare2 -L, and attaching to a GUI that already has the plugin, but it is not
enough to open a database headlessly on its own.
Installation
The shortest headless setup is: install IDA 9.4+, start it once to accept the
license, run py-activate-idalib.py -d <IDA>, then pip install idare2. The
plugin is optional and is only needed for GUI attachment or idat workers.
1. Prepare IDA
Install IDA Pro 9.4+ and start it once so the license is accepted. Headless idalib refuses to run until the license has been accepted.
Then make the IDA install path discoverable:
-
If IDA was installed with HCLI, this is automatic.
-
Otherwise run the activation script once:
python <IDA>/idalib/python/py-activate-idalib.py -d <IDA>
-
Or export the path instead:
export IDADIR=<IDA>
This path is also what lets IDA Nexus find idat when the plugin is installed.
2. Install idare2
python -m venv .venv
source .venv/bin/activate
pip install idare2
pip install idare2 installs ida-nexus, ida-domain, and the official
idapro IDA Library module from PyPI. The idare2 and ir2 commands are
available after activating the environment.
3. Optional: install the IDA Nexus plugin
The plugin enables GUI database sharing and makes headless workers run as
idat inside IDA's own Python:
uvx ida-hcli plugin install https://github.com/HexRaysSA/ida-nexus
uvx comes with uv. Without uv:
python -m pip install ida-hcli
ida-hcli plugin install https://github.com/HexRaysSA/ida-nexus
Start or restart IDA after installing the plugin.
Optional: pin the IDA-shipped idapro wheel
The PyPI idapro module is the real IDA Library Python module and works with a
configured IDA installation. If your IDA ships a different idapro*.whl and you
want that exact build, install it into the same environment:
pip install <IDA>/idalib/python/idapro*.whl
Verify the installation
idare2 -v
idare2 -L
idare2 -h and idare2 -v work without an IDA license. idare2 -L lists
databases currently registered with IDA Nexus, including their backend, and an
empty list is normal before you open a database in IDA or pass a file to idare2.
Try a read-only command against a local executable:
idare2 -q -c 'iI' <path-to-binary>
From source
git clone https://github.com/fire3/idare2.git
cd idare2
uv venv --python 3.12
source .venv/bin/activate
uv pip install -e '.[test]'
# Configure IDA once if you have not already.
python <IDA>/idalib/python/py-activate-idalib.py -d <IDA>
# or: export IDADIR=<IDA>
Usage
Interactive mode
Open an executable, a raw binary, or an existing IDB:
idare2 firmware.bin
idare2 --idb saved.i64
Commands use radare2 syntax:
[0x00015e10]> s main
[0x00015e10]> pd 6
[0x00015e10]> afl~main
[0x00015e10]> q
Use ? for command help and q to exit. Use wq to save the IDB and exit.
Tab completion covers command names, e configuration keys, flags, function
names, and $ variables/aliases; remote names are cached per editing cycle.
Command history is kept in ${XDG_STATE_HOME:-~/.local/state}/idare2/history.
Startup files
At startup idare2 reads, in order:
~/.idare2rc${XDG_CONFIG_HOME:-~/.config}/idare2/rc${XDG_CONFIG_HOME:-~/.config}/idare2/rc.d/*(sorted)- the nearest
.idare2rcin the current directory or an ancestor
Set IDARE2_RCFILE to use a single alternate file instead. Pass -N (or
-NN) to skip rc loading entirely.
Batch commands
Use -q to suppress the banner and -c to execute one or more commands:
idare2 -qc 's main; pd 10' firmware.bin
idare2 -q -c 'iI' -c 'axt' firmware.bin
idare2 -qc 'pd 20' firmware.bin | grep call
Multiple commands can be separated with ;. A non-zero exit code is returned
if any batch command fails.
Scripts passed with -I run before -i scripts and -c commands; -i
scripts run after the database is open and before -c commands.
JSON output
Use -j to make JSON-capable commands return JSON by default. Command-level
j suffixes are also supported:
idare2 -j -qc 'afl' firmware.bin
idare2 -qc 'aflj' firmware.bin
Raw binaries
Specify the processor, bitness, byte order, and load address when importing a binary without an ELF or PE header:
idare2 -a arm -b 32 -B 0x1000 firmware.bin
idare2 -a mipsb -b 32 --endian big -B 0x1000 firmware.bin
-ais an IDA processor name, for examplemetapc,arm:ARMv7,arm:ARMv8,armb,mipsl,mipsb,ppc,riscv,s390x,68000,sparcb, orsh4.-bmust be16,32, or64.--endian big|littleoverrides the byte order the raw loader would pick for that processor.-Bis the load base and must be non-negative and 16-byte aligned.
These options apply when a new IDB is created. When -B is set, it also becomes
the initial entry point; otherwise idare2 uses the first valid address.
tests/integration/test_arch_matrix.py exercises these hints on 22
configurations (the 19 supported machines, including both byte orders).
Existing databases and IDA GUI
Sharing a database that is already open in the IDA GUI requires the IDA Nexus plugin. The idalib fallback can open files and IDBs by path, but it cannot attach to a GUI session.
List active databases, open an IDB directly, or attach to a running session:
idare2 -L
idare2 --idb saved.i64 -qc 'afl~main'
idare2 --attach <session-id> -qc 'axt'
Session IDs are shown by idare2 -L.
Writing changes
Sessions are read-only by default. Pass -w to allow writes:
idare2 -w -qc 's main; wx 9090; w' firmware.bin
idare2 -w -qc 'e io.cache=true; wx 90 @ main; wc+' firmware.bin
w saves the IDB. With e io.cache=true, writes are buffered until wc+ is
used.
Command language
Common radare2 operators are supported, including @, ~, |, >, >>,
!, ., repeat prefixes such as 3pd, and bare addresses for seeking.
@@ iterates a command over addresses; @@@ also sets the block size for each
item, including explicit @@@= addr size ... pairs.
idare2 -qc 'pd 8 @ main' firmware.bin
idare2 -qc 'afl~main' firmware.bin
idare2 -qc 'axt > refs.txt' firmware.bin
Command overview
| Area | Commands |
|---|---|
| Seeking | s s+ s- sf sF sb sn so sp s= s: s* |
| Disassembly | pd pd -N pd-- pD pdf pdb pdk pdr pi pdi pdl pdq pdj pdC pdJ pd, pdc pC pA |
| Assembly | pa wa wa* wa+ waf waF |
| Memory | px pxw pxq pxd pxu p8 p8j p8s p8, p8d p8x p8* p8b p8f pr pc p6 pj p= pt pu pf pfj pfs ps psw psz psp psW psu psx psn pv pvu pvd pvp pvj pp* po* ph pwd x x8 xw xq xj |
| Information | i iI ij it itj iD ia iaj il ilj ilq iS iSj iSS iS. iSh iSm ii is iz izz izzj ir ih iH ie iee ies iE iM iC iV iv iT ig ic icj icq icl ics ic* CL CLu CLf CLL |
| Analysis | aa aaa af aF afr afn afu afi afl aflj aflq afb afc afC afv afvj afvR afvW afx afxj ao aoj ab axt axf axj aflc afln afl+ a8 ad adk ah an agf agfj agfd |
| Search | / /x /v /r /w /wi /a /p // /+ |
| Writing | w wq wx wa w0 wd wf wi[1248][+-][n] w6[d/e/x] wc wc+ wc- u U |
| Metadata | C Cj C* C. CC CCr CCu CC* CC. CC- C- Cd Cd. Ch Ch- Cs Cs. Cs.j Cs- Cs* |
| Types | t tj t* ts tu tp tpv tpx tc td tt tt- t- te tf tfj tfc tn tn- to dt |
| Flags | f f* f, f- f? fq fn fnj fN fr fx |
| Sessions | S Ps Po P- Pj P y yy yx yt yf cc c1 |
| Other | ? b e q L _ % T * |
Most information commands support a j suffix for JSON output.
Behavior notes
- IDA performs analysis when the database is opened, so
aais usually a no-op. asm.archandasm.bitsare read-only. Set the architecture when creating a database with-aand-b.- Sessions are read-only unless
-wis passed. wwith no arguments saves the IDB.-jenables JSON output; it does not start a JavaScript engine as it does in radare2.- Flag names are written to the IDB by default. Set
e ida.flags.write=falseto keep them session-local. - Unsupported commands fail explicitly instead of falling back to a different command.
paassembles an instruction to hexpairs;waassembles and writes it. IDA's assembler is used first. When the processor module has no assembler, idare2 falls back to radare2'srasm2if it is onPATH(orIDARE2_RASM2points to it), which covers common ARM, AArch64, MIPS, PPC, RISC-V and m68k targets.pfsupports r2's scalar formats, inline[n]arrays, offset controls and session-local named formats; unsupported format characters fail explicitly.wa*andwaF*print the equivalentwxcommand without modifying the database, so they work in read-only sessions.agfprints a compact ASCII function graph,agfj/agjreturn r2-shaped graph JSON, andagfdemits Graphviz DOT.agg/aggdare accepted aliases for the current function's DOT.pd -Ndisassembles backwards andpd-- Nprints context (N before and N from the current address).pdkdisassembles every method of the class at the seek. Thepxw/pxq/pxd/pxuargument is a byte count, defaulting to the block size, and their row layout matches r2.aflc,aflnandafl+count functions, print rename commands and sum sizes.iSlists ELF sections (an algorithm name adds a hash column),iSSlists program-header memory maps, andizzscans the whole input file, including non-loaded debug sections.CL*exposes the DWARF source-line data IDA imported;icreconstructs classes from IDA's UDTs and C++ symbols.- Command prefixes validate their suffixes: an unknown
pd/i/b/... suffix is a usage error instead of silently running the base command.
Development
The default test suite is offline and does not need IDA:
uv sync --group dev
uv run pytest
uv run ruff check .
The IDA-backed suites use the idapro module installed by the project
dependencies. Configure IDA's install path as described in Installation, then:
uv run --no-sync pytest -m real_ida
uv run --no-sync pytest -m parity
uv run --no-sync pytest -m arch_matrix # raw-binary import/disassembly matrix
uv run --no-sync tools/arch_matrix.py # the same, one row per CPU
--no-sync keeps uv from re-resolving .venv between commands. It is
required if you pinned a specific IDA-shipped idapro*.whl; otherwise plain
uv run ... also works.
Build the distribution archives and validate the PyPI metadata with:
uv build
uv run twine check dist/*
The test suite covers offline unit tests, real IDB integration, radare2 output
parity, and the architecture matrix in tests/integration/test_arch_matrix.py
(22 configurations covering the 19 supported machines).
Troubleshooting
Cannot load IDA library file libidalib.so
idapro cannot find your IDA installation. Run the activation script once:
python <IDA>/idalib/python/py-activate-idalib.py -d <IDA>
or set IDADIR=<IDA>.
The ida-nexus plugin is installed but idat was not found
The plugin is present, but IDA Nexus still cannot locate idat. Configure the
IDA install path as above, or set IDA_NEXUS_IDALIB_ONLY=1 to use idalib.
License not yet accepted, cannot run in batch mode
Start the IDA GUI once and accept the license. Headless idalib workers reuse that acceptance state.
WorkerStartError: idalib worker ... exited with status 1
Check the install path and license first. To rule out the plugin path, run with
IDA_NEXUS_IDALIB_ONLY=1.
DatabaseBusyError: an unregistered IDA session owns ...
Another IDA or idare2 worker owns the database. Use idare2 -L to list
registered instances, close the owner, or work on a copy.
Releasing
See RELEASING.md for the version-bump checklist, TestPyPI dry run, and PyPI Trusted Publishing setup. Release notes live in CHANGELOG.md.
License
MIT. See LICENSE.
Metadata
Release files for idare2 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| idare2-0.1.1.tar.gz | 287.0 kB | With provenance | Details for idare2-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| idare2-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for idare2-0.1.1-py3-none-any.whl |
Total release size: 484.2 kB
Release files / idare2-0.1.1.tar.gz
| Download URL | idare2-0.1.1.tar.gz |
|---|---|
| Size | 287.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63729deca1a7fd0d880d8393fe960e8ff74d8714ed159cbc4b392d3ea4a9deb5
|
|
BLAKE2b-256 checksum How to use checksums |
c36635084a571f2cf0d8949e35242bc8fdb79b97615f964fe3682c7cf7eb2b09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / idare2-0.1.1-py3-none-any.whl
| Download URL | idare2-0.1.1-py3-none-any.whl |
|---|---|
| Size | 197.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aec790bc01f960661076810b0e29463dd885a5d85da795e7e0b687422b5df9c3
|
|
BLAKE2b-256 checksum How to use checksums |
8dd063b217761367d8a1e5e0795e416ff0a2639ac40a9104f9cf44a94244fb45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for idare2 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for idare2-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.