CLI AI

CLI overview

Updated: 2026-04-08

Describe a shell task in plain language; the tool proposes a command, explains it, and runs it in your terminal after you confirm.

One-off request

Pass the task as arguments (quotes keep multi-word prompts together):

clai "list listening ports"

You can use cliai the same way.

Interactive mode

Run clai or cliai with no arguments and type the task when prompted.

File context

Prefix a path with @ to attach file contents as context, for example:

clai @./README.md summarize this file

Review before run

In the interactive flow you can:

  • Enter — run the suggested command in your current shell when it matches what you want
  • r — refine the wording
  • Esc or q — cancel; your session and working directory stay yours

Interface language

Messages follow your environment locale. You can force a language with CLIAI_LANG (for example en or ru).

Command details: see Command reference.