Prerequisites
- Agent dispatch enabled for your Latitude workspace
- A Cursor workspace with API access
- A Cursor API key from the workspace that should run the agent
- Repository access in Cursor for the repo where fixes should be proposed
Connect Cursor
- In Latitude, open your project and go to Settings → Integrations.
- Open Cursor and click Connect.
- Open Cursor API keys, sign in to the right workspace, and create a new API key for Latitude.
- Paste the API key in Latitude.
- Choose the repository Cursor should work in, or paste the repository URL if it is not listed.
- Optionally set a branch or ref. Latitude sends this as Cursor’s starting ref.
- Click Connect.
Configure dispatches
After Cursor is connected, open the Cursor integration detail page in Latitude.- Triggers choose which Latitude events can start a Cursor agent.
- Repository is the Git repository Cursor receives in the dispatch request.
- Branch is optional. Leave it empty to let Cursor use the repository default.
- Max dispatches per day limits how many runs Latitude can create for this integration.
- Cooldown prevents repeated dispatches for the same source during a short period.
What Latitude sends to Cursor
Latitude creates a Cursor agent through Cursor’s API with:- The rendered dispatch prompt
- The repository URL
- The optional starting ref
autoCreatePrenabled by default
Troubleshooting
- Repository list does not load: verify the API key belongs to the expected Cursor workspace and still has access.
- Authentication error: revoke the old key in Cursor, create a new key, and reconnect the integration.
- Dispatch request rejected: check that the repository URL and branch/ref are valid for the Cursor workspace.
- No pull request appears: open the run from the dispatch history and review the agent result in Cursor.