if you tweak AGH yaml files you can have it write to ram instead of disk. or even just mount a usb drive and install/run it off that. By default if you install manually AGH installs to the /opt/AdGuardHome directory so you can easily remap that.
OpenWrt now has an installable package for AGH but if you want to manually install just follow my thread.