The universal standard for private and confidential data
OPP is an open, vendor-neutral specification for describing what an organization treats as private, so every agent, AI tool and data platform knows before it shares. It is to privacy what TLS is to transport: one shared layer instead of every tool inventing its own.
See it work
Open Privacy Protocol is a vendor-neutral standard for describing what an organization treats as private or confidential, where it lives, and where it may go. One document, read by every agent, AI tool and data platform.
pip install git+https://github.com/kannancet/open-privacy-protocol
How it works
Sources are described once, on your own machines. Every agent then asks the same model before it shares.
The privacy model
One declarative document per organization maps its sources to a shared catalog, adds its own confidential concepts and identifier formats, and sets sharing rules for every destination.
opp: "0.1.0.dev0"
name: acme
catalog: {name: baseline, version: "0.1.0"}
sources:
- id: crm
datasets:
- name: public.customers
fields:
- name: email
classes: [{class: personal.email, status: certified}]
# the organization's own confidential topic
concepts:
- id: org.pricing_exceptions
extends: confidential.financial
cues: [special discount, custom price]
identifiers:
- {id: customer_id, pattern: "CU-[0-9]{6}"}
rules:
overrides:
- {target: org.pricing_exceptions,
destination: external_ai, action: block}
Sharing rules
The default matrix from the specification. Hover a cell to see how it resolves; a model overrides any cell, and when several entries apply the strictest action wins.
| Sensitivity | internal | partner | external_ai | public |
|---|---|---|---|---|
| public | allow | allow | allow | allow |
| internal | allow | allow | allow | review |
| confidential | allow | handling | handling | block |
| restricted | handling | block | block | block |
The project
The specification, JSON Schemas, baseline catalog, industry presets and a reference validator.
open-privacy-protocolRead the specification →
Reference implementationConnectors, the privacy-model generator, and the query engine agents call over MCP or HTTP.
open-privacy-protocol-engineExplore the engine →
Open weightsA small open-weight model that finds private values and confidential topics on a laptop CPU.
open-privacy-protocol-modelMeet the model →
Generators read sample values only to classify them and never write a value anywhere.
When several entries apply, the strictest action applies. Models tighten, never loosen.
The standard does not depend on any implementation. Anyone can build a generator or engine.
Apache-licensed, developed in the open, intended for the Apache Software Foundation Incubator.
Review the draft, propose classes for your industry, or build an implementation.