Just because your salary is flowing from abroad and paid by a foreign company, does not mean it is foreign sourced. Foreign sourced means the work (or dividend or rental income) was done abroad. Where were you physically when you performed the work? You need to pay taxes where you worked. So you would still theoretically need to pay taxes in thailand if thats where you were performing the work. Unless there is some sort of tax loophole for digital nomads im not aware of?My strategy: I live most of my time in Thailand. So I am a tax resident there. Money (salary) from foreign sources is not taxed in Thailand. I have a UK LTD and all money made there is paid to me as a normal salary, so the UK LTD is not making a profit and not paying tax. This is a setup which I invented myself, I am not 100% sure if it is bulletproof.
I really should have someone with knowledge of this look at my setup. At the moment I pay 0% tax.
When making a choice you also have to think about opening a bank account. Starting a company is easier than getting bank accounts.
The fact that they havent asked you to pay because they dont know about your income, thats a different story. Might be best not to get too comfortable in thailand