Approve from your iPhone
An agent that runs flint exec, flint exec --sudo or flint read waits for your
approval in Flint’s window (Use Flint with an AI agent). Away from
the desk, the iPhone app can answer it: the same request, approved or denied with Face
ID, and the agent goes on.
Phone alerts through ntfy (Alerts on your phone) only tell you to come back. A paired iPhone can answer.
What it needs
Section titled “What it needs”- A vault that syncs with a vault server: the phone and this computer talk through that server’s relay (Self-host a remote vault). A vault kept only on this computer shows Pairing a phone needs a vault server, with a link to Settings → Vault.
- The vault unlocked: the relay’s connection is open only while it is.
- On Linux, a libcurl with WebSocket support (
curl --versionlistswsandwssunder Protocols): Debian 13 has it; Ubuntu 24.04 and its derivatives do not, so there a phone pairs but Flint cannot reach the relay to send it requests.
With no phone paired, Flint opens no connection to the relay and sends nothing.
Pair a phone
Section titled “Pair a phone”In Settings → Phone, Pair a phone:
- Flint shows a QR code and a link,
flint-pair:1:…. It works once, for 10 minutes, and only through your vault’s server. Copy it, or scan it. - On the iPhone, open Flint, tap Pair and paste the link.
- Both screens show the same 12-digit code. Check every digit: a different code means the answer did not come from your phone. Click They match on the computer. They don’t match cancels and keeps nothing on either side.
- The phone is paired, with Approve from this phone off.
A pairing that runs out, a code you reject, or an answer that does not come from the phone that saw the code ends with nothing saved. A new pairing gets a new code.
Approve from this phone
Section titled “Approve from this phone”Each paired phone has its own switch, off until you turn it on. While it is off, the phone is sent nothing to answer: it shows that requests wait at the computer, and how to turn approving on.
With it on, a request that waits for you in Flint’s window also reaches the phone, sealed: the program that asks, the command, the host, the user, root or not, and the durations Flint offers. Answer on either side; the first answer counts.
- Allow asks for Face ID on the phone, then the computer checks the phone’s signature over exactly what it asked before it makes the grant. A signature that does not match (a changed command, host, duration) is refused, and nothing runs.
- Root (
exec --sudo) is held for two seconds before Face ID, and a root period from the phone (2, 5 or 15 minutes) is offered only while Allow sudo for a while is on, with every rule of a root period from the desk. - Deny ends the request, as at the computer.
Unpair
Section titled “Unpair”Unpair on a phone’s row removes it from the server, so its connection closes, then
here. Grants already running keep going until they end; other phones are untouched. On
the server, flint-vault-server relay remove does the same for a lost phone.
What the phone never gets
Section titled “What the phone never gets”The phone never holds the vault, a password, a key or a command’s output: only the request’s details above, sealed end to end, kept in memory. Its signing key lives in the iPhone’s Secure Enclave and never leaves it. The server relays sealed messages and cannot read or answer them. See the security model.