🌏 中文版
Cursor was originally known for its built-in IDE Agent. In late 2025, it officially brought the same Agent capabilities to the terminal. The core philosophy of Cursor CLI is: anything you can do in the IDE, you can do in the terminal. Whether it’s interactive development, CI/CD automation, or handing off tasks to the cloud to run on their own, Cursor CLI has a solution for each.
This article breaks down Cursor CLI’s features, three operating modes, Cloud Handoff, CI/CD integration, and pricing plans.
Product Positioning
Cursor CLI brings the IDE Agent to the terminal, offering two execution modes:
- Interactive TUI — Launches a full text-based interface in the terminal. You interact with the Agent like you would in the IDE — reviewing changes and confirming step by step. Ideal for daily development.
- Non-interactive Print Mode — No UI; outputs results directly to stdout. Designed for scripts and CI/CD pipelines, activated with the
--printflag.
Supports Windows, macOS, and Linux. The goal is clear: free the Agent from the IDE. SSH sessions, remote servers, Docker containers, CI runners — anywhere there’s a terminal, it can run.
Core Features
File and Shell Access
Cursor CLI can read and write files, search the entire codebase, and execute shell commands. All operations with side effects (file writes, command execution) require user confirmation by default, unless you explicitly authorize automatic execution.
Rules and MCP Support
The CLI reads rule files from the .cursor/rules directory and also supports AGENTS.md and CLAUDE.md in the repo root. This means the coding standards and agent behavior preferences you’ve configured in the IDE also take effect in the CLI.
MCP (Model Context Protocol) server integration is fully supported, allowing the agent to call external tools and data sources.
Multi-Model Selection
Cursor isn’t locked to a single model provider. Subscription plans include access to multiple frontier models from Anthropic, OpenAI, Google Gemini, and Cursor’s own models. In Auto mode, the system selects the model automatically, but you can also specify manually.
Multi-Agent Parallel Execution
You can launch different agents simultaneously in multiple terminal windows, or run multiple tasks in parallel via Cloud Agent on the remote end. This is particularly useful when large projects need to handle multiple subtasks concurrently.
Three Modes
Cursor CLI offers three operating modes corresponding to different use cases:
| Mode | Activation | Description | IDE Equivalent |
|---|---|---|---|
| Plan Mode | /plan or --mode=plan | Plan before acting. The agent proposes a plan, asks clarifying questions, and only starts implementation after confirmation | IDE Plan mode |
| Ask Mode | /ask or --mode=ask | Read-only mode. Explores the codebase and answers questions but makes no modifications | IDE Ask mode |
| Agent Mode | Default mode | Full agentic capabilities: edit files, execute commands, search code, make autonomous decisions | IDE Agent mode |
Plan Mode is particularly suited for large refactors or when the direction is uncertain. The agent first analyzes existing code and proposes a concrete modification plan — it won’t touch any files until you confirm.
Ask Mode is like a consultant who knows your codebase well. It reads relevant files to answer questions but never writes anything. Ideal for code review, understanding unfamiliar modules, or doing research before making changes.
Agent Mode is the default and the most fully-featured mode. It autonomously decides which files to read, what commands to run, and how to modify code.
Cloud Handoff
This is one of Cursor CLI’s most distinctive features. By prefixing a command with & during a conversation, you can push the current conversation context to a Cloud Agent:
& finish the remaining migration and tests for me
The Cloud Agent takes over the local conversation context and continues execution in the cloud. You can:
- Close the terminal and go do something else
- Track progress on the cursor.com/agents web interface
- Check results on your phone
This design bridges the CLI ↔ Cloud boundary. In the middle of local development and need to leave? Hand off the task to the cloud and it keeps running. Pick up where you left off from any device when you return.
CI/CD Integration
Cursor CLI natively supports GitHub Actions integration. A typical setup flow:
- Install Cursor CLI in the CI environment
- Set the
CURSOR_API_KEYenvironment variable - Call the agent in a workflow step
Three output formats are supported:
| Format | Parameter | Description | Use Case |
|---|---|---|---|
| json | --format=json | Single JSON object containing the final result | Programmatic parsing |
| stream-json | --format=stream-json | NDJSON streaming events | Real-time monitoring |
| text | --format=text | Human-readable plain text | Log viewing |
You can choose to let the agent run fully autonomously or restrict it to specific operations (e.g., read-only). For critical production environment operations, using restricted mode is recommended.
Pricing Plans
| Plan | Monthly Fee | Main Quota | Notes |
|---|---|---|---|
| Hobby | Free | 2,000 completions + 50 slow premium requests | Getting started |
| Pro | $20/mo | Unlimited Auto mode + $20 credit pool | Best for individual developers |
| Pro+ | $60/mo | Unlimited Auto mode + $60 credit pool | Medium to heavy users |
| Ultra | $200/mo | 20x usage multiplier (~$4,000 equivalent capacity) | Heavy users |
| Teams | $40/user/mo | Team management + shared quota | Team plan |
| Enterprise | Contact sales | Custom | Large enterprises |
Credit Billing Logic
Cursor uses a credit pool mechanism. In Auto mode, the system selects models automatically without deducting extra credits (unlimited for Pro and above). Credits are only deducted from the credit pool when you manually specify a premium model:
- $20 credit pool provides approximately ~225 Sonnet requests, or ~550 Gemini requests
- Different models consume different credit amounts
- When credits run out, speed is throttled but you won’t be disconnected
January 2026 Update
Cursor CLI received a wave of important updates in early 2026:
- Plan Mode — New planning mode: design the approach before implementation
- Ask Mode — New read-only exploration mode
- Cloud Handoff — Push local conversations to Cloud Agent for continuation
- Enhanced MCP Integration — Support for auto callback,
/mcp listinteractive menu - Diff Highlighting — Word-level precision change highlighting for easier review
Background Agents
Beyond Cloud Handoff, Cursor also offers Background Agents — fully autonomous agents that execute entirely in the cloud:
- Automatically clone your repo to a cloud environment
- Complete tasks independently and submit a Pull Request
- Run up to 8 parallel agents simultaneously
- Billed separately, requires MAX mode (20% surcharge)
Background Agents are ideal for tasks you don’t need to monitor in real time but want completed automatically, such as batch refactoring, automated bug fixes, or large-scale code migrations.
Market Position
As of February 2026, Cursor’s numbers are quite impressive:
- $2B ARR (Annual Recurring Revenue)
- 2 million total users
- 1 million paid users
- 1 million DAU (Daily Active Users)
- Half of Fortune 500 companies adopted
These numbers make Cursor one of the fastest-growing products in the AI coding tool market. Extending from IDE to CLI to Cloud Agent, Cursor is building a complete AI developer platform.
Use Cases
Cursor CLI is particularly well-suited for the following groups:
- Developers already using Cursor IDE — The CLI extends your familiar Agent experience to the terminal, with shared rules and settings
- Teams needing unified IDE + CLI experience — Same tools, same rules, seamless switching between IDE and terminal
- CI/CD automation needs — Native GitHub Actions support, multiple output formats, ready to integrate into existing pipelines
- Long-running task scenarios — Cloud Handoff means you don’t have to keep watching the terminal; tasks can continue in the background or cloud
If you’re a pure terminal user who doesn’t use an IDE, Claude Code or Gemini CLI might better fit your workflow. But if your work spans both IDE and terminal, Cursor CLI offers the most complete cross-scenario integration available today.
Series Articles
This article is part of the Agent CLI series. For cross-tool comparisons of multi-model routing and subscription plans, see:
→ Agent CLI Subscription Plans and Multi-Model Routing Strategies
References
Loading...