It would ultimately be more of a question of the laws of your country. From the US's perspective, even if you were an employee, it would be foreign source income as long as you remain outside of the US so they aren't going to gain any taxes if you were considered an employee.