跳转到主要内容
1

安装 Cursor Agent CLI

curl https://cursor.com/install -fsS | bash
使用 cursor-agent --version 验证安装。更多详情请参阅 官方安装指南
2

按照登录说明操作

使用 cursor-agent login 登录(打开浏览器)。您也可以设置 CURSOR_API_KEY 环境变量。完整说明:https://docs.cursor.com/en/cli/reference/authentication