As of May 2022, Portugal does not have a digital nomad visa. Instead, as a digital nomad, your best option is the Portuguese passive income or D7 visa. The D7 visa allows you to work remotely while living in Portugal, as long as you can provide proof of your passive income (which is not obtained from within Portugal). You can work as a freelancer or do remote work, but must not work for a Portuguese employer.