Home Stories About RSS Feed
2 min read

Cursor Launches TypeScript SDK: Turning the IDE Into a Programmable Agent Runtime

Back to News

Cursor has released a TypeScript SDK in public beta, and it signals a fundamental strategic shift: the company is positioning itself not just as an AI-powered code editor, but as an agent execution runtime for software engineering organizations.

From IDE to Platform

The SDK gives developers programmatic access to the same agent runtime, models, and tooling that power the Cursor desktop application. This means you can invoke Cursor’s coding agents from:

import { Agent } from "@cursor/sdk";

const agent = await Agent.create({
  apiKey: process.env.CURSOR_API_KEY!,
  model: { id: "composer-2" },
  local: { cwd: process.cwd() },
});

const run = await agent.send("Summarize what this repository does");

for await (const event of run.stream()) {
  console.log(event);
}

Full Harness, Not Just API

What makes the SDK compelling is that agents built with it inherit Cursor’s full capabilities:

Flexible Execution

Agents can run in two modes:

  1. Local execution — run on your machine for fast iteration during development
  2. Cloud execution — run on Cursor’s managed infrastructure using dedicated, sandboxed VMs

This flexibility is critical for enterprise adoption. Development teams can prototype locally and deploy to cloud infrastructure for production workloads without changing code.

Building on Cursor 3.2

The SDK launch follows Cursor 3.2 (released April 24), which introduced:

These capabilities are fully accessible through the SDK, enabling complex multi-agent workflows.

Why It Matters

The coding agent market is rapidly consolidating around a few key architectures. By releasing an SDK, Cursor is betting that the future isn’t just AI-assisted coding in an editor — it’s AI coding agents embedded throughout the software development lifecycle. If CI/CD pipelines, internal tools, and custom products can all invoke the same agent runtime, Cursor becomes infrastructure rather than just a developer tool.

The pricing model (token-based consumption) aligns with this infrastructure play. Install via npm install @cursor/sdk.


Source: cursor.com, marktechpost.com