Contenox

Terminal coding agents: what they are and which one to use

Updated

Terminal coding agents

A terminal coding agent works in your project folder. Start a command such as claude, codex or opencode, describe the task and review the agent’s file edits and shell commands. The same tools can have several interfaces. OpenCode also has desktop and web apps, and Claude Code runs on desktop, on the web and inside supported editors. OpenCode product · Claude Code overview

What it looks like#

~/shop $ claude
> The checkout test fails since yesterday. Find out why and fix it.

  Read   src/checkout/total.ts
  Bash   npm test -- checkout          1 failing
  Edit   src/checkout/total.ts         +2 -1
  Bash   npm test -- checkout          all passing

  Discounts were applied after tax instead of before. Fixed in total.ts.

Every step scrolls past in the same terminal. When the agent wants to do something your settings say needs approval, it stops and asks, and you answer with a key.

Why do developers use a terminal agent instead of an IDE agent?#

The reasons people give, in their own words, come down to four:

  • It doesn’t care about your editor. Keep VS Code, Neovim, JetBrains or Notepad. The agent works on the files; you look at them however you like.
  • You can run two at once. Opening two IDEs on one project is awkward. Two terminals are not. Give each agent its own git worktree and let them work in parallel.
  • It runs wherever a shell runs: over SSH on a server, inside a container, in WSL.
  • It is a process, so you can script it. Claude Code’s claude -p "..." and Codex’s codex exec "..." run one task without the interactive screen, which is how agents end up in CI jobs and shell scripts.

What’s the catch?#

  • Reviewing diffs is harder. A terminal shows changes as text. Most people keep an editor or git diff open next to it, so you end up with two windows anyway.
  • The operating system matters. OpenCode ships native Windows CLI and desktop builds. Claude Code runs in PowerShell, while its sandbox needs WSL 2. AI coding agents on Windows
  • The terminal itself is a barrier if it isn’t already where you work. Then a desktop app or an agent inside your editor is the shorter path.

Which terminal coding agent should I use?#

Agent Models License Pick it if
Claude Code Claude models, with a Claude plan or API key Proprietary For Claude users who want the agent built by the company that trains the model; the same agent also runs as a desktop app, on the web and in IDEs
Codex CLI ChatGPT sign-in or Platform key for OpenAI models. Local Ollama and supported Bedrock models have their own setup. Apache-2.0 You want to use Codex from a shell or run a script with codex exec. The ChatGPT desktop app and IDE extension also support local work.
OpenCode Provider keys, ChatGPT Plus/Pro, GitHub Copilot, OpenCode Go or local models MIT You want to move between providers or interfaces in one project
Antigravity CLI Gemini, plus a fixed list that includes Claude models Google’s terms You used Gemini CLI on a personal account (see below)
Aider Provider APIs, OpenRouter, GitHub Copilot or local models Apache-2.0 You want to pick the files yourself and review a git commit per change. An optional browser interface is available.

They change fast. Best AI coding agents ranks a wider field. Read each tool’s own docs before you settle, and try two on the same real task: how to choose a model for coding has a simple method that works for agents too.

How do I install one?#

Claude Code. Individuals can sign in with a paid Claude plan or an Anthropic Console account. Teams can also supply access through Bedrock, Vertex AI or Microsoft Foundry. The commands below install the terminal client. If you already use the Code tab in Claude Desktop, you can start there without installing a CLI. Anthropic sign-in options · Desktop guide

irm https://claude.ai/install.ps1 | iex

On macOS, Linux or WSL:

curl -fsSL https://claude.ai/install.sh | bash

Open a new terminal, go to your project and run claude. It opens your browser to sign in.

Install Git for Windows too. Without it, Claude Code runs commands in PowerShell instead of Bash, and many shell commands the model knows by heart behave differently.

Codex CLI signs in with your ChatGPT plan or uses an API key.

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

On macOS or Linux:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Run codex in your project folder and choose Sign in with ChatGPT to use the plan on that account. For metered usage, the CLI accepts an OpenAI Platform key on standard input through codex login --with-api-key. You can work on the same local folder in the ChatGPT desktop app or Codex IDE extension with either account type. Cloud tasks require a ChatGPT workspace with cloud access. OpenAI sign-in options

OpenCode. On macOS or Linux, install the current terminal client with:

curl -fsSL https://opencode.ai/v2/install | bash

On Windows, extract the standalone ZIP for x64 or ARM64 and run opencode.exe in your project folder. Type /connect to choose a provider or sign in with ChatGPT Plus/Pro or GitHub Copilot, then /models to select a model. If Ollama already serves a downloaded model locally, go straight to /models. The desktop installer and a browser interface are available for people who prefer to review changes outside a terminal. Install OpenCode · Provider setup

Aider. Install its isolated Python environment with python -m pip install aider-install followed by aider-install. Start aider inside a project. If you have no provider key set, it offers an OpenRouter connection. A local Ollama model also works with aider --model ollama_chat/<installed-tag>. Aider also documents access through an existing GitHub Copilot OAuth token. For its experimental browser interface, start aider --browser. Aider model setup · Browser interface

Antigravity CLI. Choose a personal Google account, your organization’s Google Cloud project, or a Gemini API key according to who should be billed. For the key path, the CLI reads GEMINI_API_KEY from its environment. Google’s authentication guide

irm https://antigravity.google/cli/install.ps1 | iex

On macOS or Linux:

curl -fsSL https://antigravity.google/cli/install.sh | bash

The command is agy.

What happened to Gemini CLI?#

Google moved personal users to Antigravity CLI. Since 18 June 2026, Gemini CLI no longer serves requests for free use and for Google AI Pro and Ultra plans. It still works with a Gemini Code Assist Standard or Enterprise license, and with paid Gemini API keys.

Google says Antigravity CLI does not match Gemini CLI feature for feature yet. If you scripted Gemini CLI in CI, check Google’s migration notes before your pipeline breaks.

How do I keep an agent running when my connection drops?#

A foreground terminal session can stop when its SSH connection closes. If the work should continue on that server, start it inside a persistent terminal such as tmux:

tmux new -s agent
claude

Detach with Ctrl+b then d, close the connection, and come back later with:

tmux attach -t agent

Reattaching shows the process that stayed on the server. If the process ended, claude -c reopens the latest Claude Code conversation in the project, and codex exec resume --last resumes a previous non-interactive Codex session. For a new task that should continue after your own computer shuts down, Claude Code also offers cloud sessions on eligible accounts. Claude cloud sessions · Non-interactive Codex

Two settings matter inside tmux: before version 3.5, tmux delays every Esc key by half a second, which makes stopping an agent feel sluggish (see why Esc feels slow), and it keeps only 2,000 lines of scrollback by default, so long agent output scrolls out of reach. set -g history-limit 50000 in ~/.tmux.conf fixes the second.

What building one showed#

Contenox started in the terminal. Its earliest public pitch, a LinkedIn post, was a single pipe, git diff | contenox run "suggest a commit message", with the promise “No SaaS. No ‘subscribe for tokens.’ Just your device, your model, your data.” The product later became a desktop app, and the one-liner lives on as the contenox-runtime command line.

Contenox shipped a full-screen terminal client of its own: chat, plans, shell output and file edits in one scrollback, an approval card that stopped a risky call inline, a command palette, @ to address files. Three lessons came out of it:

  • The protocol matters more than the screen. That client spoke the Agent Client Protocol, so it barely knew which agent it talked to. Terminal, browser and editor clients all spoke the same protocol to the same agent.
  • The safety rules must not live in the terminal. Wherever the client enforced something itself, that rule only held while that client was running. A rule that disappears when you switch windows is not a rule. The agent has to enforce it, whatever client you use.
  • The terminal is great for people who already live there, and a wall for everyone else. That is why Contenox today is a desktop app: same agent, same rules, but with diffs, files and a terminal pane side by side for people who don’t think in shell commands.

If you are happy in a terminal, use a terminal agent. If you want the agent in a window instead, Contenox is a free, open-source desktop app, Windows first: open a project folder, say what you want, and watch and approve while the agent works. For scripts and CI it has a command line, contenox-runtime (install).