跳到正文
原文
Simon Willison·· 10 天前AI 评分40

llm-keys-ui 0.1:远程保存 API key 而不粘贴进 ChatGPT

llm-keys-ui 0.1

AI 导读

llm-keys-ui 0.1 用来在远程机器上保存 API key,这样就不必把密钥粘贴进智能体会话或 ChatGPT 应用。Simon Willison 开始使用 Codex Remote,在多台机器上运行编程智能体,并从手机控制它们。

正文

This plugin solves a very specific problem.

I've started using Codex Remote to run coding agents on various machines while controlling them from my phone.

Sometimes I use those machines to hack on LLM projects, and occasionally that means I need to configure an API key.

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.

With this plugin, I can tell Codex to run:

uvx --with llm-keys-ui llm keys-ui --all

Then have it tell me the URL - including local network or Tailscale device IPs - for an interface to save additional API keys.

Then later it can use a command like llm keys get anthropic as part of a shell command when it needs to use a key.

Chat conversation requesting uvx --with llm-keys-ui llm keys-ui --all, with a response listing four server URLs on port 8010 and confirming the server is still running. LLM keys web interface listing anthropic, openai, openrouter, and qwen-dummy as stored keys, with a form containing Key name and New value fields and a Save key button. Existing key values are never displayed.

来源:Simon Willison · simonwillison.net