cursor-sdk/. Clone the repository and run the commands below from its root. It includes a run_cursor_agent.py launcher, an agent_definitions.json agent map, generated prompt files, and a requirements.txt.
Install the dependency
Install the Cursor Python SDK dependency.If you use
uv, run uv pip install -r requirements.txt from the cursor-sdk directory instead.Safety
- Setup is readiness guidance only. It does not run
endorctl scanorendorctl host-check. - Mutating agents still require separate approval for file edits, branch pushes, PR or MR creation, comments, tickets, and Endor Labs policy writes.
- Never paste Cursor, Endor Labs, source-provider, or package-registry secrets into prompts. Use the
CURSOR_API_KEYenvironment variable for the SDK key.