Quick Start
Get up and running with OpenReason Protocol in under 60 seconds.
1. Install
pip install orp-validator2. Create a document
orp new my-policy.yaml --compliance basic --title "My Policy" --domain policy --author "Your Name" --non-interactiveThis creates a minimal ORP-Basic document with Layer 1 (Data Provenance).
3. Validate it
orp validate my-policy.yamlYou should see:
✓ Valid
Compliance Level: ORP-Basic
Layers Present: 1/5 (l1_data_provenance)4. Check compliance level
orp check my-policy.yamlOutput:
Compliance Level: ORP-Basic
Layers Present: ✓ L1 (Data Provenance)
Next Steps: Add L2 (Consequence Simulation) and L3 (Empathy Mapping) for ORP-StandardTry the full example
Want to see a complete ORP-Full document? Check out our Danish Property Tax Reform example:
# Download the example
curl -O https://gitlab.com/publicreason/orp/-/raw/main/examples/danish_property_tax_reform.yaml
# Validate it
orp validate danish_property_tax_reform.yamlNext steps
- Create Your First Document - Detailed walkthrough
- View Examples - Real-world policy documents
- CLI Reference - All commands and options
- Protocol Specification - Full ORP v0.1 spec
Quick reference
# Create new document (interactive)
orp new my-doc.yaml
# Create with specific compliance level
orp new my-doc.yaml --compliance full
# Validate document
orp validate my-doc.yaml
# Check compliance level (fast, no validation)
orp check my-doc.yaml
# Compare two documents
orp diff doc1.yaml doc2.yaml
# Get help
orp --help
orp new --helpUsing the REST API
Prefer to validate via HTTP? Use our public API:
curl -X POST https://api.publicreasonproject.org/api/v1/validate \
-H "Content-Type: application/json" \
-d '{"document": "orp_version: \"0.1\"\n..."}'See REST API documentation for full details.