Skip to content

Secrets

Some tasks need a key: a Stripe secret key for checkout, a Shopify token, a GitHub token. Plyed keeps these in a vault on your Mac. The assistant uses them by name, like secret:stripe-secret-key, and Plyed swaps in the real value at the moment it’s used. The value never goes into the chat, the assistant’s context or your chat history.

When the assistant needs a key, it doesn’t ask you to paste it into the chat. A secure field shows up in the conversation instead:

  • what the key is for, in the assistant’s words, and its name (secret:…)
  • where it goes: always your Mac’s keychain, and, if the assistant asked, your project’s .env file under a variable name like STRIPE_SECRET_KEY
  • which site it’s for, if the assistant named one: Plyed uses the key with that site without asking, and asks you first before using it anywhere else

Paste the value into the field (Show reveals what you pasted) and press Save. The assistant is told only that a secret was saved and how many characters it has. Cancel tells it you’d rather not.

If a secret with that name is already saved, the field asks Replace the saved value? before it saves.

Open Account → Connections → Secrets and press Add secret:

  1. Name: a short name like stripe-secret-key. You can also type a name the way your code spells it, like STRIPE_SECRET_KEY; Plyed turns it into stripe-secret-key.
  2. Value: paste it. It stays hidden unless you press Show.
  3. For site (optional): the site that may use it without asking, like api.stripe.com.
  4. Also put it in your open project (optional): your site can then read it while it builds.

The list shows each secret’s name, site, project, length and the day you saved it. It never shows the value. Delete removes a secret from the keychain.

If you paste something that looks like a key or token into the chat box, like sk_live_…, ghp_… or a long random string, Plyed asks before it goes anywhere: This looks like a secret. Save it to your vault so the agent only sees a reference?

  • Save as secret saves it under the suggested name (you can change it) and replaces it in your message with secret:<name>.
  • Send anyway sends your message exactly as you typed it.

Links, commit hashes and ordinary text don’t trigger this prompt.

In a cloud chat there’s no vault (the cloud computer can’t read your Mac’s keychain), so the choices are Remove it or Send anyway. For a cloud project, add keys in the project’s environment settings instead.

  • The value isn’t in the chat, the assistant’s context, your chat history or Plyed’s logs. If a tool’s output would show a saved value (for example, printing your .env file), the assistant sees [secret:<name>] in its place.
  • The assistant can’t publish a saved value: a file write or a web request that contains one is refused.
  • Values are encrypted in your Mac’s keychain, so they aren’t in your project, your backups of it or git.
  • Not protected: any program running as your macOS user can read your keychain, and so can code you run yourself. Plyed blocks the assistant’s commands from reading the keychain directly, which makes misuse harder, but it isn’t a sandbox. Only run projects and tools you trust.
  • A value you put in .env is a normal file in your project. Variables that start with PUBLIC_ are included in your published site, so don’t give a secret key a PUBLIC_ name.