Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

cursor-cloud-agentCursor cloud Agent 部署

Agent Skill

cursor-cloud-agent 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,524

周安装

485

GitHub Stars

公开资料未说明

下载量

4,035
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cursor-cloud-agent(Cursor cloud Agent 部署)
来源仓库:https://github.com/siaslfs/cursor-cloud-agent
安装命令:
openclaw skills install cursor-cloud-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cursor-cloud-agent

简介

cursor-cloud-agent 通过官方 API 启动和管理 Cursor Cloud Agents 完成云端编码任务。

  • 适用于 OpenClaw 中部署容器化开发环境或利用弹性算力加速构建流程。
  • 自动创建 Pull Request 并推送至远端仓库,简化协作发布环节。
  • 使用前需申请 API 访问权限并绑定有效的 Cursor 账户与组织身份。
  • 云资源成本由 Cursor 承担,但仍需监控任务耗时以防意外长时间运行产生费用。

SKILL.md

name
cursor-agent
description
>-

Cursor Cloud Agent Skill

Manages Cursor Cloud Agents via the official API v0 (api.cursor.com). Cloud Agents run in isolated cloud VMs, onboard to your codebase, write code, test it, and deliver merge-ready PRs.

Quick Start

SKILL=~/.openclaw/workspace/skills/cursor-agent/scripts/cursor_bga.py

# First-time setup: get your API key
python3 $SKILL setup

# Launch an agent and wait for it to finish
python3 $SKILL create \
  --repo owner/repo-name \
  --prompt "Add unit tests for the auth module, run tests, submit PR" \
  --auto-pr --wait

# Launch without waiting (returns immediately)
python3 $SKILL create \
  --repo owner/repo-name \
  --prompt "Refactor utils module" \
  --auto-pr

# List recent agents
python3 $SKILL list

# Check agent details (one-time query)
python3 $SKILL get --agent-id <ID>

# Poll agent until finished (blocks, prints summary when done)
python3 $SKILL check --agent-id <ID> --interval 15 --timeout 600

# Send follow-up instructions
python3 $SKILL followup --agent-id <ID> --message "Also add integration tests"

# Stop a running agent
python3 $SKILL stop --agent-id <ID>

# List available models
python3 $SKILL models

# List accessible repos
python3 $SKILL repos

Authentication

API key is read from (in priority order):

  1. --api-key KEY argument
  2. CURSOR_API_KEY environment variable
  3. ~/.cursor_api_key file (recommended)
# Save API key
echo 'your_api_key_here' > ~/.cursor_api_key
chmod 600 ~/.cursor_api_key

Get your key at: https://cursor.com/dashboard → Integrations → Generate API Key

Commands

CommandDescription
createLaunch a new Cloud Agent (--wait to block until done, --no-direct to skip auto-execute hint)
listList recent agents (filter by PR URL, limit)
getGet agent details (status, summary, PR info)
checkPoll agent until finished, print final summary
conversationView full agent conversation history
followupSend additional instructions to a running agent
stopPause a running agent
deletePermanently remove an agent
modelsList available LLM models
reposList accessible GitHub repositories (outputs owner/repo format for --repo)
setupPrint API key setup instructions

API Details

  • Base URL: https://api.cursor.com/v0
  • Auth: Basic Authentication (API key as username, empty password)
  • Docs: https://cursor.com/docs/cloud-agent/api/endpoints

Workflow

When user asks to delegate a task to Cursor Cloud Agent:

Phase 1: Pre-flight Check (automatic)

The create command now runs automatic pre-flight checks before launching an agent:

  1. API Key — Validates key by calling /models endpoint
  2. Repo Access — Verifies the repo is in Cursor's accessible repo list
  3. PR Permissions (when --auto-pr) — Checks GitHub push/admin access via gh CLI

If any check fails, the script exits with a clear error message before incurring API costs.

Use --skip-preflight to bypass these checks if needed.

You still need to confirm with the user:

  • Task Prompt — Must be clear and specific enough for an agent to execute independently
  • Branch/Ref — If user wants changes on a specific branch (not default)

Phase 2: Execute

  1. Run create --wait --auto-pr with the confirmed repo and prompt
  2. The script auto-appends a "execute directly" instruction to prevent agent from asking for confirmation (use --no-direct to disable)
  3. --wait blocks until agent finishes and prints a full summary including conversation excerpt

Phase 3: Post-check

  1. If check reports --auto-pr was set but no PR URL, it will print the gh pr create command as fallback — run it
  2. Use followup to refine instructions if agent output needs adjustment
  3. Report results back to user

Agent Status Values

  • CREATING — Agent is being set up
  • RUNNING — Agent is actively working
  • FINISHED — Agent has completed the task
  • FAILED / STOPPED — Agent terminated abnormally

Constraints

  • Repo 格式--repo 必须为 owner/repo 格式,不支持完整 URL 或纯仓库名
  • Repo 权限 — 只能操作 Cursor GitHub App 已授权的仓库,未授权仓库会返回 404
  • 并发限制 — 同一账号同时运行的 Agent 数量受 Cursor 计划限制(Trial 通常为 1 个)
  • 执行时长 — 单个 Agent 任务通常在 2-5 分钟完成,复杂任务可能更长;check 默认超时 600 秒
  • 用量计费 — 每次 create 都会产生 API 用量费用,请勿重复创建相同任务
  • Prompt 语言 — Agent 支持中英文 prompt,但代码注释和 commit message 默认跟随 prompt 语言
  • Auto-PR 不保证--auto-pr 依赖 Cursor GitHub App 权限,可能静默失败(无报错),需在 Post-check 阶段处理

Troubleshooting

1. 认证失败 (401)

[ERROR] Authentication failed (401). Check your API key.

原因:API Key 无效、过期或格式错误

解决

  1. 检查 ~/.cursor_api_key 文件内容是否以 crsr_ 开头,无多余空格或换行
  2. 到 https://cursor.com/dashboard → Integrations 重新生成 Key
  3. python3 $SKILL models 验证新 Key 是否生效

2. 权限不足 (403)

[ERROR] Forbidden (403). Your plan may not support this feature.

原因:当前 Cursor 计划不支持 Cloud Agent API,或未开启 Usage-based pricing

解决:到 Cursor Dashboard 确认计划类型,确保已开启 Usage-based pricing

3. 仓库未找到 (404)

[ERROR] Not found (404): /agents

原因:仓库名格式错误,或 Cursor GitHub App 未授权该仓库

解决

  1. 确认 --repoowner/repo 格式(如 siaslfs/ai-xxx
  2. 到 GitHub → Settings → Applications → Cursor 检查仓库授权

4. 请求限流 (429)

[ERROR] Rate limited (429). Please wait and try again.

原因:短时间内请求过多

解决:等待 1-2 分钟后重试。避免频繁调用 create 或短间隔轮询(check --interval 建议 ≥ 10 秒)

5. Agent 空转(只输出方案不执行)

现象:Agent 状态 FINISHED,但 filesChanged 为 0,对话记录显示 Agent 在等待确认

原因:Prompt 被 Agent 理解为需要先确认再执行

解决

  1. 默认已自动追加"直接执行"指令,正常情况不会发生
  2. 如果使用了 --no-direct,去掉该参数重试
  3. 也可以用 followup --message "直接执行,不需要确认" 追加指令

6. Auto-PR 未生效

现象:Agent FINISHED,有代码变更,但无 PR URL

原因:Cursor GitHub App 缺少创建 PR 的权限

解决check 会自动输出 gh pr create 回退命令,直接执行即可。或到 GitHub 手动创建 PR

Requirements

  • Active Cursor account with Trial or Paid plan
  • Usage-based pricing enabled
  • GitHub account connected with repository permissions

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.79%
按下载量换算3,381

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills