Skip to main content

cursor-sdk

Python SDK for Cursor agents — script the same agent that runs in the Cursor IDE, CLI, and web app, with sync and async clients.

Docs and quickstart: https://cursor.com/docs/sdk/python

Shared SDK version

Starting with 1.0.24, the Python package and @cursor/sdk use the same version and are built from the same commit. Python therefore jumps directly from 0.1.9 to 1.0.24; there are no missing Python releases in between. The alignment does not change the Python SDK's public-beta status.

Install

pip install cursor-sdk

Requires Python 3.10+. Wheels are published for macOS (arm64, x64), Linux (arm64, x64), and Windows (x64).

No-repo cloud agents

Cloud agents can run on an empty VM with no repository. Pass cloud and leave repos unset:

agent = client.agents.create(cloud=CloudAgentOptions(repos=[]))

No-repo agents must be enabled for your account or team, and repository-scoped API keys cannot create them. See examples/no_repo_cloud_agent.py.

For cloud agents, agent.get_usage() returns billed token usage and dollar cost per run. Cost is server-derived from Cursor's billing pipeline (discounts included, never estimated client-side) and eventually consistent shortly after a run ends. Local agents are not supported yet.

Public beta. APIs may change before general availability.

Metadata

Release files for cursor-sdk 1.0.40

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cursor-sdk 1.0.40
File Size Uploaded Provenance
cursor_sdk-1.0.40.tar.gz 1.2 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for cursor-sdk 1.0.40
File
cursor_sdk-1.0.40-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
cursor_sdk-1.0.40-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
cursor_sdk-1.0.40-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
cursor_sdk-1.0.40-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details
cursor_sdk-1.0.40-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 267.1 MB

Release files / cursor_sdk-1.0.40.tar.gz

Download URL cursor_sdk-1.0.40.tar.gz
Size 1.2 kB
Tags Source
SHA-256 checksum
How to use checksums
63a21d925089ed5a5062bce07df708c07f035d167528084c4eb01275cbbd3904
BLAKE2b-256 checksum
How to use checksums
f768340168715a7567d4c3fedb221fcbd9892a0aa98d2d723cf3da790d064339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / cursor_sdk-1.0.40-py3-none-win_amd64.whl

Download URL cursor_sdk-1.0.40-py3-none-win_amd64.whl
Size 46.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
cb931c2054ffce33ef2fe88345ad85f7535a01fb93333f5aad3e9c20a85e6d48
BLAKE2b-256 checksum
How to use checksums
d34dd034cda63e9af0e05fe0b7017e6337818721be7fb8666da254c0e5c6377b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / cursor_sdk-1.0.40-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cursor_sdk-1.0.40-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 60.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
83dc07ff1fea4549924c64c7b15a000b32b006461a867b2980acb9725c0d4462
BLAKE2b-256 checksum
How to use checksums
1a271a44dc0ea20e4d604fafbd3e4109b746f4d22baf8c1f27e7bd761527f5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / cursor_sdk-1.0.40-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cursor_sdk-1.0.40-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 59.4 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c3eb9d4eed4cc62d24b65ac151bfbe00296e7c9830759470fa59227104089e2d
BLAKE2b-256 checksum
How to use checksums
2b52528252dba358607006f6cc169f101a0745e883eb6f578caedd6a933f390d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / cursor_sdk-1.0.40-py3-none-macosx_11_0_x86_64.whl

Download URL cursor_sdk-1.0.40-py3-none-macosx_11_0_x86_64.whl
Size 51.5 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
f60d3d454c6be61cb37eaa20ff5862b49f9aefa5ff5ff46def6b5c5ba0268c89
BLAKE2b-256 checksum
How to use checksums
cdb26bd7fe7bf95ea930071416c4b02a3a1160384d5773125fb6293c0b45f09e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / cursor_sdk-1.0.40-py3-none-macosx_11_0_arm64.whl

Download URL cursor_sdk-1.0.40-py3-none-macosx_11_0_arm64.whl
Size 50.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
facdacc3edff7718c6a270cc5bdf45fcb6f2d953e74d8dfbba46a355c1990559
BLAKE2b-256 checksum
How to use checksums
048a0beffd3967833c03b99c0265c44c36e983a78b068e3fcd5e4bace062a983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for cursor-sdk 1.0.40

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page