Avilés made his debut for Nicaragua in a February 2003 UNCAF Nations Cup match against El Salvador and has, as of December 2013, earned a total of 22 caps, scoring no goals. He has represented his country in 2 FIFA World Cup qualification matches and played at the 2003, 2005, 2007, and 2009 UNCAF Nations Cups as well as at the 2009 CONCACAF Gold Cup.