Documentation
Documentation
agentauthz is an agent-native, embeddable TypeScript authorization engine. Policies are rows in your
own database, written at runtime through an API or an admin UI, not files compiled into a
deployment.
Where to start
Install, declare a vocabulary, make your first check
The layers, the ports, and why the engine owns storage
What ships complete here vs Cedar, Zanzibar services, Casbin
Statements, deny-wins, scope chains, fail-closed conditions
The typed operator whitelist and its two traps
One curated policy, different limits per subject
describe(), the descriptor document, and the HTTP handlers
Generate every admin screen from the descriptor
Agent-facing tools whose schemas come from your vocabulary
A runnable host with a working admin UI, recipe by recipe
The pg backend, migrations, and the backend-flip contract
The shape of it
The host keeps, permanently: authentication and subject resolution, the admin-bypass decision, HTTP routing, the action vocabulary, and what the admin UI looks like. The library owns the decision semantics, validation, storage, and audit.