Skip to content

Agent CLI

Warp Agent CLI quickstart

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Install the Warp Agent CLI, log in, and run your first agent conversation in your own terminal in a few minutes.

This guide takes you from installing the Warp Agent CLI to your first agent conversation in about five minutes.

  • A Warp account - The login step opens your browser, where you can sign in or create an account. The CLI uses the same account as the Warp app, but doesn’t require the app to be installed.
  • A supported platform - macOS, Linux, or Windows. See supported platforms.

Install the CLI with the command for your operating system.

Terminal window
curl -fsSL https://app.warp.dev/download/agent-cli | bash

After installing, verify that the warp command is available:

Terminal window
warp --version

The command prints the installed version. From here on, the CLI updates automatically. See automatic updates.

Log in once so the CLI can access your Warp account, models, and saved context. Start the CLI:

Terminal window
warp

The CLI shows a verification link and a device code, and opens the link in your browser. Approve the login there and the CLI unlocks automatically, so you don’t need to restart it. If the browser doesn’t open, visit the link shown in the CLI and enter the code.

When login completes, the CLI shows its start screen with the version, a short “What’s new” list, and the rules, skills, and MCP servers it discovered for your current directory.

Type a prompt in plain language, such as What does this project do?, and press Enter.

If the agent wants to run a command or edit a file, it shows a permission request. Choose an option to approve or reject the action.

Learn more about the transcript, diffs, and approvals in Agent conversations and Permissions and profiles.

You can run shell commands directly without leaving the CLI.

Type ! at the start of an empty input to switch to shell mode. The footer shows Shell mode. Type a command, such as git status, and press Enter. To go back to prompting the agent, press Backspace on the empty input.

To run recognized shell commands without the ! prefix, run /natural-language-detection to turn on natural language detection. The CLI then classifies input as you type: recognized commands switch to shell mode, while natural-language prompts stay in agent mode. The prompt marker and statusline show the active mode before you press Enter.

See Input and shell commands for long-running commands, interactive programs, and full-screen apps.

Press Ctrl+C twice in a row to exit, or run /exit. A single Ctrl+C press stops the agent’s current response, or clears the input when nothing is running.

On exit, the CLI prints a resume command for the conversation:

Terminal window
warp --resume CONVERSATION_TOKEN

Run the printed command later to pick up where you left off.

To browse and reopen past conversations from inside the CLI, see Agent conversations.