Skip to main content

Agent Privacy-Preserving Protocol - AP3

Project description

Agent Privacy-Preserving Protocol - AP3

License: Apache 2.0 PyPI Docs PRs Welcome Contributor Covenant

Documentation · Examples · Contributing · Discussions


Agent Privacy Preserving Protocol (AP3)

Agent Privacy-Preserving Protocol (AP3) is an open protocol that enables distributed collective intelligence, without sacrificing confidentiality and regulatory posture. Collective intelligence here means the capacity of autonomous agents, tools, humans, and institutions to reason jointly and accumulate shared context across organizational, jurisdictional, and vendor boundaries.

💡 Documentation: https://ap3-protocol.org

Individually capable agents are already here; what the ecosystem lacks is a substrate on which they can think and act together in a privacy preserving way. AP3 provides that layer to the existing stack. It is delivered as an extension to the open Agent2Agent (A2A) protocol in communication, integrates with Google Agent Development Kit (ADK) at the build stage and will expand support to other agentic frameworks.

AP3 is being designed to support most common inter-agent communication protocols including the Agent Communication Protocol (ACP, originated by IBM, hosted at the Linux Foundation under the Agentic AI Foundation), the Agent Gateway Protocol (AGP / SLIM, originated by Cisco, hosted at the Linux Foundation under AGNTCY), and emerging decentralized protocols such as the Agent Network Protocol (ANP, originated by the open-source ANP community).

Its cryptographic core - Secure Multi-Party Computation (SMPC) for privacy preserving compute, supplemented by Trusted Execution Environment (TEE) attestation for execution integrity, would turn cross-boundary collaboration into a verifiable, policy-bound computation rather than an implicit trust assumption. Collective agentic and human context thereby becomes a cryptographically guaranteed intelligence layer.

AP3 aims to address a core question in multi-agent systems (MAS):

Once multi-agent workflows span more than one trust domain, the engineering problem is no longer interoperability but governed execution: how do agents jointly compute, reason and collectively innovate over sensitive inputs, context graphs, and memory. In doing so each participant's data remains confidential, every contribution to the output is cryptographically attributable, and the computation is verifiable without a single trusted intermediary.

Examples

Example Framework Description
psi_simple Plain Python Minimal two-process PSI sanctions check (initiator + receiver).
psi_adk_simple Google ADK Two ADK agents running PSI through chat with embedded AP3 servers.
a2a-example A2A PSI layered onto standard A2A hello-world servers as middleware.
ap3_playground Web UI Glass-box inspector: agent cards, envelopes, directives, audit timeline, tamper/replay scenarios.

Each example has its own README with setup, Docker, and run instructions.

Documentation

Full documentation lives at ap3-protocol.org.

Highlights:

To preview the docs locally:

uv sync
uv pip install -r requirements.txt
uv run mkdocs serve

Build the static site into site/:

uv run mkdocs build --clean

Project structure

ap3/
├── src/ap3/              # Core SDK: types, signing, services, A2A middleware
├── packages/
│   └── ap3-functions/    # Privacy operations (PSI, future MPC/HE primitives)
├── examples/             # Runnable examples (Python, A2A, ADK, web playground)
├── docs/                 # MkDocs site sources (architecture, SDK, codelabs)
├── tests/                # Unit + integration tests
└── .github/              # CI workflows, issue & PR templates

Contributing

Contributions of all kinds are welcome — bug reports, fixes, new examples, docs, and new privacy operations.

  1. Read CONTRIBUTING.md for development setup, linting, testing, and PR guidelines.
  2. Skim CODE_OF_CONDUCT.md — we follow the Contributor Covenant.
  3. For non-trivial changes, open an issue or discussion first so we can align on direction.

When you file an issue or open a PR, GitHub will load the matching template:

Action Template
Report a bug .github/ISSUE_TEMPLATE/bug_report.yml
Request a feature .github/ISSUE_TEMPLATE/feature_request.yml
Open a pull request .github/PULL_REQUEST_TEMPLATE.md

A quick pre-flight checklist before pushing:

  • uv run ruff check . and uv run ruff format . are clean
  • uv run pytest -v passes
  • Tests added or updated for behavior changes
  • No secrets, signing keys, or local state in the diff

Community & support

Security

Please do not open public issues for security vulnerabilities. Use GitHub's Private Vulnerability Reporting instead. Full disclosure process is documented in SECURITY.md.

License

Licensed under the Apache License, Version 2.0 — see LICENSE.

About

Agent Privacy-Preserving Protocol - AP3 is an open source project under LF Decentralized Trust lab, contributed by Silence Laboratories. It is licensed under the Apache License 2.0 and is open to contributions from the community.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ap3-1.2.2.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ap3-1.2.2-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

Details for the file ap3-1.2.2.tar.gz.

File metadata

  • Download URL: ap3-1.2.2.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.18

File hashes

Hashes for ap3-1.2.2.tar.gz
Algorithm Hash digest
SHA256 436692920efb1e73be3767c661b662e53eefe73ade4b94f0989342b58f3f58cd
MD5 85d01c2832f3abb5497be70b9be5d649
BLAKE2b-256 b2e5945214154ccb5dbec685fc77ff5d81044ad3260585527c60e513cc0da57e

See more details on using hashes here.

File details

Details for the file ap3-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: ap3-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 53.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.18

File hashes

Hashes for ap3-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf5537674dfb6cd83cd5a95cd6206f1a37113c83fa6b86fe6f22cc1aa925373
MD5 cd4c575a3d26047cf4403722bb88090f
BLAKE2b-256 efda25d995b6bb2d542a2e253809278c64625d8f892ff6af4a26de30b5c16305

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page