> That being said, there are countries with loose taxation like Thailand where you can establish residence and avoid taxes as long as you are not operating in the country itself.
I believe you can run foreign companies from Thailand without having to pay tax there, as they have no CFC laws. So the example the poster above gave basically applies, but you would book all your income in ForeignCo and take a small salary in the Thai company from fees you charge ForeignCo. That's essentially a zero tax country then.