If you are going to work or obtain income in Indonesia you have to get a work visa that allows foreign citizens to work officially in the country.
You cannot work or make money in Indonesia without a work permit.
Its requirements are quite strict. A work visa is issued for a specific position in a certain company, so it is not possible to obtain a work permit before employment. Also, you are NOT allowed to work in several companies or in different positions at the same time.