Skip to main content

๐Ÿค– ๐ŸŒธ Personal Agent Protocol

Python and TypeScript SDKs for the Personal Agent Protocol (PAP, or Poppy), targeting version 0.4 as published (the 1.0 release candidate), and its Operations extension version 3.

Build software that lets a personal agent work with a company on a user's behalf, without pretending to be the user or hiding automation. PAP gives both sides a common path for discovery, scoped authorization, web and API access, and conversations. The SDKs use Datalayer Reactor for replaceable platform services and optional protocol extensions.

The specification and where it livesโ€‹

The protocol is specified by the Personal Agent Protocol organization on GitHub, in the public personal-agent-protocol/personal-agent-protocol repository. That repository is the source of the protocol's website, personalagentprotocol.org, which publishes:

Feedback on the protocol goes to the issues of that repository (see How to give feedback). Issues with these SDKs go to datalayer/personal-agent-protocol.

The specification is authoritative. These docs record which upstream revision the SDKs implement (Protocol coverage) and how they implement it.

Draft protocol

PAP can change incompatibly before its first stable version. Before 1.0, each major.minor version can break the one before, so a personal agent uses only a company document whose protocol_version it supports: these SDKs speak version 0.4. See Compatibility and Migration.

Pick your roleโ€‹

I am buildingโ€ฆStart here
A personal agent that connects to companiesPersonal-agent guide
A company endpoint for personal agentsCompany guide
A platform integration or PAP capabilityExtensions guide
A terminal or third-party command extensionpap CLI guide
By following end-to-end feature flowsExample flows
Against one of the SDKsPython ยท TypeScript
Datalayer Studio integrationStudio integration

The interaction at a glanceโ€‹

Get started with working discovery code, take the protocol tour, or review the implementation status and the protocol coverage, requirement by requirement.

Two protocol rolesโ€‹

The SDKs implement both sides of PAP:

  1. A personal agent client discovers and works with companies for one user: Sessions, every sign-in type, refresh tokens, APIs and MCP, the website, conversations, feedback, and Operations.
  2. A reference company, in Python and in TypeScript, publishes discovery, keeps Sessions, and serves APIs, MCP, a company agent and Operations; every replaceable part is a Reactor contribution point.