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

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

Uploaded Python 3Windows x86-64

cursor_sdk-1.0.25-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (56.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

cursor_sdk-1.0.25-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (56.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

cursor_sdk-1.0.25-py3-none-macosx_11_0_x86_64.whl (49.1 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

cursor_sdk-1.0.25-py3-none-macosx_11_0_arm64.whl (47.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: cursor_sdk-1.0.25.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.25.tar.gz
Algorithm Hash digest
SHA256 a3bb4bc87b18a5cd408916f882c063e8ca60d23374b4a646c2aeb051a075769f
MD5 741f140eca7cb871efb0bccfc260967f
BLAKE2b-256 bd7623bbf84bdb74ba81b30a75cde09efea0a03917ddea6b713c66da5b6fec37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cursor_sdk-1.0.25-py3-none-win_amd64.whl
  • Upload date:
  • Size: 43.6 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.25-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a66c6ea879a96a480f42202f0825c9ff68cc3ee3f24c262f7d4a74e23c3d829c
MD5 1543c3a5937c2663336151eeb712749c
BLAKE2b-256 034b676ffc67e7573d9b7f99b32f5d210d83acbc8c8430613959d8b9eb106bf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.25-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6a58481c50ecce9a537a573c7e2bfff5a97f8d22dafb51c7c2a36c7a9e8c6076
MD5 ab1ea0abc1f40d273a53d6fd7e0211bd
BLAKE2b-256 fe29c701951c62ce36beb8a93eb7663534bba68ad31cb726a01b7a0688222f30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.25-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 9a90f84336f12cd6a2b9f189e3c55d2bd17c65c8bf743d5f8eaee2ea5659ec23
MD5 f372fba6cd283f68ba363413cf733c7c
BLAKE2b-256 adde90fa8a01161e8f9314c7b6fb97521fa89e09f590b2093b8e1de12fa6f11b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.25-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9bd920a01653a289d0034ac60cdb37aa7b66a3de292aa6cce7d6a2750596d44f
MD5 153c6972e7123f7b06dd9ead992910cb
BLAKE2b-256 f622cd1716fb61ba20290434c2a80b0bd168546f918b273e2120af2990c5a6b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.25-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d9ca8a0ea15f7092e82fa1e7502f78c7c406cbf9bf141ba5a2365ddcedcefe6
MD5 83e0db9361dac732918e10c46410f829
BLAKE2b-256 a869034608bbe15005ec6905d2fa008833a0ae113cec978f3a9526846054d270

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page