Cursor SDK returns HTTP 500 “internal error” for me() and list_models() on Windows
Where does the bug appear?
Cursor SDK (Python)
Version
- cursor-sdk: 1.0.24
- Python: 3.11.5 (AMD64)
- Windows: 10.0.26200
Description
Using a valid User API Key from Cursor Integrations (crsr_...).
The local SDK bridge starts successfully:
- Ping → 200 OK
- GetVersion → 200 OK (bridge version 1.0.0)
However all cloud-backed SDK calls fail:
-
Client.me()→ HTTP 500 -
Client.list_models()→ HTTP 500 -
Error payload:
{
“code”: “internal”,
“message”: “internal error”
}
This occurs consistently on multiple days.
Reproduction
import os
from cursor_sdk import Client
client = Client.launch_bridge(workspace=“C:/temp/project”)
print(
api_key=os.environ[“CURSOR_API_KEY”]
)
)
Actual Result
InternalServerError: internal: internal error
status=500
The same happens with:
client.list_models(…)
Additional Observation
A direct CreateAgent RPC test returns:
{
“code”: “invalid_argument”,
“message”: “cannot decode field sdk.v1.LocalAgentOptions.cwd from JSON”
}
when a Windows path is supplied with backslashes.
Expected Behavior
Client.me()should return account information.Client.list_models()should return available models.Agent.create()should either succeed or return a clear authorization/entitlement error.- Invalid permissions should return 401/403 rather than HTTP 500.
- Windows path handling requirements should be documented if backslashes are unsupported.
Does this stop you from using Cursor?
Yes. All cloud-backed SDK operations currently fail.