DevConsensus
Comparisons / OpenAI Codex vs Gemini CLI
AI coding tools · HN opinions Nov 2025 – Nov 2026

OpenAI Codex vs Gemini CLI: what developers actually say

Based on 2,224 opinions on Hacker News from developers who discussed these two, most of them first-hand users.

OpenAI Codex
69%
approval · 2,013 opinions · 1,386 developers
last 90 days: 63%
Gemini CLI
29%
approval · 211 opinions · 175 developers
last 90 days: 25%

OpenAI Codex comes out ahead in this HN sample of 2,013 opinions against 211: 69% approval against 29%, 63% over the last 90 days against 25%, and 12 explicit picks over Gemini CLI with none going the other way. Its code-quality mentions run 343 positive to 116 negative, and it has more positive than negative mentions on autonomy (169 to 46), cost/pricing (174 to 54) and usage limits (131 to 61). Reliability is Codex's weak spot at 112 positive and 127 negative, while Gemini CLI is worse there at 7 and 55 and has 7 positive and 28 negative UX mentions. Gemini CLI is the better pick when you want a lightweight open-source companion for an existing IDE or notes workflow, or a fallback when Codex limits are reached.

When developers explicitly said they prefer one or switched: 12 picked OpenAI Codex, 0 picked Gemini CLI.

Choose OpenAI Codex if

  • Want stronger code-quality feedback
  • Want more positive autonomy and usage-limit feedback
  • Want a larger HN evidence base

Choose Gemini CLI if

  • Want an open-source terminal agent
  • Work inside an existing IDE or notes vault
  • Need a fallback when Codex limits are reached

Where each one wins and loses

PraiseComplaintsA = OpenAI CodexB = Gemini CLI
Code quality
A
116
343
B
17
6
Reliability
A
127
112
B
55
7
Cost & pricing
A
54
174
B
11
7
UX
A
86
131
B
28
7
Autonomy
A
46
169
B
11
9
Usage limits
A
61
131
B
12
1
Speed
A
33
96
B
4
2
Customization
A
18
33
B
3
1

Why developers switched

Picked OpenAI Codex

Picked Gemini CLI

No explicit switches recorded.

Summaries are paraphrased. Each links to the original comment.

Side by side

OpenAI CodexGemini CLI
Approval
69%
29%
Last 90 days63%25%
Opinions2,013211
First-hand users1,708163
TypeTerminal agentTerminal agent
Made byOpenAIGoogle
WebsiteVisit ↗Visit ↗

Related comparisons