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

Built distributions (wheels)

Table of built distributions (wheels) for cursor-sdk 1.1.0
File Actions
cursor_sdk-1.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cursor_sdk-1.1.0-py3-none-win_amd64.whl
cursor_sdk-1.1.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.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cursor_sdk-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for cursor_sdk-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cursor_sdk-1.1.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for cursor_sdk-1.1.0-py3-none-macosx_11_0_x86_64.whl
cursor_sdk-1.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for cursor_sdk-1.1.0-py3-none-macosx_11_0_arm64.whl

Total release size: 271.1 MB

Release files / cursor_sdk-1.1.0.tar.gz

Download URL cursor_sdk-1.1.0.tar.gz
Size 1.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b58e4b12ef9dfb29ad856bd333482a64aeacc13c848316253d5d75b4baa75422
BLAKE2b-256 checksum
How to use checksums
9a7616ac1cdcfc5249b140d25e336869d3fb66a2a8ed5b0e83bb5224b6835c0a
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.1.0-py3-none-win_amd64.whl

Download URL cursor_sdk-1.1.0-py3-none-win_amd64.whl
Size 47.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ebd34f777e3b94b37741666248cff485162bb2ece10d9d9ce56620879d056dcd
BLAKE2b-256 checksum
How to use checksums
e8e6c6edb02c1e1ac923b8e9173acfd4b52aca51841bf001f5ab60a3320f6214
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.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cursor_sdk-1.1.0-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
c8b7296476e6706ef1530f19b822adb89191a49202147331a56a0592e969686c
BLAKE2b-256 checksum
How to use checksums
43801f4d27619253a3b4c4cd76d6fdb3c5f0bda079cc5ab78e37f12205353671
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.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cursor_sdk-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 58.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c78342a9f79411dcff1d5ef1396c648edd47f4edc72ddca4165ffdd15ed1a87c
BLAKE2b-256 checksum
How to use checksums
b35240c9e2298ee093f48005d1047f00debe419a2f97b62d7d26844531128f01
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.1.0-py3-none-macosx_11_0_x86_64.whl

Download URL cursor_sdk-1.1.0-py3-none-macosx_11_0_x86_64.whl
Size 53.5 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
49f8bfb882851931ac59b5cf842a546b840d7ad588ec03c12b3e089b49ae020c
BLAKE2b-256 checksum
How to use checksums
0ab607a566115f31fb74873a238f5ff514cf3f4cf63e70e7d45ea19ef570d66f
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.1.0-py3-none-macosx_11_0_arm64.whl

Download URL cursor_sdk-1.1.0-py3-none-macosx_11_0_arm64.whl
Size 51.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d0c64423114db76bc9fabd957b0aed9c8c1b06211fe880e66be5898c13fc90d4
BLAKE2b-256 checksum
How to use checksums
a7db4a32dba89f6124707766a3a25da2418282944b9341d282ce04f1de6d686e
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.1.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.1.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