AgentKeyAgentKeyBack to blog

How an AI agent can sign in without seeing your password

A plain-English look at the approve-then-use flow.

The AgentKey Team · November 24, 2026 · 4 min read

If you paste a password into an AI chat, it becomes part of that conversation. Putting it in a config file moves it out of the chat, but creates another copy to protect.

A different pattern is to give the agent a way to request a login, rather than giving it the password itself.

The agent asks. You decide.

The agent requests access to a site. You review the request and approve or deny it through an owner-facing page, separate from the agent's conversation. Setting up the software is not the same as granting website access. A supported connection still needs your approval before it can use a login. Where you have explicitly allowed repeat use, that permission needs its own limits and a way to revoke it.

The login happens outside the chat

In AgentKey's supported login flow, you enter the credential on the owner-facing page. AgentKey fills it into the browser instead of returning it as a tool response for the model to read. The password does not need to appear in the prompt or the conversation. That is the useful boundary: the agent can ask to sign in without receiving the credential as text.

A filled form is not proof of a successful login, though. A site may ask for a two-step code or a human check. Those steps still need to be completed, and the signed-in account should be checked before account-sensitive work continues.

Give access to a login, not your whole vault

Approval should be specific. An agent helping with a social account should not need an unrelated bank login. Review the site and the access being requested, and remove permissions you no longer need. AgentKey's Cloud connection flow includes owner-controlled login grants and revocation. That is different from handing over a reusable password and hoping every copy gets deleted later.

Local does not mean isolated

AgentKey's free Local Mode stores an encrypted vault on your computer. It keeps passwords out of normal login-tool responses, but it is not a sandbox against other programs running as the same computer user. The local process and operating-system account still need to be trusted. A model with unrestricted shell access can cross boundaries that a filtered login tool cannot enforce. Do not treat an approval page as protection from a compromised computer.

Where to start

AgentKey's web app and Chrome extension are available, and developers can install the SDK from npm. The current JavaScript release offers one-command setup with npx -y tryagentkey@0.6.2 in a supported desktop environment. Your coding host may still need a reload and its own project-trust approval. Start with a throwaway login. Confirm which account signed in, test the approval flow, and understand the access you are granting before using an important account.