Getting started
Install @kye/shadow-mode-sdk, register an observed action, generate an Evidence Pack, verify it offline.
Integrate shadow-mode observation into your AI-agent runtime in five minutes. The open-source path covers the SDKs (TypeScript + Python), the Conformance Pack verifier, and the schema contracts — everything you need to run KYE locally. The hosted operational engines (Authority Gap detection, Guard Recommendation, drift detection) stay paid.
Install @kye/shadow-mode-sdk, register an observed action, generate an Evidence Pack, verify it offline.
SDKs (TS, Python), the Conformance Pack verifier CLI, the schema set, the widget protocol.
List →Code of conduct, governance, how to file an issue or open a PR.
Read →npm install @kye/shadow-mode-sdk
import { ObservedActionBuilder, KyeClient } from "@kye/shadow-mode-sdk";
const client = new KyeClient({
gatewayUrl: process.env.KYE_GATEWAY_URL,
tenant: process.env.KYE_TENANT,
apiKey: process.env.KYE_API_KEY,
});
const action = new ObservedActionBuilder()
.actor("kye:agent:acme.ap_processor_007")
.principal("kye:user:acme.cfo.j_okonkwo")
.action("payment.propose")
.target("VND-217:£4,820.00")
.context({ amount_gbp: 4820, vendor_id: "VND-217" })
.build();
const decision = await client.ingest(action);
console.log(decision.decision, decision.evidence_pack_id);
Typed builder for kye.evidence.observed_action.v1. HTTP ingest client. Local-only mode for offline development. Tree-shakeable ES modules.
npm install @kye/shadow-mode-sdk
Pythonic equivalent. Same builder shape, same ingest semantics, same local-only mode.
pip install kye-shadow-mode
Verify Evidence Packs offline. Validates COSE-Sign1 signatures against the published KYE public-key set. Works without any cloud connection.
npx @kye/conformance-pack-verifier verify pack.cbor
Full-fat KYE command-line tool. Issue Purpose Permissions, submit decisions, verify Evidence Packs, run conformance pack locally.
npm install -g @kye/cli && kye --help
Per constitution §21.11, the operational engines stay private: Authority Gap detection, Guard Recommendation, the drift detector, and the Conformance Pack signing key. These are why KYE Cloud is worth paying for. Apply for pilot →.