Overview
Cursor Agent CLI is Cursor’s AI-powered coding assistant that provides intelligent code assistance, file operations, and browser automation. PraisonAI integrates with Cursor CLI to use it as an external agent.
Installation
Authentication
Login with your Cursor account:
Or set API key:
Basic Usage with PraisonAI
--external-agent cursor invokes Cursor CLI via a manager Agent by default. The manager reasons and calls Cursor as a subagent tool. Use --external-agent-direct for pass-through proxy behavior.
CLI Options Reference
Core Options
Authentication
Output Options
Model Selection
Execution Modes
Workspace
Session Management
Commands
Examples
Basic Query
Non-Interactive Mode
Force Mode
Model Selection
Browser Automation
Session Management
Cloud Mode
Python Integration
Environment Variables
Text Format (Default)
Real-time JSON events for each step:
Shell Integration
Install shell integration for easier access:
After installation, you can use cursor command directly in your terminal.
MCP Server Management