EOR and payroll
An Employer of Record (EOR) hires you locally on behalf of a foreign company. They handle payroll, tax and benefits in your country. You get a normal contract. The company doesn't need an entity there. Deel, Remote, Oyster are common. Fees are usually on the company.