The short answer: yes, there are several terminal-based AI coding assistants that work like Claude Code, and six of the most established are Aider, OpenAI Codex CLI, Gemini CLI, Cursor CLI, Continue CLI, and Goose. All of them run in your terminal, read and edit files in your project, and accept natural-language instructions, but they differ in which model they use, how they handle approval before writing files, and how much setup they need. To compare them fairly, install each one in a throwaway project, run the same small task (for example, add input validation to one function and update its tests), and judge them on setup friction, diff quality, and how clearly they ask before changing files.
What You'll Need
- A computer with a terminal: macOS Terminal, Windows Terminal with WSL or PowerShell, or any Linux shell.
- Node.js and npm installed for most of these tools (check with
node --version; install the current LTS from the official Node.js site). - Python 3.10 or newer for Aider and Goose, installed from python.org or your package manager.
- An API key or account for at least one model provider (Anthropic, OpenAI, Google, or a local model runner such as Ollama). Each tool's official documentation lists which providers it supports.
- A disposable Git repository to test in, so a bad edit cannot damage real work. Initialize it with
git initand make one commit before you start. - Basic comfort with the command line: changing directories, running install commands, and reading diffs.
Menu labels and install commands can differ slightly by version, operating system, and region, so always check the tool's own documentation if a command fails.
Step-by-Step
- Set up the test project. Create an empty folder, run
git init, add a small file with one function and one test, and commit. This gives every tool the same starting point and lets you reset withgit checkout .between trials. - Install Aider. Follow the official install instructions (typically
python -m pip install aider-installthenaider-install, orpip install aider-chat). Runaiderinside the repo, set your model provider key as instructed, add a file with/add filename, and type your task. Aider shows a diff and asks before applying changes by default; review it before accepting. - Install OpenAI Codex CLI. Install it with npm using the package name from OpenAI's official documentation, then sign in with your OpenAI account or API key as described there. Start it in the repo, give it the same task, and note how it presents proposed edits and whether it asks for approval before writing.
- Install Gemini CLI. Install it with npm using the package name from Google's official Gemini CLI documentation, then authenticate with a Google account or API key. Run it in the repo, issue the same task, and compare how it explains its plan before editing.
- Install Cursor CLI. Cursor is primarily an editor, but it ships a command-line interface; install it using the official instructions from Cursor's documentation and sign in with your Cursor account. Run it in the repo and give the same task. Note that some capabilities depend on your Cursor plan.
- Install Continue CLI. Continue is an open-source assistant with a terminal interface; install it per the official Continue documentation (typically via npm) and configure a model provider in its config file. Run it in the repo, give the task, and check how it handles multi-file edits.
- Install Goose. Goose is an open-source terminal agent from Block; install it with the official installer or package for your OS, then configure a provider and API key as its documentation describes. Run it in the repo and give the same task.
- Score each tool on the same four criteria. (1) Time from install to first successful edit. (2) Whether it shows a diff and asks before writing. (3) Whether the edit actually ran the tests. (4) How easy it was to undo. Write the scores down; the comparison is only useful if every tool faced the same task.
- Reset between trials. Run
git checkout .andgit clean -fdafter each tool so the next one starts from the same code. Never let two agents edit the same working tree at once. - Pick one and lock it down. Choose the tool that matched your workflow, then configure it to require approval for file writes and shell commands, and keep it inside a Git repo so every change is reversible.
Common Mistakes
- Testing in a real project instead of a disposable repo. One bad bulk edit can be hard to unwind.
- Giving each tool a different task, which makes the comparison meaningless.
- Letting an agent run shell commands without approval on the first run, before you have seen how it behaves.
- Installing from unofficial sources or random scripts. Use only the vendor's documented install method and official package registries.
- Forgetting that API usage is billed by the provider; a long agent session can consume more than expected.
- Assuming every tool supports every model. Check the provider list in each tool's documentation before buying a key.
Tips
- Keep tasks small and specific: "add a null check to parse_config and a test for it" beats "improve the codebase."
- Commit before every agent session so you can diff and revert cleanly.
- Use a
.gitignoreand avoid pointing agents at folders containing secrets or credentials. - Prefer tools that show a diff and require confirmation for file writes and shell commands.
- Try a local model runner such as Ollama if you want to keep code on your machine; support varies by tool, so check the docs.
- Read the changelog before updating; command names and flags do change between versions.
Troubleshooting
If an install command fails, first confirm Node.js or Python is on your PATH and at a supported version, then re-run the exact command from the official documentation. If authentication fails, sign out and back in, and check that the API key is set in the environment variable the tool expects. If the tool edits the wrong files, stop it, run git checkout ., and restart with a narrower instruction that names the files explicitly. If it cannot find your project, make sure you launched it from the repository root. If responses are slow or errors mention rate limits, wait and retry, or switch to another configured provider. If a tool refuses to run a command, read the approval prompt rather than disabling safeguards. When nothing works, uninstall and reinstall using the official method, and check the vendor's status page for outages.
Frequently Asked Questions
Are these tools free?
The command-line tools themselves are often open source or free to install, but the AI models behind them are usually billed by the provider through an API key or subscription. Check each vendor's current terms.
Can I use them without an internet connection?
Only if the tool supports a local model runner and you have one installed. Otherwise they need network access to reach the model provider.
Do they work on Windows?
Most do, either natively in PowerShell or through WSL. Follow the platform notes in each tool's official documentation, since support differs.
Which one is closest to Claude Code?
Aider and Goose are the closest in workflow: terminal-first, file-aware, and diff-based. The best fit depends on which model provider you already use.
Will they change files without asking?
That depends on configuration. Most offer an approval mode; enable it so you review diffs before anything is written.
Can I run two at once?
Not in the same working tree. Use separate clones or worktrees, or run them one at a time and reset between sessions.