# Cursor Cli

> 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.

- **Type:** Skill
- **Install:** `agentstack add skill-hktitan-cursor-sdk-cursor-cli`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [HKTITAN](https://agentstack.voostack.com/s/hktitan)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [HKTITAN](https://github.com/HKTITAN)
- **Source:** https://github.com/HKTITAN/cursor-sdk/tree/main/skills/cursor-cli
- **Website:** https://skills.sh/hktitan/cursor-sdk

## Install

```sh
agentstack add skill-hktitan-cursor-sdk-cursor-cli
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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]] — `agent` REPL
- [[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_KEY` secret
- [[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]]

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [HKTITAN](https://github.com/HKTITAN)
- **Source:** [HKTITAN/cursor-sdk](https://github.com/HKTITAN/cursor-sdk)
- **License:** MIT
- **Homepage:** https://skills.sh/hktitan/cursor-sdk

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-hktitan-cursor-sdk-cursor-cli
- Seller: https://agentstack.voostack.com/s/hktitan
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
