agentcheck-sdk
v2.0.0
Published
AI Agent Delegation Governance SDK - Zero Trust verification, PQC audit, dynamic safety routing
Downloads
148
Maintainers
Readme
agentcheck-sdk
Record what your AI agent is allowed to do.
Install
npm install agentcheck-sdkQuickstart
import { AgentCheckClient } from "agentcheck-sdk";
const client = new AgentCheckClient("ak_live_...");
// Create agreement - one call
const proof = await client.record({
agent: "factory-bot",
scope: "order parts under $10K, monitor equipment 24/7",
authorized_by: "[email protected]",
});
// Kim gets an email, clicks "Approve"
// Check status
const record = await client.get(proof.id);
console.log(record.status); // "approved"
// List all
const records = await client.list({ status: "approved" });
// Revoke immediately
await client.revoke(proof.id, "Security incident");Webhook Verification
import { WebhookHandler } from "agentcheck-sdk";
const handler = new WebhookHandler("whsec_...");
// In your webhook endpoint
const event = handler.verifyAndParse(req.body, req.headers["x-agentcheck-signature"]);
if (event.type === "record.approved") {
enableAgent(event.data.agreement_id);
}Sign Up
import { AgentCheckClient } from "agentcheck-sdk";
const result = await AgentCheckClient.signup("[email protected]", "My Company");
console.log(result.api_key); // Save this - shown once onlyLicense
MIT
