if you want to work for a Thai company then non-B visa and work permit. If you want to stay your own boss and work with Thai companies you would need to open a company here. But for that, you need to have a Thai associate owning at least 51% of the company