Apps · Reverse-engineering plugin for radare2 (needs a local model server)

r2ai and decai

by radare2 project · MIT · 536 GitHub stars

LLM plugins for the free radare2 framework: decai turns disassembly into readable code, and r2ai can run analysis commands for you.

macOSWindowsLinux

Get r2ai and decai

At a glance

Best for
Command-line reversers and anyone who wants a free, scriptable setup.
Inference engine
  • uses Ollama, llama.cpp or LM Studio
GPU support
None of its own: it talks to a llama.cpp or MLX LM server
Opens
  • GGUF
  • MLX
Features
  • Agent workflows
Platforms
Runs with radare2 on macOS, Windows and Linux.

Install

macOS

r2pm -Uci r2ai && r2pm -Uci decai

Windows

r2pm -Uci r2ai && r2pm -Uci decai

Linux

r2pm -Uci r2ai && r2pm -Uci decai

Then point it at your local model, for example decai -e api=ollama.

14 models on this site run in r2ai and decai

Models tagged for reverse engineering that follow instructions, with a GGUF or MLX build to serve locally. Raw decompilers such as LLM4Decompile run on their own in llama.cpp or LM Studio instead.

Model Made by Type Size Opens it as Quality tier
Qwen3.5 27B Alibaba LLM 28B GGUF or MLX 93
Qwen3.5 35B-A3B Alibaba LLM 36B (3.0B active) GGUF or MLX 93
DeepSeek R1 (671B) DeepSeek LLM 671B (37.0B active) GGUF or MLX 92
GLM-4.7 Flash (30B-A3B) Zhipu AI LLM 31B (3.0B active) GGUF or MLX 88
Devstral 2 (123B) Mistral AI LLM 125B GGUF or MLX 86
gpt-oss 120B OpenAI LLM 117B (5.1B active) GGUF or MLX 84
Qwen3 Coder 30B-A3B Alibaba LLM 31B (3.3B active) GGUF or MLX 78
DeepSeek V3 (671B) DeepSeek LLM 671B (37.0B active) GGUF or MLX 75
Qwen3 30B-A3B Alibaba LLM 31B (3.3B active) GGUF or MLX 74
Gemma 3 27B IT Google LLM 27B GGUF or MLX 72
gpt-oss 20B OpenAI LLM 21B (3.6B active) GGUF or MLX 70
Qwen3 8B Alibaba LLM 8.2B GGUF or MLX 60
Foundation-Sec 8B Reasoning Cisco Foundation AI LLM 8.0B GGUF 52
Foundation-Sec 1.1 8B Instruct Cisco Foundation AI LLM 8.0B GGUF 50

Alternatives

Which app should I use?

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.

Was this page helpful?