agent-identity-protocol
Verifiable cryptographic identity and delegation for AI agents, across MCP and A2A.
Python reference implementation of the Agent Identity Protocol (AIP), specified in draft-prakash-aip-01.
Install
pip install agent-identity-protocol
Framework adapters for CrewAI, Google ADK, and LangChain live in the separate aip-agents package.
What it does
Agents get an Ed25519 keypair and a verifiable identifier. Authority is delegated in chains where each hop can only narrow scope, budget, and expiry, never widen them. Any party can verify a chain offline from the token and the issuer's published key, with no callback to the originating organization.
Two token modes:
- Compact (JWT) for single-hop calls where no delegation is needed.
- Chained (Biscuit) for multi-hop delegation with per-hop attenuation.
Quickstart
from aip_core.crypto import KeyPair
from aip_token.chained import ChainedToken
root = KeyPair.generate()
authority = ChainedToken.create_authority(
issuer="aip:web:example.com/agents/orchestrator",
scopes=["tool:search", "tool:browse"],
budget_cents=500,
max_depth=3,
ttl_seconds=3600,
keypair=root,
)
# Narrow on the way down. Widening is refused.
delegated = authority.delegate(
delegator="aip:web:example.com/agents/orchestrator",
delegate="aip:web:example.com/agents/researcher",
scopes=["tool:search"],
budget_cents=100,
context="research subtask for quarterly report",
)
delegated.authorize("tool:search", root.public_key_bytes()) # ok
delegated.authorize("tool:browse", root.public_key_bytes()) # raises
Verification
authorize() runs the algorithm in draft-prakash-aip-01 Section 4: it re-verifies every block signature from the serialized form, walks the chain confirming each hop narrows its parent across scope, budget, expiry and principal, requires a non-empty delegation context, and then evaluates policy.
An AIP token is a bearer credential. Verification establishes what authority the chain conveys and that no hop exceeded its predecessor. It does not establish that the presenting party is the one the token was issued to; that requires binding the token to a key at the transport or message layer.
Documentation
- Protocol specification: github.com/sunilp/aip
- MCP proxy, framework guides, security model: sunilprakash.com/aip
- Paper: arXiv:2603.24775 (preprint)
License
Apache-2.0
Metadata
Release files for agent-identity-protocol 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_identity_protocol-0.6.0.tar.gz | 65.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_identity_protocol-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.5 kB
Release files / agent_identity_protocol-0.6.0.tar.gz
| Download URL | agent_identity_protocol-0.6.0.tar.gz |
|---|---|
| Size | 65.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e522ead8e36344fdc569b81f1525056618b860862c6c89051d8c4c7d375a5ef
|
|
BLAKE2b-256 checksum How to use checksums |
5876bcd3b509b9672ed18da05a379e9256b379bcebbe6c638ecc235c2bf52481
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / agent_identity_protocol-0.6.0-py3-none-any.whl
| Download URL | agent_identity_protocol-0.6.0-py3-none-any.whl |
|---|---|
| Size | 43.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ddc7e8e33cb1149a9dd1d1cfa63956deedbd1178f60ad01606fe87795aa9f01
|
|
BLAKE2b-256 checksum How to use checksums |
d7fbf423e5e6e19f0d82e4daa2cbdc2de7405643cb526dc82c86da801de05714
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency log