QUICKSTART
Quickstart
Install, authorize, branch on the result, execute. Only PERMIT means execute. See the decision model →
-
Install
npm install trigguardpip install trigguard -
Run the demo
No API key required.
npx trigguard demo -
Create an organization
One click in the console.
-
Generate an API key
Set
TRIGGUARD_API_KEYfor liveauthorize(). -
Authorize, branch, execute
Execute only on PERMIT. Other outcomes: see the decision model →
import { authorize } from "trigguard"; const result = await authorize({ surface: "deploy.release", actor: "my-service", }); if (result.decision === "PERMIT") { await execute(); }from trigguard import authorize result = authorize( surface="deploy.release", actor="my-service", ) if result["decision"] == "PERMIT": execute()Need to validate a receipt? → Verification guide