K
KYE Developers
Get started

SDKs

Generated from canonical KYE schemas. TypeScript and Python ship today; Go in alpha.

TypeScript

npm install @kye-protocol/sdk
# or: pnpm add @kye-protocol/sdk
# or: yarn add @kye-protocol/sdk

Tree-shakeable, bundles types from the canonical schemas. Targets Node 18+ and modern browsers.

Python

pip install kye-protocol
# or: poetry add kye-protocol

Pydantic v2 models, sync + async clients, runs on Python 3.10+.

Go

go get github.com/kye-protocol/kye-go

alpha — tracking the schema package and the OpenAPI spec.

Issue a delegation

TypeScript:

const delegation = await kye.delegations.create({
  actor:     "kye:agent:acme.kyc_triage_001",
  principal: "kye:user:acme.compliance_lead",
  subject:   "kye:business:retail_customer_segment",
  scope:     ["kyc.verify", "kyc.read"],
  expires_at:"2026-12-31T00:00:00Z"
});

Python:

delegation = kye.delegations.create(
    actor="kye:agent:acme.kyc_triage_001",
    principal="kye:user:acme.compliance_lead",
    subject="kye:business:retail_customer_segment",
    scope=["kyc.verify", "kyc.read"],
    expires_at="2026-12-31T00:00:00Z",
)

Get a decision

const d = await kye.decisions.create({
  actor: "kye:agent:acme.kyc_triage_001",
  principal: "kye:user:acme.compliance_lead",
  capability: "kyc.verify",
  context: { customer_id: "cust_001", region: "EU" }
});
if (d.decision === "allow") { /* proceed */ }
else if (d.decision === "require_human_review") { /* queue */ }

Download an evidence pack

curl -H "Authorization: Bearer $KYE_API_KEY" \
  https://api.kyeprotocol.com/v1/evidence-packs/kye:evidence-pack:adoption_acme_q1_2026 \
  -o pack.json
# verify hash + signature locally:
kye-cli evidence verify pack.json --key-id kye-evidence-signing-2026-q1

SDK source repos: kye-typescript · kye-python · kye-go.