Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save intellectronica/e7a6920664a6d5b3608d7032f248bfdc to your computer and use it in GitHub Desktop.
Save intellectronica/e7a6920664a6d5b3608d7032f248bfdc to your computer and use it in GitHub Desktop.
OSS CLI AI Coding Agents - Comparison (by o3)

🆕 for more detailed information visit the 🌐Community Guide to Open-Source AI Software Craft - oss-ai-swe.org


At-a-glance

Tool Stars* Licence Default models What it can do out-of-the-box Ideal use-case
Codex CLI 30.5 k (github.com) Apache-2.0 OpenAI o3 / o4-mini (or any Responses-API compatible provider) (github.com) • Reads + writes files
• Runs shell commands in a sandbox with approval policies
• Multimodal prompts (images)
When you want ChatGPT-level reasoning and the ability to run code locally with fine-grained security gates.
Gemini CLI 54.5 k (github.com) Apache-2.0 Google Gemini 2.5 Pro (free quota) or any Vertex AI/AI Studio key (blog.google) • 1 M-token code window
• Multimodal generation (PDFs ↦ apps, sketches, video via Imagen/Veo)
• Built-in Google Search grounding
When you live in Google’s ecosystem and need multimodal generation or very large context windows.
OpenHands 60 k (github.com) MIT Pluggable (Claude 3.5 Sonnet recommended, but any via tools/MCP) (aiagentslist.com) • “Do-anything” agent: edit code, run commands, browse web, call APIs
• Headless/CLI / Docker / Cloud modes
Delegating full-stack dev tasks to an agent that can touch anything—good for automation pipelines.
OpenCode 7 k (github.com) MIT Multiple providers (OpenAI, Anthropic, Gemini, Bedrock, Groq, etc.) (github.com) • Bubble-Tea TUI
• Integrated Vim-like editor, LSP, file-change visualiser
• Named-argument custom commands
Terminal-first devs who want a chat/TUI hybrid with rich session management but light autonomy.
Aider 35.2 k (github.com) Apache-2.0 Any chat-completion API or local model; ships with presets for GPT-4o, Claude 3.7, DeepSeek, etc. (aider.chat) • Builds a semantic map of your repo for large-project edits
• Auto-commits with git
• IDE plug-ins, voice-to-code, lint + test loop
Pair-programming flow where you stay in control: incremental, review-friendly commits on big codebases.

*GitHub star counts on 7 July 2025.


1. Autonomy & safety

Aspect Codex CLI Gemini CLI OpenHands OpenCode Aider
Command execution Opt-in or --full-auto; sandbox blocks network by default (github.com) Requires explicit opt-in to --exec; uses Docker sandbox for “dangerous” commands Full autonomy is the default; can be scoped with policies but expects trust in the agent (aiagentslist.com) Runs commands only when you invoke :run or approve Never runs shell commands itself; only edits files and leaves execution to you

Take-away: If you need strict guard-rails, Codex CLI and OpenCode expose the most granular approval controls; OpenHands is the most autonomous.


2. Model flexibility & context

  • Gemini CLI has the largest first-party context (1 M tokens) and deepest multimodal hooks (Search, Imagen, Veo) (github.com).
  • Codex CLI reaches 192 k tokens via codex-1 and supports AGENTS.md for repository-specific tips (openai.com).
  • Aider keeps its own code graph so it scales beyond the model window and stays performant on monorepos (aider.chat).

3. Workflow friction

Install Notes
brew install codex or download binary (github.com) Includes Rust + TypeScript deps; auto-login for ChatGPT Plus
npm i -g @google/gemini-cli or npx run (github.com) Node 20+ required; Google sign-in grants free quota
pip install openhands (or Docker compose) CLI, headless server and browser UI come in one bundle
Single static binary (opencode) or go install … Cross-platform; no external runtime after build
pip install aider-install && aider-install (aider.chat) Python-only; works offline with local Ollama models

4. Strengths & weak points

Tool What it nails Where it still hurts (July 2025)
Codex CLI Tight integration with OpenAI ecosystem; robust sandbox; recipes for CI Windows needs WSL2; remote agent (Codex Web) still faster for long tasks (openai.com)
Gemini CLI Huge context + native multimodal; generous free quota Nightly builds can break; Docker sandbox flaky on macOS (github.com)
OpenHands End-to-end agent that can really run your stack; micro-agent architecture Terminal-compat warnings and other UX quirks; steep trust/safety learning curve (github.com)
OpenCode Slick Bubble-Tea UI and file-diff visualiser; easiest to extend in Go Early-dev; API subject to breaking changes (maintainer note in README) (github.com)
Aider Git-aware, commit-oriented workflow; code map keeps context fresh Doesn’t execute code itself—still need to run tests manually if your repo lacks CI hooks

5. Choosing the right one

  1. Need maximum autonomy (agent handles everything): pick OpenHands.
  2. Prefer chat-style edits & explicit control: go with Aider.
  3. Already an OpenAI subscriber and care about sandboxing: Codex CLI.
  4. Google stack, multimodal assets, huge context windows: Gemini CLI.
  5. TUI enthusiasts who like Bubble-Tea & Go: OpenCode.

6. Inter-operability tips

  • All five tools can talk to any Responses/Chat-Completions compatible endpoint (OpenRouter, Ollama, Groq) once configured—handy if you want to standardise model spend across your org.
  • Model Context Protocol (MCP) support matters if you intend to chain tools: Codex CLI and Gemini CLI ship with MCP clients; OpenHands can host an MCP server so other agents (even Claude Code) can offload work to it (github.com).

Bottom line: they occupy different points along the control ↔ autonomy spectrum. Try the one whose philosophy matches how you like to work—and keep a second one around for tasks where its strengths shine.


Generated by Eleanor ( ai.intellectronica.net ) using o3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment