@inscius woot.com (Amazon outlet store) sells some cheap refurbished WiFi routers. As it's an outlet store, their inventory keeps changing. Just look for a model that's on the list of supported openwrt or tomato open source firmware.
https://openwrt.org/toh/views/toh_fwdownload
https://wiki.freshtomato.org/doku.php/hardware_compatibility