Cursor Agent for OpenClaw
/install cursor-agent-openclaw
Cursor Agent
Cursor Agent CLI runs on the user's Cursor subscription — zero API cost. Always prefer it over inline code generation for any non-trivial coding task.
Prerequisites
Required binary: agent (Cursor Agent CLI)
Install from the official site: https://cursor.com/docs/cli/overview — then verify with agent --version.
The helper script (scripts/run.sh) will exit with an error if agent is not found in PATH.
User Consent Required — MANDATORY
This skill MUST NOT be invoked autonomously. Every invocation requires:
- State intent first — tell the user: the repo, the task, the model, and whether files will be changed
- Wait for explicit "yes" — do not proceed without clear user approval
- Default to read-only — use
run.sh \x3Crepo> \x3Ctask> \x3Cmodel> askunless the user explicitly asks for changes - Before writing files — run in
askmode first, show the user the plan, then ask: "Apply these changes?" - Before
--cloud— explicitly warn: "This will send repo contents to cursor.com. OK to proceed?" - Before committing — show the diff and get confirmation
The helper script (scripts/run.sh) defaults to ask (read-only). Pass write as the mode argument only after the user has confirmed changes should be applied.
Model Routing
| Task type | Model flag | Mode flag |
|---|---|---|
| Trivial / exploratory | (omit — auto) |
(omit) |
| Bug fix / feature / refactor | --model sonnet-4.6 |
(omit) |
| Code review / explain (read-only) | --model sonnet-4.6 |
--mode=ask |
| Architecture / design planning | --model opus-4.6-thinking |
--mode=plan |
| Long background task | --model sonnet-4.6 |
use --cloud instead of -p |
Headless Commands
Read-only first — always start with --mode=ask to review before applying changes:
cd \x3Crepo> && agent -p "\x3Ctask>" --model sonnet-4.6 --mode=ask --output-format text --trust
Apply changes — only after user confirms the plan:
cd \x3Crepo> && agent -p "\x3Ctask>" --model sonnet-4.6 --force --output-format text --trust
Cloud/background — warn user that repo data goes to cursor.com:
cd \x3Crepo> && agent -c "\x3Ctask>" --model sonnet-4.6 --trust
# Monitor at: cursor.com/agents
Git Rule
Cursor sandbox blocks git commit. Always commit manually after Cursor edits:
cd \x3Crepo> && git add -A && git commit -m "\x3Cconventional commit message>" && git push
Show the diff to the user and confirm before committing if the change is large or touches sensitive areas.
Repos & Workdirs
- Always
cdto the correct repo before running - Check for
.cursor/rulesandAGENTS.mdin the repo root — Cursor loads these automatically for project context
Context & Sessions
- Add
@\x3Cfile>in prompt to include specific files in context --continueor--resumeto continue a previous sessionagent lsto list previous sessions
Output Handling
--output-format text→ clean final answer, summarise key changes to the user--output-format json→ structured, use for scripted parsing- Always report back: what changed, what was committed, any issues found
References
- Model list & details:
references/models.md - Slash commands (interactive mode):
references/slash-commands.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cursor-agent-openclaw - 安装完成后,直接呼叫该 Skill 的名称或使用
/cursor-agent-openclaw触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Cursor Agent for OpenClaw 是什么?
Run Cursor Agent CLI for coding tasks — writing, editing, refactoring, reviewing, or planning code — without spending OpenClaw API credits. Use when the user... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 404 次。
如何安装 Cursor Agent for OpenClaw?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cursor-agent-openclaw」即可一键安装,无需额外配置。
Cursor Agent for OpenClaw 是免费的吗?
是的,Cursor Agent for OpenClaw 完全免费(开源免费),可自由下载、安装和使用。
Cursor Agent for OpenClaw 支持哪些平台?
Cursor Agent for OpenClaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cursor Agent for OpenClaw?
由 Luis Albinati(@albinati)开发并维护,当前版本 v1.0.2。