Observed since 20 Oct, 22:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agent-identity-protocol
Verifiable cryptographic identity and delegation for AI agents across MCP and A2A
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.
pip install agent-identity-protocol
Framework adapters for CrewAI, Google ADK, and LangChain live in the separate aip-agents package.
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:
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
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.
Apache-2.0
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
base58Environment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | base58>=2.1 | runtime |
biscuit-pythonEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | biscuit-python>=0.4 | runtime |
cryptographyEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | cryptography>=43.0 | runtime |
httpxEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | httpx>=0.27 | runtime |
pydanticEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pydantic>=2.0 | runtime |
pyjwtEnvironment{
"extras": "crypto",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pyjwt[crypto]>=2.9 | runtime |
pytest-asyncioEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pytest-asyncio>=0.24; extra == "dev" | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pytest>=8.0; extra == "dev" | runtime |
bdist_wheel · 42.54 KB · Python py3
sdist · 63.45 KB · Python source
Observed since 20 Oct, 22:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:3a5bcef258ca1eee3995c4ae6e65f55d3c7e5bdcaac0df654a5d0bbee3aa016e