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

Uploaded Python 3Windows x86-64

cursor_sdk-1.0.26-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.26-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.26-py3-none-macosx_11_0_x86_64.whl (49.1 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

cursor_sdk-1.0.26-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.26.tar.gz.

File metadata

  • Download URL: cursor_sdk-1.0.26.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.26.tar.gz
Algorithm Hash digest
SHA256 cd4bdf0b44bc61b517c78efc11e2a2b3bbb701f06d6b4b1b55107df9572ada04
MD5 68a45b15db5509b17afdc16ff574f107
BLAKE2b-256 db7d15d31f5f2e723c41a2602342ef83e80978847a85bdb5af2722a688b50bf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cursor_sdk-1.0.26-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.26-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6c81e0a2244574a59892e34a3cefef496d22e584df5678e6b79ac418ccdc286f
MD5 2b1bbdc52d341306107e50bbe0e81c94
BLAKE2b-256 2fb5abd7b25c67b99c922b357bd041c99e3f6663c8548b9ce39d56c1a45ccf42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.26-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ba6d1c0c4a5d905f82aa04bf034cf8fa17a6b0f9a9b938eab47735913c1f8482
MD5 4f841c376425765a8ea5c67e6124d6ed
BLAKE2b-256 76d899d0b9b9e26428b3d06dd1d359dfc6b51bb3755f31a2e7271a3c03feca23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.26-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 6d0a64fd3a8904efd738836aad08fb95ee84047757fd09dde6c9668cc5ae2de4
MD5 46da9eeeb5d045a1c6a8a5ec8b816f5a
BLAKE2b-256 480d93077a5028ece54ded3796239a9a3cf7a721252473c05e79f92caaa2d82b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.26-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 bbae2ded8213b3c150f5f4e26b89461e04b7eacd053c772304df2adb630cc0a6
MD5 52743b2bff36f39fccfc15e362fd1968
BLAKE2b-256 f2b2a8bb2e6754ddea9f0e17a2bd81090177855d423f64d55c7e84e79052755b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cursor_sdk-1.0.26-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa2d3250ca257b788f6ad2336d41dc359b6523648f3481ed1f145603a04641a3
MD5 e2ec0a71bdc466653b282fc532ce2516
BLAKE2b-256 ce08bfbbb547e77a5e357fcf1bc3ede9c2caaad1fe2a089710e66cba5e71d04b

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