Examples & Templates

Integration examples

15 copy-pasteable loops. Each one evaluates before a side effect, then audits the outcome. Fork one that matches your stack and adapt from there.

Recommended setups

TypeScriptRecommended · tested

GitHub Actions + Copilot CI Gate

Twelve Copilot PRs can share a job with configure-cloud-credentials. @limetry/ci evaluates ci_privilege vs deploy before production credentials load: allow tests, deny untrusted deploys, approval_required on main. Resource is owner/repo@sha.

View example
TypeScriptRecommended · tested

Shopify Support / Ops Agent

Built after a support agent batch-refunded $3,200 in two minutes with no approval. Mutation firewall in the runtime (not a Shopify App): allow $10 refunds, deny inventory wipes, approval_required at $25. Admin token stays in the firewall.

View example
TypeScriptRecommended · tested

Cursor / Claude SQL DB Tool

Created after a Cursor user lost 1,847 production accounts to a DELETE with a bad regex. The gate owns DATABASE_URL so the agent never holds write credentials. Allow SELECT, deny DROP, approval_required for INSERT against SQL databases.

View example
TypeScriptRecommended · tested

OpenAI Agent Governance

Intercepts tool calls and runs Limetry policy before side effects. Includes action intent helpers with auditMode minimal and redactDetails.

View example
PythonRecommended · tested

Anthropic Claude Tool Governance

Intercept Anthropic tool_use blocks with the limetry Python SDK before side effects. Allow search, deny shell, approval_required on charges.

View example
PythonRecommended · tested

FastAPI Action Middleware Gate

FastAPI dependency evaluates mutating routes with limetry before handlers run. Deny → 403; approval_required → 202.

View example
PythonRecommended · tested

Stripe Payment Authorization

Authorize Stripe charges and refunds with limetry before the Stripe API call. Deny payouts; approval_required above cost threshold.

View example

Framework Integrations & Workflows

Contact

Talk to the Limetry team

Questions about self-run Limetry, Limetry Cloud, or partnerships — send a note.  Open contact.