Guide

Unlocking your Mac with your Android phone’s fingerprint

Nightdesk keeps your Mac’s password on your Android phone, behind its fingerprint. When the Mac is locked, tap Unlock and touch the sensor, and the phone types the password into the lock screen. When something on the Mac asks for its password, like sudo, an installer or System Settings, a card on the phone offers Fill with fingerprint. It works at home and from anywhere, and below is exactly what it fills and what it doesn’t.

By Sheroze, who built Nightdesk · All guides

01Set it up

Three steps, once

  1. Install Nightdesk on the Mac

    Download it from the Mac page (macOS 14 or later, free on the Mac) and allow Screen Recording and Accessibility. Accessibility is what lets Nightdesk type the password. Filling password prompts needs version 1.65 or later on the Mac and the phone, and the downloads are newer.

  2. Install the Android app and pair

    Get Nightdesk from Google Play (Android 12 or later) and scan the code in the Mac’s window. The phone needs a fingerprint or a screen lock set up.

  3. Save the Mac’s password once

    In Settings › Privacy & security › Unlock with your fingerprint, type the password you use to unlock the Mac and tap Save with fingerprint. It’s kept for that Mac only. You can also save it from the first request’s card, with Save password.

02A locked Mac

Unlocking it from the phone

Link to the Mac as usual. When its screen is locked, Unlock appears at the top of the picture. Tap it and touch the sensor (or enter the phone’s PIN): the phone wakes the Mac’s display, types the password into the lock screen over the encrypted link, and then tells you whether it worked.

While the Mac is plugged in, Nightdesk keeps it from going to sleep on its own, so a Mac that locked itself and turned its display off is still there to unlock, at home or from anywhere. When you’re done, Lock is under Careful in Controls.

After a restart, Nightdesk starts when you log in, so the first login after a restart has to happen at the Mac.

03Password prompts

Filling the Mac’s password prompts

When something on the Mac asks for its password while your phone is linked, a card comes up over the picture: your Mac asks for your password, in macOS’s own words (“sudo is trying to execute a command as administrator.”). Tap Fill with fingerprint, touch the sensor, and the Mac types the password in. It covers:

  • Administrator requests. Installers, System Settings, and anything that “wants to make changes”.
  • sudo. Its panel, if you’ve turned on Touch ID for sudo, and sudo waiting at Password: in Terminal or Ghostty.
  • The keychain. Its requests for your password, when an app “wants to use your confidential information”.
  • Touch ID’s window. When the Mac waits for a finger to fill a saved password or for an app’s own check, the card says it asks for Touch ID, and Nightdesk picks Use Password… for you.

If the Mac doesn’t accept the password, the card says so, and Update password saves the new one. When Nightdesk is linked but not on screen, a notification offers the same, and the phone keeps the link up to ten minutes while the request waits. The switch is Fill passwords your Mac asks for, under Settings › Privacy & security › Unlock with your fingerprint, and it’s on from the start.

04What it won’t fill

Where it stops

  • Safari’s passkey sheet. “Touch ID to Sign In” takes a finger on the Mac, a nearby device or a security key, with no way to use a password instead while the Mac’s Touch ID works, so a password can’t answer it.
  • Other passwords. Passwords for websites, apps, Wi-Fi, disks and ssh are never offered.
  • Someone else’s account. A dialog asking for another account’s name and password, such as an administrator’s on a standard account, and changing a password (two password fields).
  • Some terminals. sudo in VS Code’s or Cursor’s terminal panel, inside tmux or screen, over ssh, or with a custom prompt. Nightdesk can’t read those well enough to be sure the password lands in the right place, so it doesn’t offer.
  • Linux computers. GNOME’s password dialog gives Nightdesk no way to check who’s asking or to type into that one field, so it’s off there.

Fingerprint unlock: on Android now, coming to iPhone and iPad.

05How it’s kept safe

Where the password lives

  • On your phone only. It’s encrypted with a key in Android’s secure hardware that opens with your fingerprint or the phone’s screen lock, every time it’s used. If your fingerprints change, the saved password is removed and you save it again. The Mac never keeps it, and forgetting the Mac on the phone deletes it.
  • Inside the encrypted link. It travels only to the Mac you paired, end-to-end encrypted, so the relay in the middle can’t read it.
  • Only into macOS. Before typing, the Mac checks that the request comes from macOS itself (by Apple’s code signature on the program showing it) and that its password field has the keyboard. A look-alike window drawn by another app is never typed into.
  • Never on its own. Nothing is filled without your tap and your fingerprint for that one request. If something you didn’t start runs sudo, you see macOS’s words on the card and decide, as you would at the keyboard.

06Other options

Other ways to skip typing the Mac’s password

Apple Watch can unlock a Mac and approve its password requests when you’re near it, and a Magic Keyboard with Touch ID does the same at the desk. If you have either, it’s the easiest way when you’re in the room. A few iPhone apps unlock a Mac nearby over Bluetooth too.

I’d use Nightdesk for the other cases: an Android phone, a Mac in another room or another city, and sudo in a terminal as well as the lock screen. A long password typed through a picture of a lock screen is where typos come from, and a fingerprint doesn’t make any.

What it looks like on an ordinary day

A laptop with an amber light on its screen, on a wet stone plinth at night.

Unlock your Mac from across town with your fingerprint

Monday, 7:30 a.m.Daniel, consultant

Daniel links to his office Mac from the train and finds the lock screen.

A long password, typed through a remote screen on a moving train, is how typos happen.

How

  1. Once, he saves the Mac’s password in Nightdesk. It stays on his phone, encrypted with a key only his fingerprint or PIN opens.
  2. When the lock screen is up, the phone says so. He touches the sensor, and Nightdesk types the password in.

One touch instead of a long password, and no typos.

On a Mac.

An empty airport gate at night, an airliner under amber floodlights in the rain, a traveller waiting with a phone.
Nightdesk’s Home on a phone: orin-lab, reachable from anywhere, 31 ms away.

Fix a failed deploy from an airport gate

Sunday, 11:48 p.m.Hannah, site reliability engineer

Hannah’s release failed while she was waiting to board at gate B32, on a flight that was already late.

The fix needs her workstation at home: its checkout, its keys, its access. The airport Wi-Fi blocks almost everything, and she has no VPN home.

How

  1. She opens Nightdesk on 5G. When the phone can’t reach home directly, it links through the relay by itself, with nothing to set up.
  2. Everything is encrypted on her phone and on her computer. The relay passes along bytes it can’t read.
  3. She reruns the job, watches it go green, and boards.

Green before boarding, with no VPN and nothing to set up.

A living room at night: a closed laptop on a desk by the rainy window, and a hand on the sofa holding a phone.
Nightdesk’s Home on a phone: Studio Mac, a MacBook Pro, nearby, ready to link.

Keep working from the sofa with your MacBook shut

Thursday, 9:40 p.m.Noor, product engineer

Noor’s MacBook does the heavy lifting from the desk: builds, simulators, a couple of agents. By evening she’d rather be on the sofa.

She wants to carry on without unplugging anything, and with the lid closed.

How

  1. In Nightdesk on the Mac she sets up lid-closed mode once, with her password.
  2. She closes the lid. Plugged in, the Mac stays awake, with a virtual screen at her usual resolution.
  3. On the sofa her phone or tablet shows that screen, and Phone screen gives it her device’s exact shape.

The lid stays shut, the cables stay in, and the work comes to the sofa.

On a Mac.

Every use case

More guides

Try it on your own computer.

The Mac and Linux apps are free. On Android, everything is on for 3 days from your first link, with no card and no account, and after that it’s $4.99 a month or $57 once (US prices; Google Play shows yours). Nightdesk for iPhone and iPad is coming to the App Store.