Magic link: signing in from an email, with no password
A site emails you a link instead of asking for a password. Opening it proves you control the inbox, and the link stops working.
An agent’s own inbox
- 14:20:10Agent enters its address on the sign-in pagesam@agents.example
- 14:20:12Email arrives: “Your sign-in link for Larkfield”From: login@larkfield.example
- 14:20:12Link read out of the emailToken in the address, expires in 15 minutes
- 14:20:13Agent opens the link in its browserSigned in as sam@agents.example
- 14:21:40Same link opened againSite answers: link already used
Larkfield is an invented company. A magic link is only as private as the inbox that receives it.
A magic link is a single-use link, sent to a person’s email address, that signs them in or confirms an action when they open it, with no password typed. The link carries a random token that works once and expires, so whoever controls the inbox controls the sign-in.
On this page
How a magic link works
- The person types their email address on the sign-in page.
- The site creates a random token, stores it and emails a link that contains it.
- The person opens the link. The site checks the token, signs them in and marks it used.
The OWASP Forgot Password Cheat Sheet sets the rules for a password-reset token, and they apply equally to a sign-in link. It should be single-use and expire after an appropriate period, generated with a cryptographically secure random number generator, and long enough to resist brute force. The link should use HTTPS.
Magic link or one-time code
A magic link and a one-time password both prove control of an inbox or phone. The link opens in one tap, and the code has to be typed. NIST’s SP 800-63B-4 says email must not be used for out-of-band authentication, though a code that only confirms an address, as at sign-up, is not authentication. Sites that need more assurance add another factor.
Why a magic link matters to an AI agent
An agent has no password to remember and no way to answer a link sent to an address it does not own. With its own inbox, it receives the email, opens the link in its browser and carries on.
Obsession gives each agent its own email inbox, and links and codes are pulled out of each message for it. The agent opens the link in its cloud browser, and the email arrives in the event log with its time. Can AI agents log in to websites? covers the other ways in.
It is as safe as the inbox that receives it. Anyone who can read that email can sign in, so a good link is single-use, expires quickly and travels over HTTPS.
The site sets how long a link lasts and invalidates it once used. Request a new one and open it soon after it arrives.
Yes, if it has an inbox of its own. The link is read out of the email and opened in the agent’s browser.
Email for AI agentsSources
In the order the page cites them. Every page was read on 24 Nov 2026.