The llm-keys-ui plugin provides a web interface to securely save LLM API keys on a machine without pasting them directly into agent sessions or the ChatGPT app.
Simon Willison has shipped a small plugin called llm-keys-ui, and the reason he built it is the most instructive part:
"I don't like pasting API keys into agent sessions, so I wanted a way to get those keys onto a machine without pasting them into the ChatGPT app directly."
That sentence describes a real, mundane security problem. An API key is a secret credential — it identifies you to a service and usually bills to your account. If you paste it into a chat or an agent session, it is now sitting in that session's history, which may be logged, synced, retained by the provider, or echoed back later in ways you don't control. The usual advice — "don't put secrets in chat" — collides with the practical need to actually get the key onto the machine where the agent runs. llm-keys-ui exists to close that gap: it provides a web interface for saving LLM API keys on a machine, so the key travels through a purpose-built channel rather than through the conversation itself.
Now, a plain-language caveat this publication owes you: this is developer tooling. The person it serves is someone who runs "coding agents" — AI assistants that write and execute software — on remote machines, meaning a computer they access over a network rather than the laptop in front of them. When the agent lives on a machine you don't physically control, typing the key locally is not an option, and pasting it into the agent's session is exactly what Willison was trying to avoid. The plugin gives you a web page to enter the key into instead, so the secret lands in the machine's configuration without ever appearing in the chat transcript.
If you are a non-developer who uses ChatGPT or Claude through a normal app or website, this does nothing for you — your keys are handled by the provider, and there is no remote machine in the picture. We flag that plainly because it would be easy to dress this up as a general privacy tool; it is not one. Its value only exists inside a specific workflow: agent on one machine, human on another, key that must cross between them without going through the conversation.
Within that workflow, though, the idea generalizes beyond the plugin itself. "Where does the secret physically go, and does it pass through anything that records it?" is the right question to ask about any credential you hand to an AI system. An agent session is a transcript — treat anything typed into it as potentially permanent. A dedicated input channel, whether this plugin, an environment variable set over SSH, or a secrets manager, keeps the transcript clean and limits how many copies of the key exist.
On honesty about scope: this is a working, shipping plugin, not a proposal — Willison built it for his own use and released it. But there are limits worth naming. It solves the "keys into the machine" step and nothing else; it is not a secrets manager, doesn't speak to key rotation, revocation, or auditing, and it assumes you're already operating in the remote-agent world where the problem arises. Whether the web interface itself is exposed safely — who can reach that page, and over what connection — is a question the user still owns. For the narrow audience it targets, it removes one specific, recurring bad habit: treating a chat window as a place where secrets are allowed to live.