peac.txt lets publishers, platforms, and APIs define how AI agents access, use, attribute, and pay for content; enforcing consent, attribution, payments, and compliance in just a few lines of code.
PEAC is like robots.txt, but verifiable, programmable, and designed for the AI-driven automated economy.
# peac.txt – sample
version: 0.9.2
protocol: peac
policy:
consent:
ai_training: conditional
web_scraping: allowed
economics:
pricing_models:
ai_training:
per_gb: 0.01
currency: USD
attribution:
required: true
format: "Source: {url}"
compliance:
jurisdictions:
eu:
gdpr: true
ai_act: true
# Install CLI
npm install -g @peacprotocol/core
# Generate config
npx peac init
# Validate config
npx peac validate peac.txt
# In Node.js
const { Parser } = require('@peacprotocol/core');
const policy = await Parser.parse('example.com');
if (policy.requiresPayment('ai_training')) {
// Handle payment
}