
NoCode
NoCode是一款无需任何编程背景和经验的工具,用户只需通过自然语言描述自己的想法,AI便会自动解读并转化为完整的功能应用。这一特性极大地降低了开发门槛,帮助不同角色以“零代码”的方式快速实现创意。
Cursor 正式推出 Cursor SDK,标志着编程智能体从面向个人开发者的交互式工具,正式演进为面向组织的程序化基础设施。通过 Cursor SDK,开发者只需几行 TypeScript 代码,即可调用驱动 Cursor 桌面应用、CLI 和 Web 应用的同一套运行时、框架和模型来构建智能体。
Cursor 正式推出 Cursor SDK,标志着编程智能体从面向个人开发者的交互式工具,正式演进为面向组织的程序化基础设施。
通过 Cursor SDK,开发者只需几行 TypeScript 代码,即可调用驱动 Cursor 桌面应用、CLI 和 Web 应用的同一套运行时、框架和模型来构建智能体。无论是本地快速迭代,还是云端大规模自动化部署,Cursor SDK 都提供了统一且强大的解决方案。

目前,Cursor SDK 已面向所有用户开放公开 Beta。
构建生产级的编程智能体通常涉及繁琐的工程工作:安全沙箱、持久化状态管理、环境配置、上下文索引等。Cursor SDK 屏蔽了这些底层复杂性,让团队能够专注于业务逻辑。
通过 SDK发起的云端会话,运行在与 Cursor 云端智能体相同的优化运行时之上:
// 启动云端智能体执行任务
const agent = await Agent.create({
apiKey: process.env.CURSOR_API_KEY!,
model: { id: "gpt-5.5" },
cloud: {
repos: [{ url: "https://github.com/cursor/cookbook", startingRef: "main" }],
autoCreatePR: true, // 自动创建 PR
},
});
const run = await agent.send("Fix the auth token expiry bug");
console.log(`Started ${run.id}`);
// 稍后获取结果
const result = await (
await Agent.getRun(run.id, { runtime: "cloud", agentId: run.agentId })
).wait();
console.log(result.git?.branches[0]?.prUrl);
同一个 SDK 支持多种运行时环境,满足不同场景需求:
SDK 智能体继承了 Cursor 核心产品的所有高级能力:
.cursor/mcp.json 或内联配置,连接外部工具和数据源。.cursor/skills/ 目录中的技能定义。.cursor/hooks.json 观察和控制智能体循环。Cursor SDK 支持访问 Cursor 平台的所有模型。开发者可以根据任务复杂度动态路由到最佳模型:
const agent = await Agent.create({
apiKey: process.env.CURSOR_API_KEY!,
model: { id: "composer-2" }, // 轻松切换模型
local: { cwd: process.cwd() },
});
随着 SDK 的开放,各团队正在探索多样化的应用场景:
安装 SDK:
npm install @cursor/sdk
极简示例(本地运行):
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);
}
为了帮助开发者快速上手,Cursor 在 GitHub 公开仓库中提供了多个入门项目:







