sessionStart or sessionEnd, so session coverage is degraded.
1. Create a scoped key
In Runlayer, go to Settings → Organization API Keys, create a key with only the Cursor Cloud Hooks permission, and copy it when shown. Runlayer stores only its hash. Creating a replacement and revoking the old key rotates access without deleting historical sessions. Add the value to your Cursor Cloud environment or team secret store asRUNLAYER_CURSOR_CLOUD_HOOK_KEY. Do not commit it to the repository, and do not
use an AI Watch organization key or Agent Account secret.
2. Add the hook helper
Create.cursor/runlayer_cloud_hook.py in the repository. Replace the hostname
in COLLECTOR_URL with your Runlayer tenant hostname. Keep the full HTTPS URL
literal so repository content cannot redirect credentials to another host.
3. Register live Cloud events
Add these entries to.cursor/hooks.json, preserving any existing hooks: