> For the complete documentation index, see [llms.txt](https://docs.cometh.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cometh.io/advanced/session-keys/erc7579-actions/install-a-module.md).

# Install a module

```typescript
import { getSmartSessionsValidator } from "@rhinestone/module-sdk";

const sessionKeyValidator = getSmartSessionsValidator({})

const userOpHash = await smartAccountClient.installModule({
   type: smartSessions.type,
   address: smartSessions.address,
   context: smartSessions.initData,
})
 
const receipt = await smartAccountClient.waitForUserOperationReceipt({ hash: userOpHash })
```
