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.30.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.30-py3-none-win_amd64.whl (45.5 MB view details)

Uploaded Python 3Windows x86-64

cursor_sdk-1.0.30-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.30-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.30-py3-none-macosx_11_0_x86_64.whl (51.0 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

cursor_sdk-1.0.30-py3-none-macosx_11_0_arm64.whl (49.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: cursor_sdk-1.0.30.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.30.tar.gz
Algorithm Hash digest
SHA256 f699bb9e72f95ebbdbc94ecfda0958323437c155baf6c4e623699e8caef4dfa2
MD5 f85f4b24965af3ba8ea28d346325bec3
BLAKE2b-256 533f5f3cd42cb51cd916a7abed6c918b20da338c7a8d57a99f06457987719be3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cursor_sdk-1.0.30-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.30-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8c679403fd1044be47253353f3c69e9b6ccc48464219b5f25c8797b117ee91e9
MD5 02aad5baa5d5fb91c6a50b334d961f71
BLAKE2b-256 0d41323944370bb2496f4645b747be8409ffd98a4bb7264b8210819093321ec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.30-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d9f914ad13091fbc50e39b74edfb3ce03d294a2c5aa7eb30aac22bda68ac5ad3
MD5 09e748318da8ebb36de5026884f59c04
BLAKE2b-256 c5d00d41179fc676351173b3be99bb3289daa39d4511b1412eb2641afe6d07d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.30-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5892ef9ad915b63bdd065b8d3f8e5000c38eba1683db45704cd33c2be779dcee
MD5 8572a010976fb530105920f798fff905
BLAKE2b-256 72593e1e2466ffb8268782db070f4f023d6856e26978b91575a3a4baded32b70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.30-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 4f1a4ac1cf5d900a55226acf6862f2e345cc55e72c45947247d045f6842f7ad7
MD5 59368fe9265425d85006052d7319c952
BLAKE2b-256 4cfbdcaaf1399b8bce2cd56c153b5f44c8777bd60debe501c4cd2acdf059ef72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.30-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b317a73fca0f67355edc5069946a8ed9e7e213354330e10be9cde98c77d26f5
MD5 3d1a51d2126ea20e6c38361f04387277
BLAKE2b-256 74cceb1ed72c0d6845470f30fda1693c57ea378f688ef42cdbd8162a451519f7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.30 This release

6 files

1.0.29

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