It is easier in EU than in US.
Estonia has been trying to get foreigners to open their businesses there for a while now: https://e-estonia.com/ But I don’t think that helps US residents too much (ask your tax advisor about CFC rules; I have only a vague understanding that it’s a PITA).