Warp documentation
  • Getting Started
    • Quickstart Guide
    • What is Warp?
    • Supported shells
    • Migrate to Warp
    • Keyboard Shortcuts
    • Changelog
  • Agents
    • Warp AI
      • Agent Mode
  • Active AI
  • Generate
  • Voice
  • Terminal
    • Appearance
      • Themes
      • Custom Themes
      • Prompt
      • Input Position
      • Text, Fonts, & Cursor
      • Size, Opacity, & Blurring
      • Pane Dimming & Focus
      • Blocks Behavior
      • Tabs Behavior
      • App Icons
    • Blocks
      • Block Basics
      • Block Actions
      • Block Sharing
      • Block Find
      • Block Filtering
      • Background Blocks
      • Sticky Command Header
    • Modern Text Editing
      • Alias Expansion
      • Command Inspector
      • Syntax & Error Highlighting
      • Vim Keybindings
    • Command Entry
      • Command Corrections
      • Command Search
      • Command History
      • Synchronized Inputs
      • YAML Workflows
    • Command Completions
      • Completions
      • Autosuggestions
    • Command Palette
    • Session Management
      • Launch Configurations
      • Session Navigation
      • Session Restoration
    • Window Management
      • Global Hotkey
      • Tabs
      • Split Panes
    • Warpify
      • Subshells
      • SSH
    • More Features
      • Accessibility
      • Files, Links, & Scripts
      • Markdown Viewer
      • Working Directory
      • Smart-Select
      • Full-screen Apps
      • Notifications & Audible Bell
      • Settings Sync (Beta)
      • Quit Warning
      • URI Scheme
      • Linux
    • Comparisons
      • Performance
      • Terminal features
  • Integrations
  • Knowledge & Collaboration
    • Warp Drive
      • Notebooks
      • Workflows
      • Prompts
      • Environment Variables
      • Warp Drive on the Web
    • Model Context Protocol
    • Rules
    • Teams
    • Session Sharing
  • Privacy
    • Privacy
    • Secret Redaction
    • Network Log
  • Community
    • Refer a Friend & Earn Rewards
    • Warp Preview & Alpha Program
  • Support & Billing
    • Sending Feedback & Logs
    • Plans & Pricing
    • Updating Warp
    • Using Warp Offline
    • Logging out & Uninstalling
    • Known Issues
    • Troubleshooting Login Issues
    • Open Source Licenses
Powered by GitBook
On this page
  • What is Generate?
  • Ways to Generate with AI
  • Generate commands as terminal input
  • Generate text and contextual suggestions in interactive CLIs
  • AI Privacy

Was this helpful?

Generate

Use natural language to look up commands or input, accessible either directly from the command line input or inside any interactive command or program.

PreviousActive AINextVoice

Last updated 27 days ago

Was this helpful?

What is Generate?

Generate helps turn natural language queries into precise commands as terminal input or contextual suggestions inside interactive commands and programs, whether you're using psql, gdb, git, mysql, or any other CLI tool.

Generate is backed by Large Language Models from API providers like OpenAI and Anthropic, and are completely opt-in.

Currently, you need to be online to use this feature. If this feature doesn't work, your ISP or firewall may be blocking the calls to app.warp.dev

Ways to Generate with AI

Generate commands as terminal input

Type # on the command line input to generate command suggestions.

  1. Press CTRL-` or type # into the text input editor to search using natural language.

  2. Type in the input box what you'd like to do. For example, "replace a string in a file."

  3. Results are generated in real-time, and you can keep the current prompt or modify the prompt to generate new commands.

  4. When you've found the command you want to execute, it can be run or saved as a Workflow onto Warp Drive to easily recall it in the future.

Generate text and contextual suggestions in interactive CLIs

In interactive CLI applications, you can generate input using natural language.

  1. Inside a long-running, interactive command, press CMD-I when you see the hint text appear.

  2. Type what you would like to generate in the input box. For example, "show me all tables in my Postgres database" or in Vim, "generate a recursive Fibonacci function and save it to the file."

  3. To refine or follow up on your query, press CMD-Y. You can then either edit your last message by pressing UP ↑ or add a follow-up by typing in new text.

  4. When you've found the text you want to add or execute, press Enter or click the Accept button.

  1. Inside a long-running, interactive command, press CTRL-SHIFT-I when you see the hint text appear.

  2. Type what you would like to generate in the input box. For example, "show me all tables in my Postgres database" or in Vim, "generate a recursive Fibonacci function and save it to the file."

  3. To refine or follow up on your query, press CTRL-SHIFT-Y. You can then either edit your last message by pressing UP ↑ or add a follow-up by typing in new text.

  4. When you've found the text you want to add or execute, press Enter or click the Accept button.

  1. Inside a long-running, interactive command, press CTRL-SHIFT-I when you see the hint text appear.

  2. Type what you would like to generate in the input box. For example, "show me all tables in my Postgres database" or in Vim, "generate a recursive Fibonacci function and save it to the file."

  3. To refine or follow up on your query, press CTRL-SHIFT-Y. You can then either edit your last message by pressing UP ↑ or add a follow-up by typing in new text.

  4. When you've found the text you want to add or execute, press Enter or click the Accept button.

A couple of other examples of interactive CLIs where you can invoke Generate:

  • Database REPL (e.g. psql, mysql, sqlite): Generate SQL queries such as "create a table to store user data" or "show me all the rows in orders for the last month"

  • Text editors (e.g. vim, nano): Quickly generate text such as a markdown header, a code block comment, or a boilerplate CSS class.

  • Python REPL (e.g. ipython, python): Quickly generate Python snippets such as "create a simple plot of x" or "write a unit test for this function"

  • Debugger tools (e.g. gdb, lldb): Get commands for setting breakpoints or inspecting memory

  • Version control (e.g. git rebase -i): Speed up complex git commands by describing your goal such as "interactively rebase master onto feature-branch"

  • Cloud provider shells (e.g. gcloud, aws cli): faster setup or resource management such as "create a new Kubernetes cluster" or "provision a new RDS instance"

Supported interactive CLI models

The following LLMs are currently supported in Warp:

  • OpenAI:

    • GPT-4o

    • GPT 4.1

    • o3-mini

    • o3

    • o4-mini

  • Claude:

    • 3.7 Sonnet

    • 3.5 Sonnet

    • 3.5 Haiku

  • Google:

    • Gemini 2.0 Flash

    • Gemini 2.5 Pro

    • R1

    • V3

AI Privacy

Results are generated in real time using the .

Results are generated in real time using the

Results are generated in real time using the

If you experience any issues with Generate, please visit known issues for .

DeepSeek (hosted by in the US):

See our for more information on how we handle data with Generate.

Fireworks AI
Privacy Page
LLM of your choice
LLM of your choice
LLM of your choice
troubleshooting steps
Generating commands as terminal input demo
Typing '#' on the command line opens the suggestions interface
Generate a SQL query
Generate Vim input