cursor-cli
Skill2 starsChanged 7 months agoMITView on GitHub
The `agent` CLI — install, interactive modes (Agent / Plan / Ask), headless `-p` mode for CI, GitHub Actions integration, and how it relates to the TypeScript SDK. Use when scripting Cursor in shell pipelines or workflows instead of (or alongside) the SDK.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Adonis0123/hermes-kittheir own version, first seen Sep 23, 2026
- SnowyLake/SnowySkillstheir own version, first seen Sep 17, 2026
- Ottili-ONE/skillstheir own version, first seen Jun 16, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- SnowyLake/SnowySkills★ 4same name
- Adonis0123/hermes-kit★ 1same name
- Ottili-ONE/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cursor-cloudSkill
- cursor-errorsSkill
- cursor-hooksSkill
- cursor-mcpSkill
- cursor-modelsSkill
- cursor-rulesSkill
- cursor-runsSkill
- cursor-sdkSkill
- cursor-skills-systemSkill
- cursor-subagentsSkill
The file
Files
cursor-cli
The CLI ships the same agent runtime as the SDK and the editor — pick it when shell-script ergonomics beat a TypeScript program. The SDK is the right choice when you need streaming events, durable cloud reattachment, or programmatic subagents; the CLI is the right choice for one-off prompts and CI gates.
When to use
- One-off prompts in a terminal
- CI / GitHub Actions jobs that operate on a repo
- Headless scripted runs with structured output
- Quick local experiments before promoting to SDK code
Install & auth
- [[references/install]] — curl / PowerShell installers,
$HOME/.cursor/bin - [[references/auth]] —
CURSOR_API_KEY, login flow
Interactive
- [[references/interactive]] —
agentREPL - [[references/modes]] — Agent / Plan / Ask,
--mode, Shift+Tab - [[references/sessions]] —
agent resume,agent --continue - [[references/cloud-handoff]] —
&-prefix for background
Headless
- [[references/headless]] —
-p / --print,--force / --yolo - [[references/output-formats]] —
text/json/stream-json,--stream-partial-output - [[references/exit-codes]] —
$?in shell scripts
CI / automation
- [[references/github-actions]] — workflow snippet,
CURSOR_API_KEYsecret - [[references/permissions]] — restricting agent autonomy in CI
Compared to the SDK
- [[references/cli-vs-sdk]] — when to pick which
Cross-links
- SDK entry point → [[../cursor-sdk/SKILL]]
- Models flag → [[../cursor-models/SKILL]]
- Rules / skills the CLI loads → [[../cursor-rules/SKILL]] · [[../cursor-skills-system/SKILL]]
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

