AI News

Cursor Launches TypeScript SDK for Programmable AI Coding Agents

Apr 30, 2026 • Developer Tools • AI Agents • AI Models

Cursor releases a TypeScript SDK for building programmable coding agents with sandboxed cloud VMs, subagents, and integrated context management.

Key Takeaways

  • Enables developers to move AI coding agents out of the IDE and into production systems like CI/CD pipelines and backend services.
  • Reduces engineering overhead by providing a pre-built harness for sandboxing, state management, and context retrieval.
  • Offers flexible deployment options, including cloud-based VMs for persistent tasks and self-hosted workers for security-conscious teams.

Cursor, the AI-powered code editor, has announced the public beta of the Cursor SDK, a TypeScript library that provides developers with programmatic access to the runtime, harness, and models that power its desktop, CLI, and web interfaces. This release marks a shift in how AI coding tools are positioned, moving from interactive assistants to deployable infrastructure that can be integrated into CI/CD pipelines, backend services, or external products.

Programmable Agent Infrastructure

The Cursor SDK allows developers to move beyond the traditional IDE-based interaction model. By using a few lines of TypeScript, engineers can invoke agents programmatically to perform tasks such as writing functions, fixing bugs, or explaining code. To get started, developers can install the library via npm and initialize an agent instance by providing an API key, a model selection, and a configuration for either local or cloud-based execution.

This approach addresses the engineering challenges associated with building reliable coding agents from scratch. By providing a pre-built harness, the SDK handles complex requirements like secure sandboxing, environment setup, context management, and session persistence. This allows development teams to focus on building agentic workflows rather than maintaining the underlying infrastructure.

Integrated Harness and Cloud Execution

Agents built with the SDK utilize the same infrastructure that powers Cursor’s own products. This includes intelligent context management, such as codebase indexing and semantic search, which ensures agents receive relevant information to avoid hallucinations. The SDK also supports the Model Context Protocol, enabling agents to connect to external tools and data sources. Furthermore, developers can define reusable behaviors through Skills, use Hooks for custom orchestration or guardrails, and implement Subagents to delegate tasks without writing additional orchestration code.

For more complex requirements, the SDK offers cloud execution, where agents run in dedicated, sandboxed virtual machines. These cloud agents maintain a clone of the target repository and continue running even if the initiating machine goes offline. Because these agents integrate with the existing Cursor interface, tasks started programmatically can be inspected or managed manually by developers. For organizations with specific security needs, the SDK also supports self-hosted workers, ensuring that code and tool execution remain within the company's own network.

Model Flexibility and Deployment

The SDK provides access to every model supported by Cursor, allowing teams to switch models by updating a single parameter to balance cost and performance. Cursor’s Composer 2 model is recommended as the default for most coding agent tasks due to its performance and efficiency. To assist with adoption, Cursor has released a cookbook repository on GitHub featuring starter projects, including a web-based prototyping tool, an agent-powered kanban board, and a CLI for spawning agents. A dedicated plugin is also available in the Cursor Marketplace to help developers begin building directly within the editor.