Overview
Cursor CLI is an AI-first code editor built on VS Code, trusted by Fortune 500 companies for its advanced capabilities. It features the proprietary Composer 1 model alongside support for Claude, GPT and Gemini models. The Composer feature enables instant code generations with parallel agent support for complex tasks.Latest Models
Cursor CLI provides access to cutting-edge models:- Composer 1 - Cursor’s proprietary model optimized for code editing
- Claude Opus 4.6 - Anthropic’s most capable model, with a Thinking variant
- Claude Sonnet 4.6 - Anthropic’s high-performance model
- Claude Opus 4.5 - Previous generation Opus
- Claude Sonnet 4.5 - Previous generation Sonnet
- GPT-5.2 Codex High - OpenAI’s coding model at high reasoning effort
- Gemini 3 Pro - Google’s advanced reasoning model
- Auto - Lets Cursor pick the model for each request
Cursor’s Composer feature allows multiple agents to work in parallel, significantly speeding up complex multi-file changes.
Authentication
Cursor CLI requires a Cursor API key:- Cursor API Key
Get your Cursor API key
- Sign up at Cursor
- Subscribe to Cursor Pro or Team plan
- Generate an API key in Cursor settings
- Set the environment variable:
CURSOR_API_KEY=cursor-... - In Blocks Dashboard, go to Dashboard → Agents
- Select Cursor CLI and paste your API key
Using Cursor CLI
Use the/cursor slash command to invoke Cursor CLI:
Cursor CLI must be explicitly invoked with the
/cursor command and cannot be set as your default agent.Best For
- VS Code integration (familiar interface)
- Parallel agent workflows (multiple agents working together)
- Instant code generations with Composer
- Fortune 500-grade reliability
- Complex multi-file refactoring
- Teams already using VS Code
- Access to multiple premium models in one subscription
Cost
Cursor CLI uses your Cursor subscription:- Cursor Pro: $20/month (includes API access)
- Cursor Team: Custom pricing for organizations
- Check Cursor Pricing for details
- All models included in subscription (no per-token billing)
- Monitor usage in Cursor dashboard
Unlike pay-as-you-go API services, Cursor uses a subscription model with unlimited usage, making costs predictable.
Next Steps
Claude Code
Learn about Claude Code
OpenCode Agent
Explore OpenCode’s multi-provider support

