Skip to main content
Cursor Cloud Agents run outside your managed endpoints, so they do not inherit AI Watch binaries, MDM settings, or endpoint hooks. Use the Cursor Cloud hook collector to send supported session events to Runlayer. This integration is monitor-only. It cannot block tools, enforce MCP policy, read Runlayer data, or administer your workspace. The first prompt can run before repository hooks initialize, and Cursor Cloud does not currently emit 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 as RUNLAYER_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.
The helper reuses one delivery ID across transient retries, never logs the key or payload, and always returns Cursor’s explicit allow response. A Runlayer outage therefore cannot block or change a Cloud Agent run.

3. Register live Cloud events

Add these entries to .cursor/hooks.json, preserving any existing hooks:
Run a follow-up prompt after the Cloud environment is ready, then open Sessions in Runlayer and filter for Cursor Cloud Agents. If events do not appear, confirm Cursor is enabled under Settings → Agent session monitoring, the secret is present in the Cloud environment, and the collector URL uses the correct tenant hostname.