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.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cursor_sdk-1.3.1.tar.gz | 1.3 kB | Without provenance | Details for cursor_sdk-1.3.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| cursor_sdk-1.3.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for cursor_sdk-1.3.1-py3-none-win_amd64.whl |
| cursor_sdk-1.3.1-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.3.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| cursor_sdk-1.3.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for cursor_sdk-1.3.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| cursor_sdk-1.3.1-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details for cursor_sdk-1.3.1-py3-none-macosx_11_0_x86_64.whl |
| cursor_sdk-1.3.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for cursor_sdk-1.3.1-py3-none-macosx_11_0_arm64.whl |
Total release size: 271.3 MB
Release files / cursor_sdk-1.3.1.tar.gz
| Download URL | cursor_sdk-1.3.1.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a21618215710b71d35059c6a262e9f7f954d5d8b7329d1d01d27cefa4069033
|
|
BLAKE2b-256 checksum How to use checksums |
be7ecdb7992739ad3679a92778f245b388419be520004ec5b6f7cd85c35b88d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
package-proxy/0.1.0
|
Release files / cursor_sdk-1.3.1-py3-none-win_amd64.whl
| Download URL | cursor_sdk-1.3.1-py3-none-win_amd64.whl |
|---|---|
| Size | 47.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7441738625ffe3ceadd51a5ca8af1ed21128327694af66c892f47a5559f7071f
|
|
BLAKE2b-256 checksum How to use checksums |
2baf34adeb76b17a0faa1eeb92dbc7a98e880a90ec4408967aa8e45fe96f2e14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
package-proxy/0.1.0
|
Release files / cursor_sdk-1.3.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | cursor_sdk-1.3.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 59.3 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
f7d459072fb963684d89bad9d16eeb7679b9523780d40f1f8581093a3a58b431
|
|
BLAKE2b-256 checksum How to use checksums |
182f214d421cd6371a46712688ac6dd52f244af1bf3ab6d80da8cb438b837da5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
package-proxy/0.1.0
|
Release files / cursor_sdk-1.3.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | cursor_sdk-1.3.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 58.6 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
8882fe28317b7cdeb8bbf212e0883c71eff93f69eda389a7bc758f38fa44c03d
|
|
BLAKE2b-256 checksum How to use checksums |
fc6b41d5a1a305b894cc0899e1a2bf9ab3363f2fdd1e98724bfa2f724b1aa2c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
package-proxy/0.1.0
|
Release files / cursor_sdk-1.3.1-py3-none-macosx_11_0_x86_64.whl
| Download URL | cursor_sdk-1.3.1-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 |
9c4cb2b3982c06d731bb358790b534d4c4b283af4884ca03ec8adf6594e81030
|
|
BLAKE2b-256 checksum How to use checksums |
228b68900bdd28e2509b030fb412f77836e567d3acf20b7439a1d4099fbac598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
package-proxy/0.1.0
|
Release files / cursor_sdk-1.3.1-py3-none-macosx_11_0_arm64.whl
| Download URL | cursor_sdk-1.3.1-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 |
cc0e700cd4cf2cad9421bdd382a6e8421ff713daddc2e4aa5fc252971d42b7ea
|
|
BLAKE2b-256 checksum How to use checksums |
9cf0b8a57e9989ce337e015bcdc3d04d9d2d85e130b0639af516a240ad6966d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
package-proxy/0.1.0
|
Security for cursor-sdk 1.3.1
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.