GUIDE · LIVING IN PORTUGAL
Chave Móvel Digital (CMD) for foreigners in Portugal: passport, NIF and where to activate
A foreigner can activate the Chave Móvel Digital (Portugal's digital ID key) with a passport or a residence document. gov.pt says the activation is free and done at a counter if you have no Portuguese Cartão de Cidadão, you need your own mobile number, and a residence document works only if you already have a Portuguese NIF.

The short answer
The Chave Móvel Digital (CMD) is Portugal's digital key for logging in to public services and signing documents online. A foreign student or spouse can have one. gov.pt (page updated 19 October 2026) says a foreign national can activate it with:
- a passport;
- a residence title or residence card (a Portuguese NIF is required);
- several residence certificates (a NIF is required, and for some of them no digital signature can be linked);
- a Brazilian Cartão de Cidadão under the Porto Seguro Treaty (not relevant for readers in Pakistan).
If you have no Portuguese Cartão de Cidadão, gov.pt says you must activate the CMD at a counter. It is free, and each person needs their own mobile phone number.
This guide is for the applicant who has arrived, or is about to. It does not replace your visa file. For the visa, start with the Portugal study visa from Pakistan page or the family reunification visa page.
Which document to use, and what each one needs
The official page is a list, and the part blogs skip is the condition written next to each item. Here it is in one table.
| Document you hold | Can it be linked to the CMD? | Condition stated by gov.pt |
|---|---|---|
| Passport | Yes | No NIF condition is written next to it |
| Residence title (título de residência) | Yes | "precisa de ter Número de Identificação Fiscal (NIF) português" |
| Residence card (cartão de residência) | Yes | Needs a Portuguese NIF |
| Permanent residence certificate | Yes | Needs a Portuguese NIF |
| Certificate of residence authorisation | Yes | Needs a Portuguese NIF, and no digital signature can be linked to the CMD |
| Residence certificate for an EU citizen's non-EU family | Yes | Needs a Portuguese NIF, and no digital signature can be linked to the CMD |
| Receipt that shows you applied for a permit | Not listed | gov.pt does not list it, so do not assume it works |
Two points matter for an applicant from Pakistan.
First, the NIF. Most readers will have a NIF before they have a residence card, because the NIF is the first number you ask for. If you do not have one yet, our guide to the NIF for international students explains how it is obtained. Once you hold a residence document, the table above says the CMD needs it.
Second, the digital signature. The CMD can also sign documents. gov.pt warns that for some residence certificates this signature cannot be linked. If a school, a landlord or an office asks you to sign "with the CMD", check that your document type allows it before you promise to.
Where to activate it in person
The Autenticação.Gov page lists the counters that activate the CMD. The ones a newcomer is likely to reach are:
- Espaços Cidadão and Espaços Empresa, the public service counters found in town halls and other public buildings;
- Portuguese consular services (a foreign national can use a passport there);
- the counters where a new Cartão de Cidadão is collected.
The same page also names criminal-record services, living-will (testamento vital) counters and the Azores RIAC shops. It has a "Localizar balcões" link to find the nearest counter. gov.pt adds that service in Portuguese Sign Language needs an appointment.
What we could not confirm. The page we read does not describe the counter procedure step by step. It does not say whether a counter asks for an appointment, how long the visit takes or what the PIN and security-code steps are. We did not read a Portuguese-language "how to" page that lists them, so this guide does not either. Check the counter's own booking page before you go.
What to bring
The official page names the documents and the phone. It does not publish a bring-list for the visit, so this is what the two pages together support:
| Item | Why |
|---|---|
| Your passport, or your residence title, card or certificate | It is the document the CMD is linked to |
| Your NIF number, if you linked a residence document | gov.pt requires it for those documents |
| Your own mobile phone, with the number you will keep | gov.pt says every person needs their own number |
| The phone for each family member being activated | A parent's number cannot stand in for a child's |
Put the number you will keep in Portugal on the form. A number you plan to drop after a few weeks makes later logins harder, so decide before you go to the counter.
What it costs, and who may charge you
Nothing. gov.pt states in plain words that the CMD is free ("A CMD é gratuita"). The authority responsible for the service is the Agência para a Reforma Tecnológica do Estado. No agent, consultancy or website is needed to activate it, and none has an official role in the process. Do not hand over your passport, your phone or any code you receive by message to anyone who offers to do it for you.
The counter issues the key. If you ask us for help, we can explain which route fits the documents you hold.
How long it lasts
gov.pt's rule is simple: for a passport or a residence document, the CMD is valid for the same period as the document. A Cartão de Cidadão or a Bilhete de Identidade gets an extra 30 days, but those are for Portuguese citizens.
In practice, for a student or spouse this means:
- a CMD linked to a passport ends when the passport ends;
- a CMD linked to a residence card ends when the card does;
- after a renewal or replacement, your document is a new one, so ask the counter whether the old key still works.
We read nothing from gov.pt about what happens at a renewal, so treat that last point as a question to ask, not a rule. Our guides to renewing a student or family permit tell you when to start.
Where you will meet the CMD after you arrive
The CMD matters when another step asks for a login or a signature, and that happens in the first weeks.
- School enrolment for a child. Article 7 of Despacho Normativo 6/2018 says public-school enrolment is made preferably online on the Portal das Matrículas. You sign in with a Portuguese citizen card, the CMD or your Portal das Finanças login. If you have none, the same article lets you enrol with documents signed in a legally valid way, for example with the CMD. See enrolling a child in a Portuguese school.
- Renewals and digital signatures. Our renewal guides cite the CMD as one way to sign documents that an office accepts only when the signature is legally valid.
- Health records. The SNS guide lists the identity document, the NIF and the address your record needs. See registering with the SNS before you plan the order of your first appointments.
The point of the CMD is that it saves you from repeating a counter visit for each service. It does not replace your residence permit and it is not proof of your status.
A sensible order for the first weeks
- Get the NIF if you do not have one. The CMD needs it for any residence document.
- Decide which document you will link. With only a passport, ask the counter whether to activate now or wait for the residence card.
- Choose the phone number you will keep and bring the phone.
- Find your nearest counter with the "Localizar balcões" link on the Autenticação.Gov page and check its booking rules.
- After you activate, test it on a service you need, such as the school portal or the Finanças login, before you rely on it for a deadline.
Do not send passport scans in a first message to us. Tell us what you hold (passport only, visa, receipt, card) and whether you have a NIF, and we will tell you which step comes first.
What this guide does not cover
- How to use the CMD inside the AIMA portal. We did not read an AIMA page on it today, so we make no claim about it.
- The app's PIN and security-code steps, for the reason given above.
- Fraud messages that mention the CMD. A gov.pt notice on this exists, but its text did not load on 21 November 2026, so we cannot quote it. As a rule, never read out a code you receive by message to anyone who contacts you.
- Any rule for citizens of other countries. This guide is written for readers in Pakistan.
Questions applicants ask
Can I activate the Chave Móvel Digital with a Pakistani passport?
Yes. gov.pt lists a passport among the documents a foreign national can link to the CMD. Because you have no Portuguese Cartão de Cidadão, the page says the activation is done at a counter, not online.
Do I need a NIF to get the Chave Móvel Digital?
It depends on the document. gov.pt marks the residence title, residence card and residence certificates as needing a Portuguese NIF. It states no NIF condition next to the passport. We could not read gov.pt's troubleshooting guide on 21 November 2026, so ask the counter whether a NIF is needed for your case.
How much does the Chave Móvel Digital cost?
Nothing. gov.pt states: "A CMD é gratuita" (the CMD is free). Do not pay an agent or a website to activate it for you.
How long does the Chave Móvel Digital last?
gov.pt says that for a passport or a residence document the CMD has the same validity as the document it is linked to. A new passport or a replaced residence card is a new document, so check at a counter whether you need to activate again.
Can a child have a Chave Móvel Digital?
gov.pt says there is no minimum age, so children can have one. Each person needs their own mobile phone number, so a parent's number cannot be reused for the child.
Do I need the CMD before I arrive in Portugal?
No official source we read says the CMD is a visa document. It is an access tool for services after you arrive. The visa checklists are on our study visa and family reunification pages.
Official sources
Checked on 21 November 2026. Rules, fees and checklists change: always confirm on the official page before you apply.
- gov.pt: Activate the Digital Mobile Key (Ativar a Chave Móvel Digital) updated 19 October 2026; responsible entity: Agência para a Reforma Tecnológica do Estado
- Autenticação.Gov: How to activate the Chave Móvel Digital (Como ativar a Chave Móvel Digital?) undated page, read 21 November 2026
- Despacho Normativo n.º 6/2018: enrolment in public schools, Diário da República consolidated text, Article 7, as opened for our school enrolment guide on 12 November 2026



