Quickstart
Add governance to your TypeScript AI agents in under 5 minutes. No API keys, no external services, no runtime dependencies.
1. Install
Note: Zero runtime dependencies. TypeScript types included. Works in Node.js, Bun, Deno, and edge runtimes.
2. Create a governance instance
Export as a singleton — all agents share the same policy set. Rules are evaluated in priority order; higher priority wins.
3. Register your agent
Tip: The 7-dimension score is computed instantly at registration time. See Governance Scoring for the full model.
4. Enforce before every tool call
Note: Every
enforce()call automatically writes to the audit trail — decision, agent ID, tool, timestamp, and matching policy rule.
5. Or use a framework adapter
Skip manual enforce() calls — adapters wrap your tools automatically. One line per framework.
See all 20 adapters in Framework Adapters.
Check: You're governed. Every tool call is now policy-evaluated before execution, written to a tamper-evident audit trail, and contributing to your agent's governance score. Next: Policy deep-dive · Injection detection · EU AI Act compliance