This repo contains small examples for building with Cursor.
The Cursor SDK is the TypeScript API for running Cursor's coding agent from your own apps, scripts, and workflows. It supports the same agent across local workspaces and cloud runtimes, streams agent events as runs progress, and lets you manage prompts, models, cancellation, artifacts, and conversation state from code.
To run the SDK examples, create a Cursor API key from the Cursor integrations dashboard, then set it as CURSOR_API_KEY.
A minimal Node.js example that creates a local agent, sends one prompt, and streams the response.
A web app for spinning up agents to scaffold new projects and iterate on ideas in a sandboxed cloud environment.
A kanban board for viewing Cursor Cloud Agents, grouping them by status or repository, previewing artifacts, and creating new cloud agents from a repository and prompt.
A minimal command-line interface that lets you spawn Cursor agents from your terminal.
Learn more in the Cursor SDK TypeScript docs.