Cursor SDK Now Available: Build Agents with TypeScript

Cursor SDK is now in public beta. Build agents with TypeScript using the same runtime and models that power Cursor's desktop and CLI. Token-based pricing, cloud or local execution.

Cursor SDK Now Available: Build Agents with TypeScript

TL;DR

  • Cursor SDK is now in public beta — build agents programmatically with TypeScript
  • Run agents locally or on Cursor's cloud infrastructure with any frontier model
  • Cloud Agents API redesigned for better streaming, lifecycle control, and error handling

New

  • Cursor SDK (TypeScript) — Access the same runtime and models powering Cursor's desktop, CLI, and web apps. Install with npm install @cursor/sdk and start building agents in minutes.
  • Cloud Agents API v1 — Reworked around durable agents and per-prompt runs with first-class SSE streaming, reconnect support via Last-Event-ID, and explicit lifecycle controls (archive, unarchive, delete).
  • Run-scoped operations — Follow-ups, status checks, streaming, and cancellation now operate at the run level for clearer state management.
  • Standardized responses — v1 API now includes structured error codes, items list responses, and separate agent / run objects.

Getting Started

Update: Run npm install @cursor/sdk to get started.

Source: Cursor