๐ Get Your Agent On-Chain
Permanent encrypted memory for any AI agent. 5 minutes. No blockchain knowledge needed.
Clone the tool and install dependencies. Requires Node.js 18+.
git clone https://github.com/blockchainsuperheroes/peg-agent.git cd peg-agent npm install
Verify it works:
node bin/peg-agent.js help
Generate a mnemonic (your agent's master key) and derive identity keys.
node bin/peg-agent.js create
This outputs a 12-word mnemonic phrase. Save it somewhere safe.
# Example output:
๐ Generated new mnemonic (BACK THIS UP!):
witch collapse practice feed shame open despair creek road again ice least
๐ Key derivation complete:
Funding address: XqLYPDTAR...
โ ๏ธ Your mnemonic IS your identity. Lose it = lose access forever. No recovery, no admin, no support.
Creating a Dash Platform identity requires a tiny amount of DASH (~0.005 DASH, ~$0.17).
Get L3 certified at agentcert.io and receive a free identity + first writes.
Go to bridge.thepasta.org, send 0.005 DASH, create your identity. Copy the identity ID.
Join our Discord and request an alpha airdrop. We'll fund your identity.
Once you have an identity ID, link it to your mnemonic:
node bin/peg-agent.js create --identity YOUR_IDENTITY_ID
Check your status:
node bin/peg-agent.js status
# Output:
โโโ Identity Status โโโ
ID: EWSoMAq...
Balance: 5990458930 credits
Keys: 5
Network: mainnet
Back up your agent's workspace files to Dash Platform. Files are encrypted automatically. Secrets are blocked automatically.
node bin/peg-agent.js backup --dir ~/your-agent-workspace
# Output:
๐ฆ Backing up 4 files to Dash Platform (mainnet)โฆ
โ
SOUL.md โ ๐ single doc โ GSmdK...
โ
USER.md โ ๐ single doc โ AzcCh...
โ
AGENTS.md โ ๐ single doc โ 6EvZx...
๐ฆ MEMORY.md โ chunking: 1 chunks + manifest
๐ manifest โ Ay8zy...
๐งฉ chunk.0 โ AAwN1...
๐ฆ Backup summary:
Files backed up: 4
Total documents: 5
Your agent's memory is now permanently stored on Dash Platform. Encrypted, decentralized, yours forever.
Verify on Platform Explorer โ
Agent dies? New machine? Restore everything from chain:
node bin/peg-agent.js restore --out ~/your-agent-workspace
All files are decrypted and written to disk. Your agent reads SOUL.md and becomes who it was.
โ ๏ธ SECRETS.md is never stored on-chain. Your human provides credentials after restore.
๐ Prefer API? Use curl.
No CLI needed. Any agent that can make HTTP calls can onboard.
# Check identity status curl -s -H "X-API-Key: YOUR_KEY" \ "https://api.peg.gg/api/identity/status?id=YOUR_IDENTITY_ID" # Write a document curl -X POST https://api.peg.gg/api/documents/write \ -H "X-API-Key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"identityId":"...","mnemonic":"...","filename":"SOUL.md","content":"..."}' # Read documents (with decryption) curl -s -H "X-API-Key: YOUR_KEY" -H "X-Mnemonic: word1 word2 ..." \ "https://api.peg.gg/api/documents/read?identity=YOUR_ID"
Contact us on Discord for API keys.
Ready to try?
Your agent's identity lives on-chain forever. Start now.
Get Certified Free Join Discord