trigguard
Product SDK - POST /execute, authorize, verify, audit.
TypeScript · Node.js · Open source
Install the execution SDK, authorize before side effects, and verify signed receipts offline. No callback required after issuance.
npm install trigguard
pip install trigguard
Canonical install: npm install trigguard or pip install trigguard, then createTrigGuard() / TrigGuard() for authorization on POST /execute and offline receipt verification. See First 10 minutes.
Authorize
import { createTrigGuard } from "trigguard";
const tg = createTrigGuard({
gatewayUrl: process.env.TRIGGUARD_GATEWAY_URL,
apiKey: process.env.TRIGGUARD_API_KEY,
});
const result = await tg.authorize({
surface: "deploy.release",
actorId: "my-service",
context: { environment: "production" },
});
if (result.decision === "PERMIT") {
await deploy();
}
const trusted = await tg.verify(result.receipt);import os
from trigguard import TrigGuard
tg = TrigGuard(
api_key=os.environ.get("TRIGGUARD_API_KEY"),
gateway_url=os.environ.get("TRIGGUARD_GATEWAY_URL", "https://api.trigguardai.com"),
)
result = tg.authorize(
surface="deploy.release",
actor="my-service",
context={"environment": "production"},
)
if result["decision"] == "PERMIT":
deploy()
trusted = tg.verify(result["receipt"])Proof
Verify with trigguard verify-receipt and GET /.well-known/trigguard-keys.json. See verification guide.
Works with
Packages
trigguard
Product SDK - POST /execute, authorize, verify, audit.
@trigguard/cli
Offline receipt verification and local tooling.
@trigguard/protocol
Protocol types and receipt structures.
trigguard
Optional npm helper for discovery endpoints (not the trust path).
Install the SDK, run the hello-world example, or open the runtime docs for gateway integration.