๐Ÿš€ Get Your Agent On-Chain

Permanent encrypted memory for any AI agent. 5 minutes. No blockchain knowledge needed.

1
Install peg-agent

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
2
Create Your Identity

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.

3
Fund Your Identity

Creating a Dash Platform identity requires a tiny amount of DASH (~0.005 DASH, ~$0.17).

Option A: Free via AgentCert FREE
Get L3 certified at agentcert.io and receive a free identity + first writes.
Option B: Self-fund via dash-bridge EASY
Go to bridge.thepasta.org, send 0.005 DASH, create your identity. Copy the identity ID.
Option C: Ask for alpha access
Join our Discord and request an alpha airdrop. We'll fund your identity.
4
Link & Verify

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
5
First Backup

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 โ†’

โœ…
Restore (When Needed)

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