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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursor_sdk-1.0.29.tar.gz (1.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cursor_sdk-1.0.29-py3-none-win_amd64.whl (45.5 MB view details)

Uploaded Python 3Windows x86-64

cursor_sdk-1.0.29-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (59.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

cursor_sdk-1.0.29-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (58.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

cursor_sdk-1.0.29-py3-none-macosx_11_0_x86_64.whl (51.0 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

cursor_sdk-1.0.29-py3-none-macosx_11_0_arm64.whl (49.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file cursor_sdk-1.0.29.tar.gz.

File metadata

  • Download URL: cursor_sdk-1.0.29.tar.gz
  • Upload date:
  • Size: 1.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cursor_sdk-1.0.29.tar.gz
Algorithm Hash digest
SHA256 c3e93dfbec7bc5e9c2155b4a193f8605c8b8d790d06f27ca93d1601b7ac6ede1
MD5 f076b322d978466d8e7b033c7b6bd04a
BLAKE2b-256 f8897e9214f6b6e42c7cdb3457d5ffaef799ffe4c8b1fcd49fab470f2351cca9

See more details on using hashes here.

File details

Details for the file cursor_sdk-1.0.29-py3-none-win_amd64.whl.

File metadata

  • Download URL: cursor_sdk-1.0.29-py3-none-win_amd64.whl
  • Upload date:
  • Size: 45.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cursor_sdk-1.0.29-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0e324493854901a13ffe9f58ac08449b332ede6e1f616f8905704f3aaac47b18
MD5 c3b827f94872bd7e855c4968707f381c
BLAKE2b-256 ea33f10cc524089aa06d6643ca2ba9323509538b3f98ebd5c335d13776110f99

See more details on using hashes here.

File details

Details for the file cursor_sdk-1.0.29-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cursor_sdk-1.0.29-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e3623cf5f4f1ad5d42311a846ebe0a900558a7489604fde9a402f1018dcf2bac
MD5 79a7f0aaea6cf8f6b276744dd3e308a6
BLAKE2b-256 2a2a0c8e051408b550530d552a89fc4705fa234b9ba68cedecc176ec0c4599e2

See more details on using hashes here.

File details

Details for the file cursor_sdk-1.0.29-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for cursor_sdk-1.0.29-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2bb351916dd8eb163699b2523b4c91f985adbfbe7374e2bcf8268a2db281d864
MD5 acdf375433536d7510ae0e141a37f1b1
BLAKE2b-256 b3c41be2cdddc4d78d358e2e1f330a9bd0dba3a960fdc176e5d776b09b53c1bf

See more details on using hashes here.

File details

Details for the file cursor_sdk-1.0.29-py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for cursor_sdk-1.0.29-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ec242b327df32f672f0cd214c0d377ac27373d516d085dc8b7bba04f308423e9
MD5 48450226112ed8a393046c37cfc2c7e9
BLAKE2b-256 65e2e6dae2a945a91fbd194fc6dcaa88c83b51907c6ba7298cf193d6b0762d51

See more details on using hashes here.

File details

Details for the file cursor_sdk-1.0.29-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cursor_sdk-1.0.29-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c37ba605eb1d5b9f1d6425c779516d985400c503ee3f489e3ace86ad2c9f1e58
MD5 6382d62cebe29d1d78fb6dceef37c4f2
BLAKE2b-256 a2bae6c8583234a7d96f0c71b35221a67415030d552863aad120c0a7dae83e27

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.30

6 files

This release

1.0.29 This release

6 files

1.0.28

6 files

1.0.27

6 files

1.0.26

6 files

1.0.25

6 files

1.0.24

6 files

0.1.9

6 files

0.1.8

6 files

0.1.7

6 files

0.1.6

6 files

0.1.5

6 files

0.1.4

6 files

0.1.3

6 files

0.1.2

4 files

0.1.1

4 files

0.1.0

3 files

0.0.0

2 files

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