AI CLI Command Cheatsheet
41 cheatsheets covering open-interpreter, interpreter, ai, agent, coding-agent and more
AI is moving out of the browser and into the terminal: coding agents, chat CLIs and local inference servers can all be driven from a shell now. This is the largest category on the site — 41 sheets and 1,100+ commands — and it splits three ways. Coding agents (Claude Code, Codex CLI, Gemini CLI, Aider, Cursor CLI, OpenCode, Cline) read and write files in a real repo, run commands and refactor. Local inference and serving (Ollama, llama.cpp, LocalAI, LM Studio, vLLM, SGLang) run models on your own machine and expose an OpenAI-compatible endpoint. Chat and automation (Warp, Goose, Plandex, gptme) fit AI into scripts and pipelines. When to use: for headless CI, pick a tool with a non-interactive print mode; to deploy locally, start with something as simple as Ollama before moving to a serving stack like vLLM. Choose by constraint — repo read/write, local execution, or scriptability — because no single tool does all three well.
AI Coding CLI Comparison
Compare 30+ terminal AI coding agents side by side: context window, permission model, pricing, offline support.
Open Interpreter CLI Cheatsheet - Terminal AI Coding Agent Full Reference
Full command reference for Open Interpreter, a terminal AI coding agent: install and launch, --local local models, -y auto-accept, --os OS control, --api_base custom endpoint, resume --last session restore and /model interactive commands, all matched to official docs.
llama.cpp Cheatsheet - llama-cli Flags & GGUF
llamacpp how-to: llama-cli flags -m, -i, -ngl, -c, GGUF quantization picks and fixes for load and VRAM errors.
MLC-LLM CLI Cheatsheet - mlc_llm Compile and Serve Full Reference
Full command reference for MLC-LLM mlc_llm CLI: chat interactive, serve local server, convert model, plus --device, --quantization, --model-lib flags, all matched to official docs.
LocalAI CLI Cheatsheet - local-ai Self-hosted Inference Server Full Reference
Full command reference for LocalAI local-ai CLI: run and serve to start, models list/install/pull for management, api and finetune commands, all matched to official docs.
LM Studio CLI Cheatsheet - lms Model Management Full Reference
Full command reference for LM Studio lms CLI: status, ls and ps to list models, get to download, load and unload, server start, and terminal chat, all matched to official docs.
GPT Engineer CLI Cheatsheet - gpte Code Generation Full Reference
Full command reference for GPT Engineer gpte and gpt-engineer CLI: create projects, improve code with -i, --model selection, --steps workflows, and --temperature, all matched to official docs.
Mentat CLI Cheatsheet - Terminal Multi-file AI Coding Agent Full Reference
Full command reference for Mentat CLI: pass files or dirs as context, --exclude to drop paths, --auto-context retrieval, --model switch, --mcp-server for tools, and /include interactive commands, all matched to official docs.
CrewAI CLI Cheatsheet - crewai Multi-agent Framework Full Reference
Full command reference for CrewAI crewai CLI: create crew, run, train, flow workflows, tool management, and install, all matched to official docs.
Phidata CLI Cheatsheet - phi Multi-agent Workspace Full Reference
Full command reference for Phidata phi CLI: init, auth, config, ws create/up/down workspace management, start/stop resource deploy, all matched to official docs.
Tabby CLI Cheatsheet - Self-hosted AI Coding Assistant Full Reference
Full command reference for Tabby tabby CLI: serve to start, --model/--device/--port flags, download models, scheduler to trigger indexing, and OpenAI-compatible API calls, all matched to official docs.
Open WebUI CLI Cheatsheet - open-webui Self-hosted AI Platform Full Reference
Full command reference for Open WebUI open-webui CLI: serve to start, --port and --host flags, DATA_DIR, pip install and update, Docker and K8s deploy, all matched to official docs.
gptme CLI Cheatsheet - Terminal AI Agent Full Reference
Full command reference for gptme CLI: start a chat, -m model, -t tools, -y auto-confirm, -n non-interactive, --output-format json, resume, and tools/chats/models subcommands, all matched to official docs.
SGLang CLI Cheatsheet - sglang.launch_server Inference Full Reference
Full flag reference for SGLang launch_server: --model-path, --host and --port, --tp and --dp parallelism, --mem-fraction-static VRAM, --quantization, and --trust-remote-code, all matched to official docs.
Tabnine CLI Cheatsheet - Terminal AI Coding Assistant Full Reference
Full command reference for Tabnine CLI: tabnine to start, /help /model /clear /settings slash commands, -p non-interactive mode, TABNINE_TOKEN auth, and tabnine-opencode integration, all matched to official docs.
Hermes Agent CLI Cheatsheet - Nous Terminal Multi-Backend AI Agent
Command reference for Hermes Agent, Nous Research open-source, model-agnostic terminal AI agent: install, model & tool configuration, message gateway, and setup wizard, covering hermes model, hermes tools, hermes config set, and hermes gateway.
Kilo Code CLI Cheatsheet - Terminal Open-source Coding Agent
Command reference for Kilo Code CLI, the terminal AI coding agent sharing an engine with the IDE extensions: install, interactive & one-off tasks, and model integrations, covering kilo run, kilo --mode, kilo --auto, kilo auth, and kilo mcp.
Pi CLI Cheatsheet - earendil Terminal Multi-Model Coding Agent
Command reference for Pi, the earendil-works multi-model terminal coding agent: install, interactive sessions, headless mode & scripting, and session/model management, covering pi -c, pi -p, pi @file, /login, and /model.
Kimi Code CLI Cheatsheet - Moonshot Terminal AI Coding Agent
Command reference for Kimi Code CLI, Moonshot AI terminal AI coding agent wired to Kimi models: install, interactive & single instructions, and sessions & models, covering kimi -p, kimi -C, /login, /init, and /model.
Grok CLI Cheatsheet - xAI Grok Build Terminal Coding Agent
Command reference for Grok CLI, the xAI Grok Build terminal AI coding agent: install, interactive sessions, session management, headless mode, and scripting, covering grok -p, grok inspect, XAI_API_KEY, and /model.
Warp Agent CLI Cheatsheet - In-Terminal AI Coding Agent
Command reference for Warp Agent CLI, the AI coding agent built into the Warp terminal: install, core agent commands, MCP integration, and cloud agents, covering /agent, /model, /plan, /orchestrate, /mcp, and oz agent run.
Crush CLI Cheatsheet - Charmbracelet Terminal Multi-Model Coding Agent
Command reference for Crush, the Charmbracelet Rust single-binary terminal AI coding agent: install, sessions & modes, and configuration, covering crush --yolo, /model, and crush logs.
Antigravity CLI Cheatsheet - Google Terminal AI Coding Agent (agy)
Command reference for Antigravity CLI (Google terminal AI coding agent, command agy): install, sessions & planning, and tools & integrations, covering agy, /model, /planning, /mcp, and /permissions.
Plandex CLI Cheatsheet - Terminal Planning AI Coding Agent (pdx)
Command reference for Plandex, the terminal planning open-source AI coding agent (alias pdx): install, plan & load, and execute & iterate, covering plandex new, plandex load, plandex tell, and OPENROUTER_API_KEY.
Amazon Q Developer CLI Cheatsheet - AWS Official AI Coding Agent Full Reference
Command reference for Amazon Q Developer CLI, AWS official terminal AI coding agent: install, login, chat, one-line queries, and Agent mode, covering brew install amazon-q, q chat, q one-line queries, and /q slash commands.
Sourcegraph Amp CLI Cheatsheet - Terminal AI Coding Agent Full Reference
Command reference for Sourcegraph Amp, the terminal AI coding agent: install, login, one-shot prompts, background execution, and thread management, covering @sourcegraph/amp, amp prompts, amp -x background tasks, and amp threads.
LiteLLM CLI Cheatsheet - Unified LLM Gateway & Proxy Server
Command reference for LiteLLM, unified OpenAI-compatible gateway for 100+ LLMs: proxy launch, provider-prefix routing, config-file mode, and self-test, covering litellm --model, litellm --config, and litellm --test.
vLLM Cheatsheet - High-Performance LLM Inference & Serving
Command reference for vLLM, the high-performance LLM inference & serving engine: install, OpenAI-compatible server launch, host/port/API-key configuration, and quantization, covering pip install vllm, vllm serve, and --host/--port/--api-key.
llamafile Cheatsheet - Single-file Local LLM Run & Inference
Command reference for llamafile, Mozilla single-file local LLM runner: download & run, OpenAI-compatible server, GGUF loading, GPU layers, and temperature, covering ./xxx.llamafile --server, --nobrowser, -m, --ngl, --temp.
Continue CLI (cn) Cheatsheet - Terminal Open-source Coding Agent
Command reference for Continue CLI (cn, open-source terminal coding agent sharing the engine with the VS Code/JetBrains extensions): install, interactive session, headless mode, login, and thread resume, covering cn, cn -p, cn login, and cn --resume.
OpenCode CLI Cheatsheet - Flags, Agents & Serve
OpenCode TUI agent reference: launch and resume, CLI flags, agent/auth/github/mcp subcommands, serve mode, and interactive slash commands.
Goose Agent Cheatsheet - Providers & Extensions
Goose terminal agent reference: install and auth, setup across 15+ LLM providers, MCP extensions, sessions and diagnostics via goose run/configure/doctor.
OpenHands CLI Cheatsheet - Autonomous Coding Agent
A cheat sheet for the OpenHands autonomous coding agent: launch tasks with -t, auto-approve with --yolo, resume with --resume, and manage MCP servers.
Cline Cheatsheet - VS Code AI Coding Extension
VS Code AI coding with Cline: run Cline: Ask or Cline: Refactor from the palette, reference context with @file and @folder, and switch Plan and Act modes.
Ollama Cheatsheet - run, pull, Modelfile & API
Ollama command reference: run and chat, pull/push, model management, Modelfile customization, serve on port 11434 and OpenAI-compatible API endpoints.
Qwen Code CLI - Install, Slash Commands & MCP
Qwen Code CLI reference: install, auth, launch, print mode, every slash command and MCP setup for Alibaba's open-source Qwen3-Max coding agent.
GitHub Copilot CLI Cheatsheet - gh copilot Full Reference
Command reference for GitHub Copilot CLI (gh CLI extension): explain commands, generate shell suggestions, aliases, and config, covering gh copilot explain/suggest/alias/config and @copilot.
Claude Code CLI Cheatsheet - Anthropic AI Coding Agent Full Reference
Full command reference for Claude Code, Anthropic terminal AI coding agent: install & auth, -p print mode and session resume, --permission-mode/--worktree, dev slash commands, MCP server management, and @ file references, all flags matching official docs.
Codex CLI Cheatsheet - Install, exec & Approvals
OpenAI Codex CLI reference: install and auth, interactive mode, codex exec, sessions, sandbox and approval modes, MCP setup and Codex Cloud.
Gemini CLI Cheatsheet - Google Terminal AI Agent Full Reference
Command reference for Gemini CLI, Google open-source (Apache 2.0) terminal AI agent: install & auth, run modes and global flags, session slash commands, MCP/extension management, and GEMINI.md project memory, with a 2M context.
Cursor IDE CLI - New Window (-n) & Agent Flags
Cursor IDE CLI: new window (cursor -n), reuse windows (-r), diff, extensions, remote dev and cursor-agent flags.
Aider Cheatsheet - Terminal AI Pair Programming
Terminal AI pair programming with Aider: add files with /add, switch to /architect, auto git-commit every edit, and lint changes via --lint-cmd.