{"slug": "show-hn-agentkey-open-source-agents-log-in-without-seeing-passwords", "title": "Show HN: AgentKey, open source, agents log in without seeing passwords", "summary": "AgentKey, an Apache-2.0 open-source password vault for AI agents released as the npm package tryagentkey and a Python package, lets an agent request a login that the owner approves on a local approval page, after which AgentKey fills the credential into the browser page so the password never passes through the agent or its model. The tool registers on an existing Playwright MCP connection configured with --extension, --cdp-endpoint or a project --config file, exposes agentkey_pages, agentkey_login and agentkey_status tools, and requires Node 22.12 or newer or Python 3.9 or newer. The free local mode runs offline with no account, while the paid AgentKey Cloud tier adds end-to-end encrypted sync, multi-user support and phone approval; the project states it is not a sandbox and that CAPTCHAs and two-step codes pause for the owner to handle.", "body_md": "**Owner-approved logins for AI agents. Your agent signs in. It never sees the password.**\n\nDemo film: coming soon. This space is reserved for a short real recording of an agent logging in through AgentKey.\n\nAgentKey is a password vault built for AI agents. The agent asks to log in, you approve, and AgentKey fills the credential into your browser page. The password does not pass through your agent or your model.\n\n```\nnpm install tryagentkey\nnpx tryagentkey\n```\n\nThat sets up a local vault and coding-agent instructions. If your project already has a supported Playwright MCP existing-browser connection in `.mcp.json`, it registers AgentKey on that connection too. Restart the coding host's MCP connection once to load the new tools. The browser stays the same; AgentKey does not create a replacement browser or copy a profile.\n\nThe supported automatic connection is one `npx @playwright/mcp` server configured with `--extension`, `--cdp-endpoint=...`, or a project `--config` file that names an existing browser endpoint. Unsupported configurations are left unchanged with a reason. Setup does not grant website access: the owner still approves on the local approval page.\n\nWith that host connected, ask your agent to log in. It uses `agentkey_pages`, `agentkey_login`, and `agentkey_status`. Browser tools are paused while a login is in progress. Passwords are entered on the local owner approval page, never in agent messages. Completion requires sign-out evidence and the saved username on the original site. Sites with no exact identity evidence remain unverified.\n\nOther frameworks can use explicit browser wiring. See [examples](https://github.com/edan-ais/agentkey/blob/main/examples) for runnable files:\n\n``` js\nimport { agentkey } from \"tryagentkey\";\nconst ak = await agentkey();\nawait ak.login(\"https://github.com/login\", { page }); // page is your Playwright page\n```\n\nPython:\n\n```\npip install \"tryagentkey[playwright]\"\npython\nfrom tryagentkey import agentkey\nak = agentkey()\nak.login(\"https://github.com/login\", page=page)\n```\n\nNode 22.12 or newer. Python 3.9 or newer.\n\nThe free local mode is the whole SDK, not a trial. It works offline with no account and no card. You can read the code, run it, and fork it (Apache-2.0).\n\n|  | Free Local | AgentKey Cloud (paid) | \n|---|---|---|\n| Price | Free | See [agentkey.waiwiser.com/builders](https://agentkey.waiwiser.com/builders) | \n| Users | You, on one machine | Many users and teams | \n| Logins stored | On your computer | End-to-end encrypted, synced across devices | \n| Approvals | Local approve page | Phone approval | \n| Needs internet or account | No | Yes | \n\nCloud is for sync, multiple users and phone approval. It is not needed to use the SDK locally.\n\n| Package | Purpose | \n|---|---|\n| [`tryagentkey`](https://github.com/edan-ais/agentkey/blob/main/packages/sdk) | JavaScript SDK, CLI, local vault and connector helpers | \n| [`tryagentkey` (Python)](https://github.com/edan-ais/agentkey/blob/main/packages/sdk-python) | Python SDK with Playwright, LangChain, OpenAI Agents, CrewAI and browser-use examples | \n| [`@tryagentkey/runtime`](https://github.com/edan-ais/agentkey/blob/main/packages/agentkey-runtime) | Approved credential use in a browser page your agent already runs (cloud mode) | \n| [`@tryagentkey/mcp`](https://github.com/edan-ais/agentkey/blob/main/packages/mcp) | MCP server for cloud mode. It needs an AgentKey Cloud token and is not a local-mode integration. | \n\n- Automatic browser registration currently supports the project Playwright MCP connection described above, not every agent. A host restart is required after its configuration changes. Other hosts use the existing SDK adapters or coding-agent instructions.\n- You need a browser page your agent controls (Playwright or a supported framework).\n- CAPTCHAs and two-step codes pause and hand control to you. AgentKey does not solve them.\n- This is not a sandbox. Code running inside your agent process is trusted. See [SECURITY.md](https://github.com/edan-ais/agentkey/blob/main/SECURITY.md) .\n- Tests do not cover every site or browser. Try a throwaway login first.\n\n- [Troubleshooting and FAQ](https://github.com/edan-ais/agentkey/blob/main/docs/TROUBLESHOOTING.md)\n- [Open an issue](https://github.com/edan-ais/agentkey/issues/new/choose) or start a[discussion](https://github.com/edan-ais/agentkey/discussions)\n- [Contributing](https://github.com/edan-ais/agentkey/blob/main/CONTRIBUTING.md)\n- Release notes: [releases/](https://github.com/edan-ais/agentkey/blob/main/releases)\n\nApache-2.0. Copyright 2026 AgentKey, Inc. The license permits commercial reuse and forks. It does not grant rights to the AgentKey brand. See [LICENSE](https://github.com/edan-ais/agentkey/blob/main/LICENSE) and [NOTICE](https://github.com/edan-ais/agentkey/blob/main/NOTICE).\n\nThe hosted application and backend are not in this repository.\n\nOther MCP servers, browser extensions and arbitrary code under the same OS account are outside this wrapper's lock. Do not expose another browser-control channel or recording tool to the model during credential use. The exact Playwright MCP dependency is pinned to0.0.86, but npx downloads still trust the npm registry/package integrity process. This is not isolation from a compromised host or OS user. The installer leaves a0600 recovery backup of the prior MCP config; after verifying the new host connection, remove that named backup if no longer needed.\n\nSecurity boundary: this bridge protects against a model whose only browser access is the filtered MCP tools on this connection. The local `machine.key` sits beside `vault.enc`. Any process running as the same OS user, including a model with shell access, can read the key and decrypt saved logins. In CDP mode another local process can drive that browser. This is not a sandbox, hardware-backed vault, or proof of human presence. The legacy approval wording about the computer means local storage, not isolation from other programs on it. Do not give the model another browser-control channel or shell access if this boundary is required. The busy window runs from accepting a login request until residual credential DOM is destroyed; other servers and extensions are not locked. Local vault writes do not support concurrent writers; use one bridge process per vault. Bare setup requires a desktop session and opens owner approval separately. Direct legacy `init` is for a human terminal, not an agent terminal.", "url": "https://wpnews.pro/news/show-hn-agentkey-open-source-agents-log-in-without-seeing-passwords", "canonical_source": "https://github.com/edan-ais/agentkey", "published_at": "2026-11-25 02:43:07+00:00", "updated_at": "2026-11-25 03:13:52.511816+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "ai-safety"], "entities": ["AgentKey", "tryagentkey", "Playwright MCP", "@tryagentkey/mcp", "@tryagentkey/runtime", "LangChain", "OpenAI Agents", "CrewAI"], "also_reported_by": [], "takeaway": "AgentKey keeps credentials out of the model by having the owner enter passwords on a local approval page and letting the agent call agentkey_login against an existing Playwright MCP browser connection, with completion verified by sign-out evidence and the saved username on the original site.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-agentkey-open-source-agents-log-in-without-seeing-passwords", "markdown": "https://wpnews.pro/news/show-hn-agentkey-open-source-agents-log-in-without-seeing-passwords.md", "text": "https://wpnews.pro/news/show-hn-agentkey-open-source-agents-log-in-without-seeing-passwords.txt", "jsonld": "https://wpnews.pro/news/show-hn-agentkey-open-source-agents-log-in-without-seeing-passwords.jsonld"}}