Skip to content

Get started

Open Privacy Protocol (OPP) gives an organization one machine-readable description of what it treats as private or confidential. This page takes you from nothing to a validated privacy model and a first check in a few minutes.

1. Install the reference tools

The specification ships with a small Python package: a loader, a validator and rule resolution.

pip install "open-privacy-protocol @ git+https://github.com/kannancet/open-privacy-protocol.git"
opp --help

2. Validate the example model

git clone https://github.com/kannancet/open-privacy-protocol.git
cd open-privacy-protocol
opp validate examples/northwind-coaching.opp.yaml
opp classes --group special

3. Ask what a model allows

import opp

model = opp.Model("examples/northwind-coaching.opp.yaml")
model.action("personal.email", "external_ai")         # 'pseudonymize'
model.action("org.coachee_notes", "internal")         # 'pseudonymize' (an override)
opp.strictest_action(["allow", "redact", "review"])   # 'review'

4. Generate a model from your own data

OPP Engine connects to databases, files, documents and web pages, and writes a draft privacy model for people to review. Everything runs on your machines.

pip install "open-privacy-protocol-engine[server,mcp,documents] @ git+https://github.com/kannancet/open-privacy-protocol-engine.git"
opp-engine generate postgresql://readonly@db/crm ./exports --name acme --org "Acme" \
    -o acme.opp.yaml --report review.md

5. Let agents check before they share

opp-engine check acme.opp.yaml --dest external_ai "Email [email protected] about CU-123456"
opp-engine serve acme.opp.yaml --mcp

Next steps