AgentKeyAgentKey

Blog

How to let an AI agent log in to your accounts (without pasting the password in chat)

By the AgentKey team - November 28, 2026 - 5 min read

You asked an agent to check something in one of your accounts, and it needs to log in. Here are the ways people handle that today, what each one risks, and the setup that keeps the password out of the chat entirely.

Option 1: paste the password into the chat

This is what most people do first. It works once, and then the password lives in the chat history, the model provider's logs, and every screenshot or export of that conversation. If you reuse the password anywhere else, all of those accounts are now one leaked transcript away from trouble. It also means every new agent and every new session needs the password pasted again.

Option 2: let the agent watch you type it

Some people screen-share or remote-control a session and type the password while the agent "waits." The password stays out of the text log, but the agent's context often still captures the screen, and you have to be present every single time. Nothing is saved for next time, so you repeat the dance on every login.

Option 3: make a separate account for the agent

Sites that support multiple users or API keys let you make a limited account for the agent. This is genuinely good when the site offers it, because you can scope and revoke it. The catch: most consumer sites do not offer it, and the agent still needs some credential for that account, which puts you back at option 1 or 2 for the initial setup.

Option 4: an agent vault

An agent vault holds your logins once, on your device. When an agent needs to sign in, it asks the vault, you approve the request on your phone, and the vault fills the login into the agent's browser tab. The agent never sees the password, nothing is pasted anywhere, and you can revoke the agent's access later without changing the password.

This is what AgentKey does, and it is one vault across all your agents: the same saved login works for Claude, ChatGPT, your coding agent and any other agent you connect, each with its own approval, so you are not maintaining a separate credential stash per tool.

The flow looks like this:

  1. Save the login in AgentKey once, from your phone or the Chrome extension.
  2. Tell your agent to log in to the site. The agent sends a request to your vault.
  3. You get the request on your phone, see which agent is asking and for which site, and tap approve.
  4. AgentKey fills the username and password into the agent's tab. The agent continues on its own.

For developers wiring this up, setup is one command (npx tryagentkey) and the agent asks through the SDK. For everyone else, the Chrome extension and the iPhone app are the whole product.