Describe the Bug
Title: cursor-sdk v0.1.6 — three Windows compatibility issues (with workarounds)
Package: cursor-sdk v0.1.6 (PyPI, May 29 2026)
Environment: Windows 10, Python 3.11.9
Ran into a few issues getting the SDK working on Windows. All fixable with small workarounds — sharing in case it helps others:
1. os.get_blocking() doesn't exist on Windows
2. os.set_blocking() doesn't exist on Windows
Both were added in Python 3.12 and are Unix-only. Monkey-patching before import works:
python
import os
if not hasattr(os, "get_blocking"):
os.get_blocking = lambda fd: True
if not hasattr(os, "set_blocking"):
os.set_blocking = lambda fd, blocking: None
3. SandboxOptions(enabled=True) raises "sandboxing is not supported in this environment"
Workaround: omit sandbox_options entirely and just pass local=LocalAgentOptions(cwd=...).
After those three fixes, the SDK works great on Windows. Thanks for shipping this , excited to use it programmatically.
Steps to Reproduce
- Windows 10, Python 3.11+
2. pip install cursor-sdk
3. Set CURSOR_API_KEY
4. Run:
from cursor_sdk import Agent, AgentOptions, LocalAgentOptions, SandboxOptions
Agent.prompt(“hello”, options=AgentOptions(
model=“composer-2.5”,
local=LocalAgentOptions(
cwd=“.”,
sandbox_options=SandboxOptions(enabled=True)
)
))
5. Observe AttributeError or sandbox error
Expected Behavior
The SDK works on Windows without requiring monkey-patches of Unix-only os functions,
and handles missing sandbox support gracefully (either auto-disabling it or
documenting it as Unix-only).
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
N/A Using the Python SDK directly (cursor-sdk v0.1.6 via pip)
For AI issues: which model did you use?
composr-2.5
For AI issues: add Request ID with privacy disabled
N/A SDK only, not through IDE or CLI
Additional Information
- Use case: We’re integrating the SDK into a headless agent dispatch system (Odysseus Agent Hub), so programmatic Windows support matters for CI/automation use cases.
Does this stop you from using Cursor
No - Cursor works, but with this issue
