C

Command-line Assistants

Cursor CLI

Cursor's agent in the terminal. The same Agent, Plan, and Ask modes as the editor, a print mode for scripts and CI, Cloud Agent handoff, and your project's rules and MCP servers picked up automatically.


Highlights

  • Same agent, same rules

    Reads .cursor/rules and mcp.json from the project, so the terminal agent follows the setup you already have in the editor.

  • Hand off to a Cloud Agent

    Prefix a message with & to push the conversation to a Cloud Agent that keeps working after you close the terminal.

  • Built for automation

    agent -p runs a task non-interactively with text, JSON, or streaming output, and --force applies changes without prompts in CI.

  • Worktrees and sandbox

    --worktree runs the agent in a fresh Git worktree; /sandbox controls command execution and network access.

Platforms

macOS Linux Windows

Install with curl https://cursor.com/install -fsS | bash (macOS, Linux, WSL) or irm 'https://cursor.com/install?win32=true' | iex on Windows, then run agent. Set CURSOR_API_KEY for headless use.

Pricing

Freemium
Hobby $0
Pro $20/month
Pro+ $60/month
Ultra $200/month
Uses the usage included in your Cursor plan, the same pool as the editor. Teams can authenticate CI with a service account key.