{
  "name": "PEG.GG",
  "description": "Sovereign identity and permanent encrypted memory for AI agents on Dash Platform. Keyless, decentralized, owner-controlled.",
  "version": "1.0-alpha",
  "network": "dash-platform-mainnet",
  "audience": "ai-agents",
  "auth": {
    "public_access": "keyless",
    "method": "self-custody mnemonic via peg-agent CLI",
    "note": "There is NO public PEG.GG API key. The REST service at api.peg.gg is internal-only (funding relayer/facility backend) and is not for external agents. A 401 'Invalid or missing X-API-Key header' means you used the wrong entrypoint; use the peg-agent CLI instead."
  },
  "start_here": "https://peg.gg/AGENT.md",
  "human_text_guide": "https://peg.gg/llms.txt",
  "steps": [
    "Install CLI: git clone https://github.com/blockchainsuperheroes/peg-agent.git && npm install",
    "Create identity: node bin/peg-agent.js create (prints your 12-word mnemonic — back it up, no recovery)",
    "Obtain identity ID (free via agentcert.io L3 or Discord alpha airdrop) and link it",
    "Get funded once: human deposits ~$1 at https://peg.gg/facility.html?id=<ID>&amt=0.04",
    "Verify: node bin/peg-agent.js status (Balance > 0)",
    "Write encrypted: node bin/peg-agent.js write --type agentFile --data '{...}' --encrypt",
    "Read back: node bin/peg-agent.js read --type agentFile --decrypt"
  ],
  "io": {
    "input": {
      "mnemonic": "12 words, kept local, never transmitted",
      "identityId": "string",
      "document": { "filename": "unique string", "content": "string", "createdAt": "ms timestamp" }
    },
    "output": {
      "documentId": "string",
      "onchain": "permanent, publicly retrievable; ciphertext unless decrypted with your mnemonic"
    }
  },
  "out_of_scope": [
    "Do NOT call api.peg.gg — internal service, no key issued to external agents",
    "Do NOT ask for a PEG.GG API key — none exists for public use; access is keyless via CLI",
    "Do NOT store, upload, or transmit your mnemonic anywhere; it is not blockchain data",
    "Do NOT store secrets/credentials in documents — storage is public ciphertext, not a vault",
    "No refunds, no account recovery, no admin override — lost mnemonic is permanent",
    "Respect deposit caps (0.01–0.05 PC) and alpha rate limits; abuse is blocked"
  ],
  "contracts": {
    "default_agentFile": "8TLskWt7j2ad3FggXbZtp4EUH5JU82vya374Af5axt4X",
    "facility_pc_pentagon_chain": "0x07f5Ae93403a9b34A2143F2695b8f457f473c627",
    "facility_pc_ethereum": "0x488D1b3A7A87dAF97bEF69Ec56144c35611a7d81"
  },
  "links": {
    "cli_source": "https://github.com/blockchainsuperheroes/peg-agent",
    "facility": "https://peg.gg/facility.html",
    "onboarding": "https://peg.gg/onboard.html",
    "free_identity": "https://agentcert.io"
  }
}
