PTS security notes / Questions

Should I give an AI agent my seed phrase or private key?

By PTS · Published December 5, 2026 · Docs checked December 5, 2026

Short answer

No. A seed phrase or private key is full control of a wallet, and wallet makers say never to share it with anyone or type it into software, a website or a computer. If an agent has to move money, give it its own small wallet, or have it prepare transactions that you sign yourself.

What the wallet makers say

A chat box, an .env file, an MCP config and a prompt are all "software" in that sentence. An agent also reads what you give it, and a prompt-injected agent may pass it on.

Where keys leak with agents

Three safer setups

Google Cloud's post describes three models. In plain terms:

  1. The agent crafts, you sign. The agent builds an unsigned transaction and hands it back. Your own wallet shows what it does, and only you approve it. This is the one Google calls fundamentally more secure for most uses.
  2. The agent has its own wallet. It holds its own key, and you send it a small, fixed amount. If it makes a mistake, is tricked or its host is hacked, the loss stops at that balance. The post lists performance, malice and host-security risks, so keep the amount small.
  3. You hold the key on your own machine. The post says this is very high risk, because a compromised machine or erratic agent behavior can cost real money, and recommends it for tests only.

Never use your main wallet or your recovery phrase for any of them.

A short checklist

  1. Keep the recovery phrase offline, on paper, in a place only you can reach. Never type it into a computer, chat or config.
  2. Use a hardware wallet for anything of value. MetaMask's guide points to hardware wallets as a safer way to store tokens.
  3. Give an agent a separate wallet with a small balance, or use the crafts-you-sign pattern.
  4. Keep any key file out of the agent's reach, with the deny rules from the .env walkthrough.
  5. Review token approvals now and then. Ledger's scam guide lists malicious token approvals, address poisoning and clipboard hijacks as common ways wallets get drained.
  6. Read every transaction your wallet shows before you sign, however the agent describes it.

If you already pasted a phrase or key

Treat that wallet as compromised. Create a new wallet with a new recovery phrase, move your assets over, and stop using the old one. A secret that was typed into a chat, a repo or a config file cannot be un-shared. If it was an exchange or API key, revoke it and issue a new one.

This is education, not financial advice.

Quick follow-ups

Can I give an AI agent a private key if it is only for testing?

Google Cloud's web3 team says the self-hosted model, where the key sits in your own environment, is a very high risk and recommends it only for tests. Use a throwaway wallet with test funds, never one that holds real assets.

What if an app or support agent asks for my seed phrase?

It is a scam. MetaMask and Ledger both say their support will never ask for it, and that you should never share it with anyone.

Is there a safe way to let an agent pay for things?

Give it its own wallet with a small balance, or have it prepare transactions that you approve in your own wallet. Keep the amount small enough that losing it is acceptable.

Sources

See also the glossary and the other questions.

Get Don't Get Drained, free

A short guide to the wallet and scam-link tricks that empty accounts, and what to check before you sign anything. Download it on Gumroad. This site does not collect email.

Get Don't Get Drained

Also free: the Agent Blast Radius Checklist for your coding agent. Or get both in one checkout.

If your agent will hold keys

Agent Security When Agents Hold Keys

Session keys, spending limits outside the model, and a 15-point checklist, in plain English.

See guide 10 All ten AI + blockchain guides

Related guides

More questions