trigguard
Core SDK
- npm
- PyPI
npm install trigguard
pip install trigguard
Root API
authorize() verify() receipt() explain() createAgent() createClient()
Optional modules
execution agent provider express proxy
TypeScript · Node.js · Open source
Offline first receipt with npx trigguard demo. Live authorization with TRIGGUARD_API_KEY and authorize(). Root API: authorize, verify, receipt, explain, createAgent, createClient.
npm install trigguard
pip install trigguard
Primary install: npm install trigguard or pip install trigguard. Offline first receipt: npx trigguard demo. Live authorization: TRIGGUARD_API_KEY + authorize(). Root exports: authorize(), verify(), receipt(), explain(), createAgent(), createClient(). See First 10 minutes.
Authorize
import { authorize } from "trigguard";
const result = await authorize({
surface: "deploy.release",
actor: "my-service",
});
if (result.decision === "PERMIT") {
await deploy();
}from trigguard import authorize
result = authorize(
surface="deploy.release",
actor="my-service",
)
if result["decision"] == "PERMIT":
deploy()Need to validate a receipt? → Verification guide
Proof
Works with
Packages
One core SDK. Three ecosystem packages that call into it.
Core SDK
npm install trigguard
pip install trigguard
Root API
authorize() verify() receipt() explain() createAgent() createClient()
Optional modules
execution agent provider express proxy
Ecosystem packages
Intelligence layer
pip install authgraph
Calls authorize(). Does not issue local PERMIT / DENY / ESCALATE / SILENCE.
MCP integration
npx @trigguard/mcp
Connects agents to gated execution through TrigGuard.
LiteLLM adapter
pip install trigguard-litellm
Maps PERMIT / DENY / ESCALATE / SILENCE into LiteLLM control flow.
Offline: npm install trigguard then npx trigguard demo. Live: set TRIGGUARD_API_KEY, call authorize(), then verify().