KYE
Developers
Get started

KYE Protocol™ SDKs — TypeScript, Python, Go.

TypeScript. Python. Go. Same names.

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

Plain Q&A

Plain Q&A

Short questions. Short answers.

  • What is KYE™? A protocol for AI governance.
  • What does the SDK do? It signs every call. It verifies every reply.
  • Which language? TypeScript, Python, or Go.
  • Do I need a key? Yes. You keep it.
  • Free to use? Yes. Apache 2.0.
  • Sandbox tokens? Free. One click.
  • Pilot tokens? Free for 30 days.
  • Do you log my data? No. Not ever.

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.