PEAC protocol

Open Standard for Programmable AI Consent & Access

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.

Apache 2.0 License v0.9.2 Open Governance
View on GitHub
Publishers
Monetize, control, and audit all AI/data access with one file.
AI Builders
Comply, pay, and attribute content use programmatically.
Platforms
Automate compliance, reduce legal exposure, unlock new markets.
Regulators
Transparent audit trails and standardized consent at web scale.

How it Works

peac.txt

# 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
Node.js

# 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
}