What is the Chave Móvel Digital and do foreigners need it?

The Chave Móvel Digital (CMD, “Digital Mobile Key”) is the Portuguese state’s certified way to log in to public portals and sign documents digitally. It ties your mobile number to an identity document, and you log in with that phone, a PIN and a temporary security code. If you live in Portugal, you will want it, because Portuguese bureaucracy is moving steadily online.

You do not need it on day one. But once you have a NIF and start dealing with taxes, you will keep hitting login screens that offer it. The Portal das Finanças (the tax portal) accepts it, and so does the sign-in flow for the services covered in our guides to filing your IRS tax return and getting your NIF.

Who can get a Chave Móvel Digital?

Anyone, Portuguese or foreign, with an accepted document and their own mobile number. According to the gov.pt activation page, there is no minimum age, and the CMD is for individuals only: a company cannot hold one.

For foreign nationals, the page accepts:

  • A passport
  • A Brazilian Cartão de Cidadão under the Porto Seguro Treaty
  • A residence permit or card (Título de Residência, Cartão de Residência)
  • Permanent residence certificates, including the EU citizen version
  • A Certificado de Autorização de Residência
  • A residence certificate for EU citizens and their third-country family members
  • The temporary-protection certificate

A Portuguese NIF (tax number) is required for the residence documents on that list. The page does not attach that requirement to the passport or the Porto Seguro card. If you do not have a NIF yet, start there.

Two caveats from the same page. The Certificado de Autorização de Residência and the temporary-protection certificate cannot have a digital signature linked to the CMD. And the page does not say whether a foreign mobile number is accepted. It only says you need your own number. Don’t assume either way: ask at the counter, or use a Portuguese SIM if you have one.

How do I activate the Chave Móvel Digital as a foreigner?

You activate it in person at a counter unless you hold a Cartão de Cidadão. The gov.pt page is explicit: Cartão de Cidadão holders can request the CMD online, by video call or at a counter, while anyone without that card (or with an old Bilhete de Identidade) must go in person.

RouteWho it is forWhat you needSpeed
Counter (balcão de atendimento, such as an Espaço Cidadão)Foreigners with a passport or residence documentThe document, NIF where required, your own mobile numberOne visit
Online via gov.pt app, Autenticação.gov or Portal das FinançasCartão de Cidadão holders onlyCard, plus phone camera, PIN and card reader, or NIF and Finanças password, depending on the routeMinutes
Video callCartão de Cidadão holders onlyThe cardNot stated by official pages

Step by step: the counter route

  1. Make sure you have your NIF if your document is a residence permit or card.
  2. Bring the passport or residence document you want to link, plus your own mobile phone.
  3. Go to a counter that handles the CMD. The Portal das Finanças page names an Espaço Cidadão in Portugal, or a Portuguese consulate in the EU, for passport or residence card holders.
  4. Ask for the Chave Móvel Digital, confirm the phone number to link, and set your PIN.
  5. Test it straight away on a portal login before you leave.

The official pages do not list exactly what a counter will ask for, opening hours, or whether you need an appointment. Call ahead or check the gov.pt list of Espaço Cidadão locations. Sign-language service does require an appointment.

Step by step: if you already hold a Cartão de Cidadão

This applies to Portuguese citizens and some Brazilians and others who have the card. The autenticacao.gov.pt page lists three online routes:

  1. gov.pt app: needs the Cartão de Cidadão, a phone with a camera, and the app on Android, iOS or Huawei.
  2. Autenticação.gov site: needs the card, its authentication PIN and a smartcard reader.
  3. Portal das Finanças: needs the card, your NIF and your Finanças access password.

If you only do one thing: try the gov.pt app route first if you have the card. It needs no reader.

What does the Chave Móvel Digital cost and how long does it last?

It costs nothing: the gov.pt page says “A CMD é gratuita.” Validity depends on the document you linked. For passports and residence documents, the CMD has the same validity as that document. For the Cartão de Cidadão it is the card’s validity plus 30 days.

That matters for residents. If your residence permit runs out, your CMD runs out with it. Our guide to renewing your residence permit covers the card side; for the CMD side, the official page describes no renewal procedure, so ask at an Espaço Cidadão once the new card arrives.

How does the PIN and SMS login work?

You enter your CMD PIN, then a temporary code sent to your phone. The Portal das Finanças page describes the same two steps: pick Autenticação.gov, choose Chave Móvel Digital, enter the PIN and the SMS or app code. It also mentions the gov.pt app as an alternative way to receive the code.

The gov.pt page notes that one PIN covers access to portals and signing documents. A separate signature PIN setup exists, so treat the signature function as its own switch. After five consecutive wrong entries of the signature PIN or its security code, only the signature function goes inactive; authentication keeps working.

What can I do with the Chave Móvel Digital?

The official pages confirm three things: logging in to many public and private portals with one login, signing documents digitally, and signing in to the Portal das Finanças. For taxes, the Portal das Finanças offers the CMD alongside the older NIF-and-password login, which is posted to your registered tax address. That is a real saving if you are tired of waiting for mail. It is also handy if you are a freelancer setting up recibos verdes.

On the gov.pt app: the December 2024 government announcement says it merged the ID.gov and Autenticação.gov apps, offers 16 official documents in digital form (including the Cartão de Cidadão and driving licence), lets you join the CMD with biometrics, and provides a qualified digital signature with full legal value. It does not say which of those documents are available to foreign residents, so check inside the app before relying on it.

There is no official statement on whether specific services, such as SNS 24, Segurança Social Direta or AIMA, accept the CMD. Portals change their login menus often. Open the sign-in page of the service you need and see whether “Chave Móvel Digital” is listed. For the health and contribution side, see our guides on SNS registration and Segurança Social.

What if my phone number changes or my PIN is blocked?

You can fix both, but not always from your couch. For a blocked PIN, gov.pt says three wrong entries block the CMD temporarily, and further errors can block it permanently. The same happens after three wrong entries of the security code. You can unblock online at Autenticação.gov or at an Espaço Cidadão.

A forgotten PIN is simpler at a counter: an Espaço Cidadão can issue a new one even if the CMD is not blocked. The other option, cancelling and creating a new CMD online, is described for Cartão de Cidadão holders.

To change your phone number or other data, the gov.pt page says an Espaço Cidadão can change all data tied to the CMD, while the portal, the app or the phone can change only some of it, for security reasons. The page does not say which fields. If you are switching phone numbers, go in person with your document before you scrap the old SIM.

Checklist before you go

  • Get your NIF first if you will link a residence document.
  • Decide the document: passport (no NIF needed) or residence card (NIF needed).
  • Bring a mobile number you will keep, one that is yours alone.
  • Test a Portal das Finanças login before you leave the counter.
  • Note the document’s expiry date, because the CMD expires with it.