@openleash/core
v0.3.0
Published
Core authorization engine for openleash
Readme
@openleash/core
Core authorization engine for OpenLeash — local-first authorization and proof sidecar for AI agents.
What's included
- Policy engine — evaluate agent actions against YAML policies
- Decision types —
ALLOW,DENY,REQUIRE_APPROVAL,REQUIRE_STEP_UP,REQUIRE_DEPOSIT - PASETO proof tokens — issue and verify short-lived v4.public tokens
- Obligations — attach requirements (human approval, step-up auth, deposits) to decisions
- State management — human-readable file-based storage (markdown + YAML)
- Types — full TypeScript types for actions, policies, decisions, and tokens
Installation
npm install @openleash/coreUsage
This package is used internally by @openleash/server and @openleash/cli. For agent-side integration, use @openleash/sdk-ts instead.
Documentation
See the OpenLeash README for full documentation.
