Cursor Agent SDK

TypeScript SDK for building managed coding agents that react to pull requests, hand off work and run on Cursor's cloud or your own servers.

Usage-based; cloud agents need Cursor Premium ($30 a month) or higherDeveloper framework and runtime for custom coding agents
7.4/10 our score

Be the first to rate Cursor Agent SDK

Visit website
Cursor Agent SDK website screenshot

Cursor Agent SDK Review

DeveloperCursor
Websitecursor.com/blog/agent-sdk
Agent typeDeveloper framework and runtime for custom coding agents
Best forEngineering teams that already use Cursor and want their own review, migration or maintenance agents defined in code, tested with evals and run on every pull request.
Fit noteTeams that write agents in Python or Go may find another framework a better fit, since Cursor shows only TypeScript.
Pricing modelToken-based consumption on Cursor plans
Starting priceUsage-based; cloud agents need Cursor Premium ($30 a month) or higher
Pricing detailsCursor bills SDK agents on standard token-based consumption pricing. Cloud agents come with Premium ($30 a month), Super ($100), Ultra ($200), Teams (from $30 per user a month) and Enterprise (custom). Use draws from the plan's shared pool, which refreshes weekly. Third-party models bill at API list price. Self-hosted agents run on your own compute.
Free planNo; cloud agents are not on the Free or Plus plans
Free trialNo
ChannelsTypeScript SDK, agent-sdk CLI, Cursor dashboard, Cloud Agents API
What it does on its ownAn agent defined in code reacts to pull request events, works through its tools, hands tasks to specialist agents and splits work across parallel subagents. Cursor runs it on its own infrastructure after one deploy command, or you run it yourself.
IntegrationsGitHub, GitLab and Bitbucket pull request events, tools written as TypeScript functions, outside services through those tools, Cursor Cloud Agents API
PlatformsCursor cloud, self-hosted Node, local playground
Compliance and securityCursor lists SOC 2, ISO 27001, ISO 42001 and AIUC-1; secrets and integrations managed in the dashboard
Details last verified15 November 2026
CategoriesAgent Frameworks for Developers, Coding & Software Development, No-Code Agent Builders
7.4/10

Cursor Agent SDK Score

Our editorial score across six weighted criteria, based on Cursor Agent SDK’s published documentation, pricing and public user ratings. How we score

  • Autonomy8.0

    Deployed agents react to pull requests, hand off tasks and split work across subagents with no prompt.

  • Ease of Setup7.5

    Templates, a local playground and a one-command deploy, though it needs TypeScript skills.

  • Pricing Value6.5

    Token-based billing on existing plans, but no price list per agent run.

  • Integrations7.5

    Three Git hosts and any service you wrap in a TypeScript tool.

  • Trust and Security7.5

    Four listed certifications, dashboard secrets and a self-host option.

A Reviewer Agent Built in a Day

One internal Cursor team wanted every pull request checked against lessons the team had already learned. They built kb-reviewer with the Agent SDK in about a day. It reads each PR, compares it with a knowledge base of past notes, flags anything that contradicts them and cites the note. That is the kind of agent the SDK is for.

Cursor released the Agent SDK as generally available on October 20, 2026. It is the same framework Cursor uses for Bugbot, Security Reviewer and Rollouts. On our scale the SDK lands at 7.4 out of 10, without user ratings for now.

Cursor Agent SDK Facts Engineering Leads Ask For

  • Release: generally available October 20, 2026.
  • Language: TypeScript, with prompts in Markdown.
  • Runs on: Cursor’s cloud, your own servers or a local playground.
  • Billing: token usage drawn from your plan.
  • Cloud agents start on the $30 Premium plan.

Cursor Pages We Read

FactDetailSource
What the SDK does, steps, examplesEvals, deploy, PR triggers, kb-reviewer, PGACursor Agent SDK launch post
Projects betaCoordinator agent, subagents, shared filesCursor Projects post
Earlier SDK beta and API changesLocal or cloud VM, token billing, SSE streamsCursor SDK changelog
Plans with cloud agentsPremium $30 and up, Teams, EnterpriseCursor pricing

Building an Agent Step by Step

Cursor’s launch post lays out five steps.

  1. Create a project folder, from a template or by asking a coding agent to work from the docs.
  2. Define the agent in code: its name, its model and local settings such as the working folder.
  3. Start the local playground and try it. Logs show each step.
  4. Run evals to check it does the job before it ships.
  5. Run agent-sdk deploy. Cursor builds the agent, gives it a URL and starts it on its own servers.

The launch example uses a model called composer-2.5 with effort set to high. An earlier changelog says the SDK works with any frontier model.

Features Developers Get

Tools as TypeScript Functions

Each tool is a plain TypeScript function. Through tools, agents can reach outside services. Prompts live in Markdown files beside the code.

Pull Request Triggers

Agents can respond to pull request events from GitHub, GitLab and Bitbucket. Review, test and cleanup agents can then run on every PR.

Handoffs and Subagents

An agent can pass a task to a specialist agent with its own tools and session. It can also split work across parallel subagents.

Evals and Event Replay

Evals run against the agent before deploy. Event replay lets you rerun a past event to see what went wrong.

Agents in Version Control

Agent definitions sit in your repo and go through normal code review. Cursor also ships skills that guide coding agents while they build new agents.

Where Agents Run

OptionHow it works
LocalPlayground on your machine with a set working folder, logs and evals
Cursor cloudagent-sdk deploy builds, hosts and starts the agent; secrets set in the dashboard
Self-hostedEach agent is one Node process you can put in a container on your own servers

The earlier SDK changelog describes the cloud run as a dedicated VM.

The Earlier SDK and the Cloud Agents API

Before the October launch, Cursor shipped a public beta TypeScript SDK installed with npm install @cursor/sdk. It gives programs the same runtime, harness and models as Cursor’s desktop app, CLI and web app. A script creates an agent, sends a prompt and streams events back. The same release updated the Cloud Agents API.

  • Durable agents with runs per prompt, so follow-ups, status and cancel apply to one run.
  • Run streaming over SSE, with reconnect through the Last-Event-ID header.
  • Archive, unarchive and permanent delete for agents.
  • Structured error codes and separate agent and run objects in version 1.

Cursor’s cookbook repository on GitHub holds sample projects.

What It Costs to Run Agents

Cursor bills SDK agents on standard token-based consumption pricing. The changelog lists no separate fee. Cloud agents and automations come with these plans.

PlanMonthly priceCloud agents
Free$0Not included
Plus$8Not included
Premium$30Included
Super$100Included
Ultra$200Included
TeamsFrom $30 per userIncluded
EnterpriseCustomIncluded, with pooled usage

Cloud agent use draws from the plan’s shared usage pool. Allowances refresh weekly, and you can buy top-offs. Third-party model use is billed apart at API list price. Self-hosted agents run on your compute, though model calls still bill as usage.

Budget Tips

Agents that fire on every PR can add up. Set Enterprise spend controls or group limits if you have them. Pick models with care, since third-party models bill at list price.

Certifications and Self-Hosting

Cursor’s site shows four certifications: ISO 27001, SOC 2, ISO 42001 and AIUC-1. The launch post does not tie those to the SDK alone. Secrets and integrations live in the Cursor dashboard. Teams with strict rules can self-host each agent as a Node process. Enterprise adds audit logs, service accounts and access controls for repositories, models and MCP.

Gaps in the SDK Docs So Far

  • Only TypeScript appears in the posts we read.
  • MCP is not mentioned in the launch post.
  • Neither post lists known limits or quotas.
  • Cloud agents are not on the Free or Plus plans.
  • Capterra had only four reviews of Cursor when we checked, too few to score.

Projects, Cursor’s Ready-Made Coordinator

Teams that want long agent work without writing code have a second option. On September 10, 2026, Cursor began a beta of Projects. In a Project, a coordinator agent plans a feature, a migration or an app. It does not write code itself. It sends subagents to build and test parts in parallel. Shared files keep what the agents learn, and the Project runs on its own cloud computer. It can watch a Slack channel for bug reports and act on PR activity. Pick the SDK if you want to own the agent’s code. Pick Projects if you want Cursor to run the plan.

Teams Who Gain and Teams Who Can Pass

Teams already on Cursor that want house agents get the most. Code review against team rules, security checks, migrations and test upkeep all match the PR triggers. The PGA Tour uses the SDK to run what it calls its software factory on Cursor’s infrastructure.

Python-first teams, or teams that want to stay off any one editor vendor, may prefer an open framework.

Cursor Agent SDK Next to Other Agent Frameworks

FrameworkLanguageEntry price
Cursor Agent SDKTypeScriptToken usage on Cursor plans
OpenAI Agents SDKPythonFree open source; pay for tokens
MastraTypeScriptFree open source; Teams $250 a month
Google ADKFive languagesFree framework; Agent Runtime at $0.085 per vCPU-hour
GitHub Copilot Cloud AgentReady-made agent, no frameworkGitHub Copilot plans

How the SDK Reached 7.4

Autonomy scores highest, since deployed agents act on PR events on their own. Setup is good with templates, a playground and one deploy command. Trust is solid with four certifications and self-hosting. Pricing sits lower because no per-run figures are published.

Questions Developers Ask About the Cursor Agent SDK

Which Language Does It Use?

TypeScript for agents and tools, with prompts in Markdown.

Can I Run Agents on My Own Servers?

Yes. Each agent is a single Node process you can run in a container.

Does It Work With GitLab?

Yes. Agents can respond to pull request events from GitHub, GitLab and Bitbucket.

How Is It Billed?

By token use under your Cursor plan. Running in Cursor’s cloud requires Premium or above.

What Has Cursor Built With It?

Bugbot, Security Reviewer and Rollouts, plus internal agents such as kb-reviewer.

Is It Still in Beta?

The Agent SDK is generally available. An earlier SDK was released as a public beta.

Guides Related to Cursor Agent SDK

Features

  • Agents defined in TypeScript with Markdown prompts | Local playground with logs | Built-in evals and event replay | One-command deploy to Cursor's cloud | Self-hosting as a single Node process | Pull request triggers for GitHub, GitLab and Bitbucket | Handoffs to specialist agents and parallel subagents | Run streaming over SSE with reconnect

Strengths and Areas to Improve

Strengths

  • Same runtime that powers Cursor's own Bugbot | Evals and replay built in | Deploy to Cursor or self-host | Agent code goes through normal code review | Cursor lists four security certifications

Areas to Improve

  • TypeScript only in the docs we saw | No per-agent price list | Cloud agents need a paid plan of $30 a month or more | No user review score with enough ratings yet

User Reviews

Nobody has rated it here yet. Be the first AI Agents Choice user to rate Cursor Agent SDK.

Write a Review