title: Terminal description: Run terminal commands automatically as part of agent operations ‘twitter:title’: Cursor – Terminal ‘twitter:description’: Run terminal commands automatically as part of agent operations ‘og:title’: Cursor – Terminal ‘og:image’: >- https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/og/agent/terminal.png?v=1751378844489 ‘twitter:image’: >- https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/og/agent/terminal.png?v=1751378844489 ‘og:description’: Run terminal commands automatically as part of agent operations

Agent can execute terminal commands as part of its operations.

Command Types

Agent executes terminal commands for installing dependencies, running build processes, executing tests, starting development servers, and running scripts.

Features

Command Execution

Runs terminal commands with real-time output display. Supports multi-step command sequences.

Auto-run Mode

When enabled, commands execute without confirmation. Safety guardrails can be configured to restrict certain operations.

Output Monitoring

Agent monitors terminal output for error detection, process completion, and information extraction.

Configuration

Terminal settings available in Agent modes:
SettingDescription
Enable TerminalAllow Agent to execute terminal commands
Auto-runExecute commands without manual confirmation
Auto-fix ErrorsAutomatically attempt to resolve command failures
Allow listsConfigure which commands are permitted to run automatically
Terminal capabilities can be configured separately for each Agent mode.