# Cursor Agent SDK: Agents as Code, Evals, Self-Hosting

> Cursor's Agent SDK defines agents as Markdown and TypeScript, with built-in evals and hosted or self-hosted deploys. What shipped, and what is unpriced.

- Author: Nitish Garg, Founder & CEO, CellCog
- Published: 2026-10-26
- Canonical (HTML): https://cellcog.ai/blog/cursor-agent-sdk/
- Section: Guides / Choosing a platform
- Publisher: CellCog (https://cellcog.ai), the AI employee platform. Blog index for agents: https://cellcog.ai/blog/llms.txt

## Key points

- Cursor made its Agent SDK available on October 26, 2026: agents defined as code, with prompts in Markdown and tools in TypeScript, deployed on Cursor's hosting or your own.
- It runs on the same Cursor SDK harness that powers Bugbot, Security Review, Approval Bot and Rollouts, Cursor's own agents.
- Evals are built in: each test sends a fixed input to the real agent and checks which tools ran and what the answer looks like.
- The package is @grok/agent-sdk on npm, renamed from @cursor/bdk, which first appeared on September 22; version 0.3.0 is marked GA.
- Cursor's docs list no separate price for the SDK or for hosted deployments; only running a turn and running evals need a Cursor login.

## At a glance

- **What is the Cursor Agent SDK?** A toolkit to define, test, evaluate and deploy agents as code: a folder of Markdown instructions and TypeScript tools that Cursor runs in its model loop, on Cursor-managed hosting or your own servers.
- **How is it different from Grok Bot or Cursor Automations?** Cursor's own table: Automations are a prompt, model and trigger set in the dashboard; Grok Bot is configured in an app without code; the Agent SDK is a versioned Markdown and TypeScript project you review and test.
- **What does it cost?** Cursor's docs do not list a separate price for the SDK or hosted deployments. Model turns need a Cursor login.

**Cursor made its Agent SDK available on October 26, 2026, a way to "define agents as code, with prompts in Markdown and tools in TypeScript."** Agents deploy on Cursor's hosted infrastructure or run on your own servers, and built-in evals test every change.

The pitch is control. Where Grok Bot and Cursor Automations are set up in an app or a dashboard, an Agent SDK agent is a folder of files your team reviews, versions and tests like any other code.

## What Cursor shipped

Cursor's docs say the SDK "uses the Cursor SDK harness that powers Bugbot, Security Review, Approval Bot, and Rollouts", the agents Cursor already runs for its own customers. You write the instructions and tools; Cursor runs the model loop that calls them.

- **Agents as code.** A project keeps the agent under `bot/`: `instructions.md` is the always-on system prompt, each file in `tools/` is one typed TypeScript tool, and skills, subagents, MCP connections, channels and hooks each get a folder.
- **Where people reach it.** Cursor lists Slack, pull requests, issue trackers and Cursor itself.
- **Where it runs.** Cursor-managed hosting with deploy, rollback, logs and per-deployment secrets, or your own infrastructure through the CLI's `serve` command.
- **Who can touch it.** Deployed agents carry three roles: Viewer opens the agent, Editor deploys, stops and restarts, Owner adds secrets and access.
- **Getting started.** Node 22.13 or newer, `npm install --global @grok/agent-sdk`, `agent-sdk login`, then `agent-sdk init` and `agent-sdk dev`. Cursor also ships a prompt you paste into a coding agent to scaffold the first project for you.

## Agent SDK, Grok Bot or Automations

![Animated scene: a folder fills with three cards, instructions.md, tools.ts and evals; a run of green checks passes; then lines carry the agent out to Slack, a pull request and a server](https://cellcog.ai/blog/media/cursor-agent-sdk/agentcode.svg)
*An agent is a folder: instructions, tools and evals, deployed where your team works*

Cursor publishes its own comparison of the three ways to run an agent on its platform.

*Table: Cursor's three agent products, from its Agent SDK docs (read October 26, 2026)*

| | Cursor Automations | Grok Bot | Agent SDK |
|---|---|---|---|
| You define | A prompt, model and trigger in the dashboard | Instructions, skills and connected tools in the app | A versioned Markdown and TypeScript project |
| Where it runs | Cursor-managed | Cursor-managed | Cursor-managed hosting or your infrastructure |
| Choose it when | The job fits a schedule or event trigger | You want to configure and talk to an agent without code | You want code around model judgment your team can review, test and improve |

The third column is the news: Cursor now offers the same agent machinery behind Bugbot to any team willing to write the code.

## Evals are the point

An eval sends a fixed input to the real agent and checks what it did. Cursor's example passes only if the agent calls its inspection tool and does not approve a pull request. Evals can also check the shape of an answer against a schema, run in parallel, and get tagged so a quick smoke set runs on every change.

Cursor calls the loop "hillclimbing": improve the agent, then lock each win with an eval so a later prompt change cannot quietly undo it. That is what separates this from a prompt pasted into a dashboard.

## The package history

*Table: @grok/agent-sdk on npm (registry read October 26, 2026)*

| Date | Event |
|---|---|
| September 22, 2026 | First version published as @cursor/bdk |
| October 22, 2026 | Version 0.2.27 |
| October 23, 2026 | Changelog marks 0.3.0 the GA release; 0.2.29 published |
| October 25, 2026 | 0.3.0 published to npm under @grok/agent-sdk |
| October 26, 2026 | Cursor announces the Agent SDK on X |

The @grok scope fits the company's ownership: Cursor is sold inside The X Subscription alongside Grok and Grok Bot.

## What Cursor left out

- **Price.** The docs list no separate price for the SDK or for hosted deployments. Cursor's plans page says paid plans share a weekly usage pool for Cursor models, and Premium at $30 a month adds Cloud Agents, Automations and Grok Bot; it does not yet name the Agent SDK.
- **License.** The npm package points to its own LICENSE.md, not a standard open-source license.
- **Limits.** Nothing on how many hosted agents a team can run or how hosted turns are metered.

## Our conflict, and who this is for

Our conflict, declared: CellCog sells AI employees, a different answer to the same question of how a team puts agents to work, so treat our read with that in mind.

The Agent SDK is built for engineering teams that want an agent's every instruction and tool in source control, with tests in front of each change, running in Slack and on pull requests. If that describes your team, it is the most serious offer Cursor has made to people building agents rather than using them. If you want an agent that holds a whole role without writing its code, that is a different product.

## What we are watching

- **Pricing for hosted agents.** How Cursor meters deployed turns and whether plans name the SDK.
- **The templates.** Which review and triage agents teams publish on top of it.
- **Grok Bot overlap.** Whether Grok Bot gains a path to export a configured agent into an Agent SDK project.

## Sources

- Cursor, [Agent SDK announcement on X](https://x.com/cursor_ai/status/2114793714531102901), October 26, 2026, 18:58 UTC.
- Cursor, [Agent SDK docs](https://cursor.com/docs/agent-sdk), read October 26, 2026.
- Cursor, [Agent SDK changelog](https://cursor.com/docs/agent-sdk/changelog) and [project layout](https://cursor.com/docs/agent-sdk/reference/project-layout).
- Cursor, [Evals](https://cursor.com/docs/agent-sdk/evals) and [Access](https://cursor.com/docs/agent-sdk/reference/access).
- Cursor, [Models and pricing](https://cursor.com/docs/models-and-pricing), read October 26, 2026.
- npm, [@grok/agent-sdk](https://www.npmjs.com/package/@grok/agent-sdk), registry read October 26, 2026.

## FAQ

**When did Cursor release the Agent SDK?**

Cursor announced it on X on October 26, 2026. Its changelog marks version 0.3.0 as the GA release, dated October 23, and npm shows 0.3.0 published on October 25.

**How do I install the Cursor Agent SDK?**

With Node 22.13 or newer, run npm install --global @grok/agent-sdk, then agent-sdk login, agent-sdk init to scaffold a project and agent-sdk dev to run it locally.

**Can I self-host Cursor Agent SDK agents?**

Yes. Cursor says agents deploy on its hosted infrastructure or run on your own, and the CLI includes a serve command for running an agent server yourself.

**What can an Agent SDK agent connect to?**

Cursor lists Slack, pull requests, issue trackers and Cursor itself, plus MCP connections, subagents, skills, hooks and secrets managed per deployment.

**Is the Cursor Agent SDK open source?**

The npm package points to its own LICENSE.md rather than a standard open-source license, and Cursor does not describe it as open source.

## Related

- [Grok Bot Comes to Cursor Pro: The $20 Route, Explained](https://cellcog.ai/blog/grok-bot-cursor-pro/index.md)
- [Cursor Origin Pricing: What It Actually Costs in 2026](https://cellcog.ai/blog/cursor-origin-pricing/index.md)
- [Best AI Agent Harnesses: October 2026 Rankings](https://cellcog.ai/blog/best-ai-agent-harnesses/index.md)
- [CellCog Is Now an MCP Server for Claude, Cursor and Codex](https://cellcog.ai/blog/cellcog-mcp-server/index.md)

## The AI employee for this read

[AI Software Engineer](https://cellcog.ai/ai-employees/ai-software-engineer): I built this page. For what it covers, hire an engineer: it works in your repo behind an approval gate, so nothing reaches your world unclassified.

---

Markdown alternate of https://cellcog.ai/blog/cursor-agent-sdk/. Try CellCog free, no credit card needed: https://cellcog.ai/signup
