cd /news/ai-agents/show-hn-agentkey-open-source-agents-… · home › topics › ai-agents › article
[ARTICLE · art-175847] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: AgentKey, open source, agents log in without seeing passwords

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.

key 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.

read4 min views4 publishedNov 25, 2026
Show HN: AgentKey, open source, agents log in without seeing passwords
Image: Michielbdejong (auto-discovered)

Owner-approved logins for AI agents. Your agent signs in. It never sees the password.

Demo film: coming soon. This space is reserved for a short real recording of an agent logging in through AgentKey.

AgentKey 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.

npm install tryagentkey
npx tryagentkey

That 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.

The 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.

With that host connected, ask your agent to log in. It uses agentkey_pages, agentkey_login, and agentkey_status. Browser tools are d 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.

Other frameworks can use explicit browser wiring. See examples for runnable files:

import { agentkey } from "tryagentkey";
const ak = await agentkey();
await ak.login("https://github.com/login", { page }); // page is your Playwright page

Python:

pip install "tryagentkey[playwright]"
python
from tryagentkey import agentkey
ak = agentkey()
ak.login("https://github.com/login", page=page)

Node 22.12 or newer. Python 3.9 or newer.

The 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).

Free Local AgentKey Cloud (paid)
Price Free See agentkey.waiwiser.com/builders
Users You, on one machine Many users and teams
Logins stored On your computer End-to-end encrypted, synced across devices
Approvals Local approve page Phone approval
Needs internet or account No Yes

Cloud is for sync, multiple users and phone approval. It is not needed to use the SDK locally.

Package Purpose
tryagentkey JavaScript SDK, CLI, local vault and connector helpers
tryagentkey (Python) Python SDK with Playwright, LangChain, OpenAI Agents, CrewAI and browser-use examples
@tryagentkey/runtime Approved credential use in a browser page your agent already runs (cloud mode)
@tryagentkey/mcp MCP server for cloud mode. It needs an AgentKey Cloud token and is not a local-mode integration.
  • 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.

  • You need a browser page your agent controls (Playwright or a supported framework).

  • CAPTCHAs and two-step codes and hand control to you. AgentKey does not solve them.

  • This is not a sandbox. Code running inside your agent process is trusted. See SECURITY.md .

  • Tests do not cover every site or browser. Try a throwaway login first.

  • Troubleshooting and FAQ

  • Open an issue or start adiscussion

  • Contributing

  • Release notes: releases/

Apache-2.0. Copyright 2026 AgentKey, Inc. The license permits commercial reuse and forks. It does not grant rights to the AgentKey brand. See LICENSE and NOTICE.

The hosted application and backend are not in this repository.

Other 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.

Security 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.

── more in #ai-agents 4 stories · sorted by recency
── more on @agentkey 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-agentkey-ope…] indexed:0 read:4min 2026-11-25 · —