The Cursor SDK is now available in public beta. The same agents that power the desktop app, CLI, and web app are accessible with a few lines of TypeScript through @cursor/sdk!
-
Cursor SDK is available for all users. Create agents programmatically from your own code, scripts, CI/CD pipelines, or products. Agents get the full Cursor harness: codebase indexing, MCP servers, skills, hooks, and subagents.
Use the cloud runtime to get a dedicated VM with sandboxing, a repo clone, and a fully configured dev environment. Agents keep running when your laptop sleeps, and can open PRs, push branches, or attach demos when done. Or use the local runtime for fast iteration on your own machine with the same SDK interface.
-
We’re also announcing an updated Cloud Agents API (v1, finally!), reworked around durable agents and per-prompt runs with SSE streaming, reconnect support, explicit lifecycle controls (archive, unarchive, delete), and standardized response/ error shapes.
Run npm install @cursor/sdk to get started, and use the Cursor SDK plugin so Cursor can help you build. We’ve also published some sample projects you can fork and extend. You can check out the updated Cloud Agents API here.
We’d love your feedback on these features. Join the discussion over here!