You still need a license to do that, regardless of if you intend to sell a product or not. Running any unsigned code on consoles requires you to be registered as an official developer. You will also likely require development hardware, as retail units are not typically able to run unsigned code at all.
Xbox One does support a development-mode that’s available without registration, similar to XNA. However this provides heavily limited cpu/memory resources, and as far as I’m aware is not supported by ue4, and probably never will be.
Your best bet if you do want to develop on consoles is to look through the links veccher posted.