Install
openclaw skills install crypto-guardianProvides security guidance and checks for safely managing crypto wallets, keys, seed phrases, approvals, multisig, and incident response for AI agents.
openclaw skills install crypto-guardianComprehensive cryptocurrency security system for AI agents managing on-chain assets. Based on real-world theft patterns targeting AI agents and their conversation histories.
Attackers actively scan public AI platforms, GitHub commits, and conversation logs for exposed private keys and seed phrases. A single private key in a chat history = immediate drain.
Real incident (2026-05-01):
Files that are NOT safe:
SESSION-STATE.mdworking-buffer.mdMEMORY.md.env (with the private key itself).json, .txt, .md in the workspaceSafe alternatives:
.env only, with keys referenced as env vars at runtimeHot Wallet (Small, Online)
Warm Wallet (Medium, Semi-Air-Gapped)
Cold Wallet (Large, Offline)
Purpose | Wallet Type | Key Storage
---------------------|--------------------|----------------------
Trading/Active | Software (Solflare) | .env, never in files
Grip/Bounty Earn | Software (MetaMask) | Seed phrase in .env only
Long-Term Savings | Hardware (Ledger) | Never touches computer
signer.py / signer.ts pattern: key in env → sign in-processWhen you approve a token spending, you often approve "unlimited" tokens. This means if the contract is malicious or hacked, they can drain your entire balance.
Rule: Always set specific approval limits, not unlimited.
# Check token approvals on Etherscan/Blockscan
# 1. Go to the address on Blockscan/Polkassembly
# 2. Click "Token Approvals"
# 3. Revoke any unused or suspicious approvals
# For Base network:
# https://basescan.org/tokenapprovalchecker
For amounts >$5000 AUD, consider multisig:
Gnosis Safe (Free, on Base)
When to Use Multisig:
Unlike credit cards, crypto transactions are irreversible. Prevention is the only real protection.
Wallet Type | Address | Storage | Used For
---------------|-------------------|---------------|--------------------------
Active DCA | [DISCARDED] | None | (empty, was drained)
Bounty Earn | 0xD1089e... | .env only | Grip, ClawMoney
Watch-Only | [YOUR WALLET] | TOOLS.md | Monitor only
New DCA Wallet| TBD (new generation) | Hardware | Jupiter DCA (future)
# Correct: Private key in environment only
from dotenv import load_dotenv
load_dotenv()
private_key = os.environ["SOLANA_PRIVATE_KEY"] # Never written to file
# Wrong: Private key written to any workspace file
# private_key = "[PRIVATE KEY]" # NEVER DO THIS
Use a different address for monitoring than for signing:
This way, even if monitoring credentials are exposed, the funds are safe.
| Security Level | Use Case | Key Storage |
|---|---|---|
| Maximum | Long-term savings | Hardware wallet only |
| High | Active project funds | .env + careful handling |
| Medium | Daily trading | Software wallet, small balance |
| Low | Testing/learning | Any, small amounts |
Rule of Thumb: The cost of losing a wallet should never be life-changing. Keep only what you can afford to lose in hot wallets.
Crypto Guardian v1.0 — Created 2026-05-01 after real wallet theft incident