If you wish to become a freelancer (Independent Entrepreneur) in Portugal being foreigners, you should be in Portugal on a valid legal visa, or maybe you’re exempt from permit. It is eligible to become a freelancer after self-declaration(register) with Portuguese taxation & finance department.