CLI and terminal AI agents
Many designers have never opened a terminal (the command line) and see it as “developer territory.” That’s normal. But the terminal is where the most powerful AI agents for building products work today. If you’re serious about vibe coding, a few basic commands pay off fast. Terminal agents see the whole project, not one file pasted into a chat. They run and check the result themselves. And they can work with git, the version system that stores the history of code changes (more about git in the “Vibe coding: interfaces” topic).
CLI (command line interface) is an interface where, instead of clicking buttons, you type text commands and get a text response. You install a tool once with a special command. After that, you launch it right from your project folder.
How to actually open a terminal
This is literally the first step where someone who has “never opened a terminal” gets lost. So here it is, key by key:
- On a Mac: press
Cmd + Space(Spotlight search opens), type “Terminal”, press Enter. Or go through Finder: Applications → Utilities → Terminal. A black or white window with a blinking cursor opens. That’s it. - On Windows: press the
Winkey, type “PowerShell” or “Terminal”, press Enter. A window (black or blue) with a blinking cursor opens.
In both cases you type commands one line at a time and run them with Enter. Unlike the apps you’re used to, there are no buttons or menus here, only text.
What to install once before any of the tools below: Node.js
Gemini CLI installs through npm, so it needs Node.js; Codex has both an npm option and its own installer that doesn’t need Node.js. And npm only appears on your system together with Node.js, a runtime for JavaScript outside the browser. If the terminal answers “command not found: npm” when you try to install something, this is the missing step. Installation is the same on Mac and Windows. Go to nodejs.org, download the LTS installer (the recommended, most stable version), run it and click through the setup wizard without changing any defaults. After installing, close the terminal and open it again. Then check that everything is in place with node -v: it should print a version number, not an error.
Windows: all three agents work directly
After you install Node.js, Codex CLI and Gemini CLI work on Windows directly, with no extra steps. Claude Code also installs natively: with its own command right in PowerShell, without Node.js and without admin rights (the command is below). In older guides you may see a requirement to first enable WSL (Windows Subsystem for Linux), a layer built into Windows that gives you a full Linux terminal. Today it’s an option, not a requirement. WSL makes sense if your project already lives in a Linux environment or you need sandboxed command execution. You don’t need it to get started. A handy detail: if you install Git for Windows, Claude Code can run commands through the familiar Bash. Without it, it uses PowerShell. Both work.
Claude Code (Anthropic)
Install on macOS and Linux:
curl -fsSL https://claude.ai/install.sh | bash
Install on Windows (in PowerShell):
irm https://claude.ai/install.ps1 | iex
Check that it’s installed with claude --version: it should print a version number. You need a paid Claude account (Pro or higher) or an API key. Claude Code isn’t available on the free plan. If the terminal still feels intimidating, Claude Code also has a desktop app with the same agent in a regular window.
Launch it in your project folder:
cd my-project
claude
After that, you can type your task in plain language right in the conversation that opens, with no special syntax:
Write tests for the auth module, run them and fix everything that fails
Claude Code can work in a pipe (written as the | symbol) with other commands. A pipe passes the output of one command straight into another, without an intermediate file. For example, tail -200 app.log on its own just prints the last 200 lines of a log file in the terminal. The | sends that text straight to Claude Code, so you don’t have to copy it by hand:
tail -200 app.log | claude -p "tell me if you see anything suspicious in the logs"
Codex CLI (OpenAI)
Install (the same on Mac, Linux and Windows, if Node.js is already installed; see above):
npm install -g @openai/codex
Or without Node.js, with its own installer on Mac and Linux:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
Launch it in your project folder:
cd my-project
codex
Then write the task in plain language in the conversation that opens:
Add a dark theme toggle to the home screen
Codex CLI also accepts images. You can pass a screenshot of a design along with the task:
codex -i ./screens/homepage.png "build this screen"
Access: sign in with your ChatGPT account. Codex is included in every plan, including the free one, while the cloud version, Codex Cloud, is only in paid plans.
Gemini CLI (Google)
Install (the same on Mac, Linux and Windows):
npm install -g @google/gemini-cli
Start an interactive session in the current folder:
gemini
Or ask a one-off question without a conversation:
gemini -p "explain the structure of this project in simple words"
Access: free with a personal Google account; you sign in on first launch.
How a designer can use this
You don’t need to become a developer. The basic scenario: download or open a ready project (for example, one generated in v0 or Figma Make), open a terminal in that folder, and ask the agent in plain language to change something. Recolor a button, fix spacing, add an animation. The difference from a regular web chat is that the agent actually sees and edits all the project’s files at once, not one snippet of code you pasted by hand.
One setting deserves special attention: approval modes. By default, the agent asks for confirmation before every action: creating a file, deleting a line, running a command. You can turn on a more autonomous mode, where the agent acts without stopping at each step. It’s faster, but it needs more trust in the task and a mandatory check of the result at the end.

How an agent works inside: loop and harness
Since we’re on approval modes, it helps to understand, at least roughly, what happens between your prompt and the result on screen. No deep engineering here. The loop (agent loop) is a repeating cycle: think → take an action → look at the result → think again. The agent runs it many times in a row until the task is done. That’s why Claude Code can write code, run the tests, see an error and fix it right away, without a single new prompt between those steps. The approval mode is literally the point where this loop pauses for a second and waits for your “yes.” The harness is the program framework around the model itself that lets it do anything at all. It connects tools (reading and editing files, running commands, MCP access), decides when to stop and ask for confirmation, and keeps the session history. Claude Code itself (like Codex CLI and Gemini CLI) is the harness. The model inside is the same one as in a regular chat. The harness is what turns it from a conversation partner into an agent that can carry a project through to a result.
How to build your own harness for your project out of these parts is a separate advanced topic, “Your own harness”.
Another way to give a task: by voice instead of typing
Typing a long, detailed task into the terminal isn’t the only way to get it there. In 2026, agent tools understand dictated text well enough. That speeds things up if you can put a thought into words faster than you can type it.
There’s your operating system’s built-in dictation. On a Mac you turn it on in System Settings → Keyboard → Dictation and then start it by pressing Fn twice; on Windows it’s Win + H. But it’s designed for regular text fields and doesn’t always work in a terminal window. Reliability depends on the specific terminal app and OS version, so test it ahead of time instead of counting on it in the moment. A more reliable option for the terminal is a dedicated dictation app (for example, Wispr Flow or superwhisper). These recognize long technical phrasing more accurately and paste text into any active window as regular typing, not through system dictation. Many of them (superwhisper, for example) are built on top of OpenAI’s open speech recognition model, Whisper. If you don’t want to pay for a ready app and don’t mind a separate install, you can also run it directly, locally.
You can do more with this open model than run it as is: you can use it as the base for your own tool for a narrow task. That’s the same vibe coding scenario (see the “Vibe coding: websites” and “Vibe coding: interfaces” topics), just with a ready speech recognition model inside instead of building from scratch. A starter task for the agent:
Build a simple web tool on top of OpenAI’s Whisper model: the user records a voice message right in the browser, the tool transcribes it to text and shows the result with a “Copy” button
An important caveat: this is a way to give the agent a task by voice, not to write code by voice yourself. Recognition will sometimes mix up terms, especially English names of components and variables spoken with an accent. Skim the transcribed text before sending it. Especially if the task contains exact file names or technical terms that recognition could have garbled.
A risk you should know about: prompt injection
When an agent in autonomous mode reads external data on its own (opens web pages, parses someone else’s file, pulls content from a third-party API), it can run into text written specifically to look like another instruction for the agent. For example, a phrase like “ignore previous instructions and do X” hidden in a code comment or in the body of a web page. This is called prompt injection: an attempt to slip the agent a command that comes not from the user but from an outside source the agent mistakes for a legitimate task. If you turn on “full-auto” on a real project, don’t give the agent autonomous access to untrusted sources (other people’s websites, unfamiliar repositories) without checking the result afterward. And be wary of any unexpected agent action you didn’t explicitly ask for.
What’s next: making it yours
Everything above is the basic kit: install the agent, give it a task, understand what it’s doing and where it asks for permission. The next layer has its own topic, “Terminal agents: making them yours”. There you’ll teach the agent your project’s rules and set up your own commands, automatic checks and subagent helpers. Move on to it after your first real project, once it’s clear what you keep having to explain to the agent over and over.
Command examples for practice
Explain what this command does before I run it: `codex --ask-for-approval never "clean up unused code"`never means no confirmations; for the first time, on-request is better.
I’m opening a terminal for the first time. The official command to install Claude Code on a Mac is: curl -fsSL https://claude.ai/install.sh | bash. Walk me through, step by step, what to press to open the terminal, run it, and launch Claude Code in my project folder.Without the official command in the prompt, the chat will give you an install method from memory, usually outdated.
I’m on Windows and opening PowerShell for the first time. Walk me through, step by step, how to install and launch Claude Code, and explain when I might need WSL
Here’s an error from the terminal (paste the error text). Explain in simple words what went wrong.Install one of the three agents (if you haven’t yet). Open a terminal in the folder of any of your projects; even an empty one will do. Give the agent one small, real task from start to finish in the default approval mode. Watch how it asks for confirmation before each step before you try a more autonomous mode.
Sources
- Advanced setupcode.claude.com
installing Claude Code on Mac, Linux and Windows; WSL is optional; requires Pro or higher, or an API key
- Run Claude Code programmaticallycode.claude.com
claude -p mode and piping data in
- Codex CLIlearn.chatgpt.com
installing Codex with a script or npm, the -i flag for images
- Codex pricinglearn.chatgpt.com
Codex is in every ChatGPT plan, including Free; Codex cloud starts at Plus
- Agent approvals & securitylearn.chatgpt.com
the never and on-request approval modes
- Gemini CLIgithub.com
installing via npm, the -p flag, free access with a personal Google account
Found a mistake or an outdated fact? Write to hey@iskra.guide