Do not set up a legal entity in India. It will become a never-ending void where money and time go to die. The bureaucracy is hilariously inept and bloated, and if you are not willing to pay the bribes or for some entity to navigate the systemic corruption on your behalf, you will end up in OP's situation.
Source: hired many Indian developers in recent years for a SV startup