Hello,

If the income is generated via an activity that is not operated in Spain and working for a US company that has not got any presence and activity in Spain, you can certainly offer your services from Spain. The main issue is that you are not registered as a Spanish worker- registered at the Social Security Office - carrying out an economic activity in Spain.

Regards,