Installation
Prerequisites
- Node.js >= 18.0.0
- pnpm (recommended) or npm
SDK
Install the core SDK in your project:Peer Dependencies
The SDK has peer dependencies for Lit Protocol integration. If you plan to use off-chain (Tier 3) rules, install them as well:Required Dependencies
The SDK requiresviem for Ethereum interactions:
CLI
Install the CLI globally:Smart Contracts
Install the Solidity contracts as a dependency for your own contracts:If using Foundry with the npm package, add a remapping to your
remappings.txt:Local Development
If you’re developing or extending the smart contracts themselves, you’ll need Foundry:Lit Actions
Install the Lit Actions package to get the pre-built policy evaluator bundle for off-chain rule evaluation:- Pre-built bundle at
build/policyEvaluator.action.js— upload this to IPFS and pass the CID to the SDK’sLitClient - Source rules in
src/rules/— use as reference or starting points for custom rule implementations
Monorepo Setup (Contributing)
To work on PolicyKit itself:Next Steps
Quickstart
Build and deploy your first policy.

