A dog is the easiest answer. Foxes will stay way just form its smell.
Secure the coop for the night. I have a thick wire mesh on the outside of the wooden door and windows, nothing can chew through it.
Also, people! If you live in an area with nearby neighbors most foxes will avoid it during...