--- id: cursor-sdk version: "1.0.28" license: Proprietary license_treatment: unclear maintenance: active --- # cursor-sdk — Python client for the Cursor SDK bridge. License: unclear · Maintenance: active · Downloads: 383.6K/mo ## What it is and what it does cursor-sdk is a Python client for Cursor's agent platform, allowing you to script and automate the same AI agent that powers the Cursor IDE, CLI, and web app. It provides both synchronous and asynchronous interfaces to create and manage agents, with support for cloud-based agents that can run on empty VMs without a repository. The SDK is in public beta and actively maintained, with wheels available for macOS, Linux, and Windows. It depends only on httpx for HTTP communication. Cloud agents can report billed token usage and dollar costs per run (server-derived and eventually consistent), though local agents are not yet supported. The package requires Python 3.10 or later and uses a shared versioning scheme with the JavaScript SDK starting from version 1.0.24. Use it for: - Automate code generation and refactoring tasks by scripting Cursor agents in CI/CD pipelines or batch processing workflows. - Build no-repo cloud agents that run on ephemeral infrastructure without cloning a repository, for serverless or containerized agent execution. - Track and monitor agent usage costs programmatically by querying per-run token consumption and billing data from cloud agents. - Integrate Cursor's AI capabilities into custom Python applications via sync or async client APIs. - Test and validate agent behavior across multiple environments by controlling agent creation and execution from Python scripts. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python SDK for scripting Cursor agents with sync and async clients, enabling programmatic control of the same agent that runs in the Cursor IDE, CLI, and web app. Yes, with conditions. The SDK is actively maintained and has no known vulnerabilities, but it is in public beta—APIs may change before general availability. Install if you need programmatic control of Cursor agents or are building cloud-based automation. Verify Cursor's proprietary license terms for your use case before integrating into production or commercial projects. ## Install pip install cursor-sdk uv add cursor-sdk poetry add cursor-sdk ## Installing cursor-sdk Before you install: Active maintenance with a release 1 day old. Medium install friction due to platform-specific wheels (macOS arm64/x64, Linux arm64/x64, Windows x64), but straightforward pip installation. Single runtime dependency on httpx. License in practice: Licensed as Proprietary with unclear treatment. No standard SPDX identifier available. Users should review Cursor's licensing terms before integrating into commercial or redistributed projects. Quickstart: pip install cursor-sdk from cursor_sdk import Cursor client = Cursor() agent = client.agents.create(cloud=CloudAgentOptions(repos=[])) Requires Python 3.10 or later. Cloud agents must be enabled for your account or team; repository-scoped API keys cannot create no-repo agents. Verify before relying: - Whether the SDK's public-beta status implies breaking API changes are still expected before general availability. - Cost calculation accuracy and eventual consistency guarantees for cloud agent usage billing. - Support timeline and roadmap for local agents beyond current cloud-only implementation. ## Package facts - License: Proprietary (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 383.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags cursor agent sdk python, programmatic cursor ide control, cursor agent scripting, cursor cloud agents api, cursor sdk async client, cursor agent automation, cursor ide python integration, agent-automation, cursor-ide, cloud-agents [View on SkillFed](https://skillfed.io/packages/cursor-sdk) · [View on PyPI](https://pypi.org/project/cursor-sdk/)