Chave Móvel Digital for foreigners: how to get Portugal’s digital key
The Chave Móvel Digital (CMD), or Digital Mobile Key, is the login that unlocks most of Portugal’s online public services. With it, you can access the Portal das Finanças, social security, your health records, the AIMA immigration portal and dozens of other websites using only your phone number and a PIN. For foreigners, it is one of the first things worth setting up after getting a tax number.
What you can do with it
- log in to the Portal das Finanças to issue recibos verdes, check your tax situation or file your IRS return;
- access Segurança Social Direta to declare freelance income or check your contributions;
- use the SNS 24 app and portal for health appointments and prescriptions;
- sign documents digitally, including some documents uploaded to AIMA for residence permit applications;
- request certificates such as a criminal record certificate online;
- log in to the gov.pt app and portal, which groups many public services in one place.
Who can get it
Anyone can have a CMD, including children, as long as they have their own mobile number. Foreigners can activate it with one of these documents:
- a passport;
- a Portuguese residence card or residence permit (título de residência);
- an EU citizen registration certificate.
In every case, you need a Portuguese NIF associated with your key. Without a NIF, the CMD cannot be activated, and some services that depend on a Portuguese citizen card number will not work for you.
When the CMD is linked to a passport or residence card, it stays valid only as long as that document. If you renew your residence card, you may need to update or reactivate your key.
How to activate it
In person (the most reliable option for foreigners)
- Book an appointment at a Loja do Cidadão, an Espaço Cidadão or a Finanças office that offers the service.
- Bring your passport or residence card, your NIF and the phone you will use with the key.
- The agent registers your details and you receive an SMS with a temporary code.
- You set your own PIN, and the key is active immediately.
Online with your Finanças password
If you already have a password for the Portal das Finanças, you can request the CMD on the autenticacao.gov.pt website. A letter with an activation code is then sent to the address registered with Finanças, so make sure your address there is up to date.
Through the gov.pt app or video call
Immediate activation through the app or by video call is mainly designed for holders of the Portuguese Citizen Card. Options for foreign residents are expanding, so check the current rules on gov.pt before you book an appointment.
Using the key
When a website offers “Autenticar com Chave Móvel Digital”, enter your mobile number and your PIN. You then receive a six-digit code by SMS or in the gov.pt app, valid for a few minutes. Keep the same SIM card: if you change numbers, you must update the key.
You can also activate the digital signature linked to your CMD. It lets you sign PDF documents with the same legal value as a handwritten signature in Portugal.
Common problems
- “NIF not associated”: your NIF is missing or was entered with errors. Go back to the counter with your documents.
- Letter never arrived: check the address registered in the Portal das Finanças, or switch to in-person activation.
- Blocked PIN: after several wrong attempts the key is blocked. You can reset the PIN on autenticacao.gov.pt.
- Foreign phone number: a Portuguese number is strongly recommended, as SMS codes from abroad can be delayed.
Next steps after your CMD
Once the key works, the rest of Portuguese bureaucracy becomes much simpler. Our guide to Portugal’s online public services for expats explains which portals to use and in what order. If you are still preparing your move, start with our step-by-step guide to moving to Portugal.
Information checked in November 2026 on gov.pt. Activation methods for foreign documents change regularly: check the official page before you go.