Stripe ( payment solution ) recently started the "Atlas" program for startups.
For a flat fee ( around $500 last time i asked them ) they will set up a company in Delaware for you.
If you need more, they have all the contacts you need ( legal, accounting etc. ).
https://stripe.com/atlasYou should really check out their video presentation, it's about a young girl from Egypt starting a clothing business in Delaware without actually leaving home.
https://youtu.be/1WxV-ellcKk Right now they're only providing US / Delaware companies but they said they would extend their program to quite a few more countries over the next years, definitely something to follow.
If you're an EU resident, it's pretty fast ( few hours at best ) and cheap ( to set up a company in England (although it might get trickier since the Brexit etc... ) without leaving home thanks to companies like these
https://www.rapidformations.co.uk/compare-packages/ with "Non-Resident package starting at 180$.
Ireland ( where all the big tech companies have their European HQ ) is quite popular too since the Brexti thing, however setting up a company over there is more expensive and complex so you might need a lawyer for this one.
I believe Estonia offers digital citizenship and easy company formations.
Anyways, just don't get fooled by these "Offshore company" ads popping up everywhere, 99% of the time they will trick you into paying 5000$ for a 500$ service. Always look TrustPilot reviews before making a final choice.
PS : In Europe and in most parts of the world ( at least in France ) owning or forming a offshore company company without actually living there is perfectly legal, as long as you pay taxes as an individual and a citizen of your country of residence.
------
In some cases, paying almost 0% taxes is technically possible. : if you decided for instance, to move to Cyprus and become a Cypriot resident, while collecting money from a company you formed in Hong Kong, which is quite a popular cocktail.
But IMO, that's borderline greed and it requires to relocate, and to somehow say f*** off to you home country, since you won't be a contributing citizen anymore.
Personally, i would not go that far as to relocate both me and my company abroad, i love my nation and i'm fine contributing my fair share and living there.
However, if the state were to enforce laws or regulations that were to violate or diminish my rights and freedoms as an entrepreneur for political reasons ( making BTC illegal, cracking down on exchanges to please the Banks, etc. ) i would not hesitate a single second to leave.