> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Usage limit

You can limit the number of times the session can be used.

To enable the policy:

```ts {6-15} theme={null}
const session: Session = {
  owners: {
    type: 'ecdsa',
    accounts: [sessionOwnerAccount],
  },
  actions: [
    {
      policies: [
        {
          type: 'usage-limit',
          limit: 10n,
        },
      ],
    },
  ],
}
```

This will create a session that can only be used 10 times.
