Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.0.2 instead.
Reason given by maintainers: incomplete stub
aiap-client — AI Agency Protocol SDK
Identity is persistent. Agency is ephemeral.
Python SDK for the AI Agency Protocol (AIAP). Enables agents to request scoped, time-limited authority from a central broker.
Install
pip install aiap-client
pip install aiap-client[aws] # + boto3 for credential sessions
pip install aiap-client[cert] # + cryptography for certificate auth
Quick Start
from aiap_client import AgencyClient, AgencyLevel
client = AgencyClient(
broker_url="https://www.cyber-ai-scim.com",
agent_id="YXFQTW0VCL",
mac_secret="your-hmac-secret",
)
# Request JIT credentials
grant = await client.request_agency(
intent="Invoke underwriting model",
use_case="underwriting",
resources=["bedrock:InvokeModel"],
duration_seconds=900,
)
if grant.granted:
session = grant.to_boto3_session(region="us-east-1")
bedrock = session.client("bedrock-runtime")
# Invoke with scoped creds — expires in 15 min
else:
print(f"Denied: {grant.reason}")
Mediated Execution (Level 2)
Agent never sees credentials:
result = await client.execute(
intent="Invoke model for risk assessment",
use_case="underwriting",
action="bedrock:InvokeModel",
parameters={"modelId": "anthropic.claude-sonnet-4-6", "body": {...}},
)
print(result.output) # Only the result
Certificate Authentication
from aiap_client import AgencyClient, CertificateSigner
client = AgencyClient(
broker_url="https://www.cyber-ai-scim.com",
agent_id="YXFQTW0VCL",
signer=CertificateSigner(cert_path="agent.pem", key_path="agent-key.pem"),
)
Protocol
Metadata
Release files for aiap-client 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiap_client-1.0.1.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiap_client-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.2 kB
Release files / aiap_client-1.0.1.tar.gz
| Download URL | aiap_client-1.0.1.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a38920c80c245b35e6773b8aacf563685dff3fe31841e3ffc8626106cf97eb1
|
|
BLAKE2b-256 checksum How to use checksums |
f19aee0fcb9df06a10fcc706ade679b297c06810f8ab274c5da22fea4140e394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / aiap_client-1.0.1-py3-none-any.whl
| Download URL | aiap_client-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ea24b8e3f8198ec525c67b40d02b465a8dae878727a157ba3f6dc62ee12bfdd
|
|
BLAKE2b-256 checksum How to use checksums |
094f5aa01b2ab9a11ede1c20f426cb3cc085af6348eb09f60fad68ef8f60b7a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|