All apps/Cursor CLI

Cursor CLI

cursor

The AI code editor, and the agent it ships for the command line.

Runs as cursor-agent|macOS, Linux, Windows|cursor.com

Command form

ai-draft · 2 tasks · 8 fields

Start the Cursor agent with an optional prompt, in interactive or print (non-interactive) mode. Subcommands, MCP, worktree and auth flags are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui cursor
Run Cursor agentExample values, fixed in this page — nothing here reaches a terminal
Basic
Prompt*
string
Mode
Ask (read-only Q&A)enum
TasksEach one presets the form for one job
Ask a question (read-only)
promptmode
Non-interactive run
promptprintoutput_formatmodel
ParametersOnly these flags are editable in the form
Prompt
string · positional 0
Print mode (non-interactive)
Prints the response and exits; the agent has access to all tools including write and shell.
boolean
--print-p
Output format
Only works with print mode.
enum
--output-formattextjsonstream-json
Mode
enum
--modeplanask
Model
string
--modelgpt-5sonnet-4-thinking
Continue previous session
boolean
--continue
Workspace
path
--workspace
Force allow commands
Allows commands unless explicitly denied.
boolean
--force-f
SourcesEvery flag above is checked against these
help
Usage: agent [options] [command] [prompt...] prompt Initial prompt for the agent -p, --print Print responses to console (for scripts or non-interactive use). Has access to all tools, including write and shell. (default: false) --output-format <format> Output format (only works with --print): text | json | stre…
helpcursor-agent --help 2026-10-27

cursor.com

Before it fills your prompt, Otty checks the installed cursor-agent against its version. A form that does not match your version is not offered.