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.2.0

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.2.0
File Size Uploaded Provenance Actions
cursor_sdk-1.2.0.tar.gz 1.2 kB Without provenance Details for cursor_sdk-1.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 271.6 MB

Release files / cursor_sdk-1.2.0.tar.gz

Download URL cursor_sdk-1.2.0.tar.gz
Size 1.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ced518fd71aa7bf890c5edb7c3a9e5bdf64b478cc77d10c7dd5f0b0a6a6480fd
BLAKE2b-256 checksum
How to use checksums
d880d8358d2251f4410e5b55d33b23ccd209a2024e5248a2307062d4579aa75b
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.2.0-py3-none-win_amd64.whl

Download URL cursor_sdk-1.2.0-py3-none-win_amd64.whl
Size 47.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
56d7004c9ce5e470234ba7e00de1f17f1013f5a8d214c87b28761e6641074e7f
BLAKE2b-256 checksum
How to use checksums
f85dbf8c1eafd1ac046ddca5d2c48d4e57b47865ec16731d279ce713a915d186
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.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cursor_sdk-1.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 59.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5e73afc3884ee6ac64490cd1c956f5e8898e27eb170b7fde90aecee707a7b861
BLAKE2b-256 checksum
How to use checksums
7a3b9a330fe0688be25f6f86cbcd82b3e66fc59a8b56e23a7c912c52a14dc81d
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.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cursor_sdk-1.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 58.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0a58d83cb51af0ced1e70c1145ab69ac701874f888f9a6ef28abfc4769698957
BLAKE2b-256 checksum
How to use checksums
c727649200dc55b535dc0695764b36a6bc515581aa60dc182cbe1e37f19c359e
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.2.0-py3-none-macosx_11_0_x86_64.whl

Download URL cursor_sdk-1.2.0-py3-none-macosx_11_0_x86_64.whl
Size 53.6 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
efebc1566fac0902cea9316704992b01e0017974e1d39fc9a5950e8c69f08756
BLAKE2b-256 checksum
How to use checksums
c0dfc6ef354295afb6c67fc683c5316b734ed0e0b2eca03dbe81fc539ff8135b
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.2.0-py3-none-macosx_11_0_arm64.whl

Download URL cursor_sdk-1.2.0-py3-none-macosx_11_0_arm64.whl
Size 51.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a5ab0d15e205ce5e99a3fea4e0764e1d2e8451f56f9fd188187020b76ac841b8
BLAKE2b-256 checksum
How to use checksums
df9ba7c3a342eb57db36f6434934838f4b75ef3efd4cc43c7736d2527ac8aa97
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.2.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.0 This release

6 release files No provenance

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