R2AGENT(1) General Commands Manual R2AGENT(1)

r2agentRadare2 Agent HTTP Server

r2agent [-adhsuLjv] [-p port] [-t file]

An HTTP server providing remote access to Radare2 instances via a RESTful API. It enables remote debugging and analysis of binaries using Radare2.

Listen for everyone (localhost by default)
Run in daemon mode (background)
Show help message
Run in sandbox mode
Enable HTTP authorization access
file
User:password authentication file
port
Specify listening port (defaults to 8080)
Show r2 version information and exit
List currently loaded r2 sessions and exit
Output JSON when used with -v or -L (modifier; no effect alone)

r2agent does not use any environment variables.

Start r2agent on default port (8080):


$ r2agent

Start r2agent on port 9090:


$ r2agent -p 9090

Run r2agent in daemon mode:


$ r2agent -d

Allow connections from any IP address:


$ r2agent -a

Run with authentication enabled:


$ r2agent -u -t auth.txt

Show version (text):


$ r2agent -v

Show version (JSON):


$ r2agent -v -j

List currently loaded sessions (text):


$ r2agent -L

List currently loaded sessions (JSON):


$ r2agent -L -j

radare2(1)

Written by pancake <pancake@nopcode.org>.

July 10, 2025