HomeVideos

Gemini CLI vs Claude Code vs Codex Compared! Should You Use an AI CLI?

Now Playing

Gemini CLI vs Claude Code vs Codex Compared! Should You Use an AI CLI?

Transcript

256 segments

0:00

Gemini, Claude, OpenAI, all have

0:02

released their own terminal-based CLI to

0:04

integrate with AI agents. And just as I

0:06

was making this video, another one

0:08

dropped. Quinn Code is the latest in

0:09

coding IDs that are appearing. I have a

0:11

few questions I want to answer in this

0:13

video, such as what's the point of

0:14

working in a terminal. Do these terminal

0:16

CLIs have AI models that perform better

0:19

than the regular Clawude or Gemini

0:21

models? Because I'm seeing a lot of

0:23

integrations. Even Cursor now integrates

0:25

clawed code straight into the ID to make

0:27

it more accessible. I've only just

0:29

gotten used to the idea of vibe coding

0:31

and having an AI chat constantly in my

0:33

coding ID and I don't know if I'm ready

0:35

to close down my coding editor and work

0:38

directly in the terminal. But according

0:39

to Reddit, I've got no choice but to be

0:42

ready. So I'm going to take a look at

0:43

Gemini CLI, Claude Code, and OpenAI's

0:46

Codeex CLI. Let's start with Gemini.

0:49

Gemini CLI is open source and available

0:51

to download on GitHub for both Windows

0:54

and Mac OS. You can run it simply with

0:56

NPX or install it globally with npm. And

0:59

if you're wondering why you should try

1:00

it, it's because it comes with a free

1:02

tier, which means that you get access to

1:04

Gemini 2.5 Pro, the biggest model with

1:06

up to 60 requests per minute and 1,000

1:09

requests per day, all for free. It's

1:11

just finished installing, so I'm going

1:13

to run it by calling Gemini in my

1:15

terminal. And here I'm going to set the

1:17

theme, log into my Google account, and

1:20

now I'm ready to start. First up, I want

1:22

to see how good Gemini CLI is at editing

1:24

some of my websites and adding some

1:26

animations on the hero sections. You

1:28

see, I have this website on Wix Studio.

1:31

And the websites on here are using a

1:33

special programming language called

1:34

Vell, which I'm not familiar with quite

1:37

yet. I could normally code right down

1:39

here in the coding terminal. But

1:40

instead, I'm going to connect this

1:42

website up to GitHub so I can run it up

1:44

in VS Code and edit it myself. In VS

1:47

Code, I've opened up the terminal called

1:49

Gemini, and I've requested it to add

1:51

some animation to the homepage. Just

1:53

like an AI chat, it goes through and

1:55

starts making these changes. But unlike

1:57

AI chat, you can run up multiple

1:58

versions of Jan Manai that can run all

2:01

in parallel in the background completing

2:03

different tasks. It's just finished

2:05

making those changes and I've pushed

2:06

them out to production. Now, if I

2:08

preview the website, it has this

2:09

animation fade in after 1 second.

2:11

Another cool thing about Gemini is that

2:13

it's already able to connect to MCP

2:15

servers. So, I'm going to connect it to

2:17

the Wix MCP server using this JSON file

2:20

here. I relaunched Gemini. It

2:22

authenticated my MCP servers and now

2:24

it's got access to make changes on my

2:26

behalf. But we're just getting started.

2:28

On Twitter, I've seen people run

2:29

multiple Geminis all concurrently, which

2:32

is insane. And since it has a huge

2:34

context window, let's see how far we can

2:36

push the limits. I'm going to ask Gemini

2:37

to create an entire financial calculator

2:40

for me to help me do budgeting from

2:41

scratch. It created a highle plan for

2:43

the project, built it on top of Nex.js,

2:45

and here it is. I'll admit that I've

2:47

seen better oneshots on things like

2:49

Lovable or Bolt new, but this isn't

2:51

playing into the strength of using a

2:53

CLI. Now that the project is running, we

2:55

can start using that huge context window

2:57

as well as multiple instances of CLIs to

3:00

start performing multiple feature

3:01

installations all at the same time.

3:03

Gemini CLI does offer a few other things

3:05

such as being able to search the web,

3:07

create diagrams, but be aware that you

3:09

might run out of credit before you know

3:11

it. Now, I want to take a look at Claude

3:13

Code, the original CLI before they were

3:15

cool. While Gemini has grown in

3:17

popularity very quickly, Claude Code has

3:19

sustained a continuous growth due to its

3:22

performance being reliable and

3:24

consistent. I'll start by installing

3:25

Claude Code. Just like with Gemini CLI,

3:28

we need to install it in terminal as a

3:30

global package that we can use. Then

3:32

you'll need some billing details. You'll

3:34

need to connect it to Anthropic API or

3:36

your paid Claude account. Getting

3:38

started with Claude code feels a lot

3:40

more structured. Its first

3:41

recommendation is to create a readme

3:43

file by running forward/initialize. And

3:46

this goes through the project using some

3:47

of your tokens in order to get a better

3:49

understanding of it and create a basic

3:52

context that allows it to understand

3:54

what the project as a whole looks like.

3:55

It's so well written that it would be

3:57

useful even to another engineer if they

3:59

were just jumping on this project for

4:01

the first time. Now, let's see how

4:02

Claude Code goes at building a financial

4:04

app similar to what Gemini did. I've got

4:06

cursor open and it's got Claude Code

4:08

integrated. I'll test out a similar

4:10

prompt to what I had earlier, which is

4:12

to build a budgeting app from scratch to

4:15

see how it compares to Gemini CLI. Since

4:18

I've used it for a couple of weeks now,

4:19

I've noticed that Claude Code does

4:21

something different than most of the

4:23

other ways that you normally use an AI,

4:25

especially when you're just using it in

4:26

chat. You see, it uses a lot of tokens,

4:29

especially when it's trying to figure

4:30

out exactly what to do. And that isn't

4:32

necessarily a bad thing because if you

4:34

have a look at how it completes tasks

4:36

with a plan and then carries them out

4:38

and tests them properly, you'll realize

4:40

why it performs so well. This budgeting

4:42

app just finished and it's now running.

4:44

Let's test it out and see what it looks

4:46

like. Visually, it looks a lot better

4:47

than the Gemini CLI version. It has more

4:50

features like adding expenses depending

4:51

on the week, month or year, as well as

4:53

how much money I would save each month

4:55

based on the budget I create. There is

4:57

one drawback when using things like

4:59

claude code or even Gemini and the fact

5:01

that there is no version control. One

5:03

thing that I do like about using chat in

5:05

cursor or in VS Code is the fact that I

5:08

have revisions as well as history and

5:10

this lets me see exactly what's changed

5:12

and approve or reject it. However, if

5:14

I'm using something like a cloud code to

5:16

do the same sorts of changes, visually

5:19

I'm not going to see the same sort of

5:21

version tracking. Though, I have figured

5:23

out a way around this. I'm using git a

5:25

lot more to commit any changes that are

5:27

made. And this way, I can also use it to

5:29

track when changes do appear from the AI

5:31

and see exactly what's changed or

5:33

discard those changes if I don't like

5:35

them. Hopefully, these coding CLI will

5:37

have something better for version

5:38

tracking in the future, but this works

5:40

for now. Cloode instances can also run

5:43

simultaneously. There's a few ways to do

5:45

this. The first is to simply open up

5:47

multiple terminals where you can create

5:49

or request different types of features

5:51

to be set up or simply ask it to. Since

5:53

Claude actually knows how to run sub

5:55

agents in parallel. You just have to

5:57

bake it into the system prompt. Though

5:59

be aware because it can use up a lot of

6:01

tokens if you're running a lot of

6:02

requests at the same time. The final

6:04

contender for an AI based CLI is the one

6:06

from OpenAI called Codeex CLI. It's also

6:10

available on GitHub and you can install

6:12

it in your terminal, but they also have

6:13

a web version that lets you interact

6:16

directly with your own GitHub repo to

6:18

make changes in parallel in a much more

6:21

user-friendly way. I want to try out the

6:23

web version first before I open up the

6:25

terminal. It connects up to my GitHub

6:27

and I'm going to open up the same

6:29

project I had earlier, which is that Wix

6:31

Studio site I was trying to configure.

6:33

It creates three initial tasks which is

6:35

to explain the codebase, check if

6:37

there's any bugs and then also go

6:39

through to see if there are any issues

6:41

that can be fixed. Once I confirm these

6:43

are now all running in parallel in the

6:45

background with their own agents

6:46

performing the task that they're meant

6:48

to. I can expand these out and it can

6:50

show me what's happening which is a

6:52

container is starting up. I can view the

6:54

log of what's happening inside of that

6:56

container. And here it's giving me

6:57

snapshots of the terminal as it's going

6:59

through and completing that task. For

7:01

the first task, it gives me a summary of

7:02

the project. Here it is on the left,

7:04

which tells me that it's a Wix Studio

7:06

site, as well as what that codebase

7:08

looks like. In terms of the other tasks,

7:10

things like locating and fixing bugs, I

7:12

can click through and see what it's

7:13

found. Here, it's identified a better

7:15

way to run this command for hiding and

7:18

showing that top menu we created

7:19

earlier. I have the option to create a

7:21

pull request here at the top right, view

7:23

it, and then push it to my repo. That's

7:26

pretty cool for a web version, but we're

7:27

looking at CLI. So let's have a look at

7:30

how the codeex version works on my own

7:32

terminal. Here I've just installed it.

7:34

Then I'll need to log into my OpenAI

7:37

account and connect my organization.

7:39

Once done, I can load up CEX by simply

7:41

calling CEX in my terminal. Here it

7:43

requests that I make sure I run it

7:45

inside of a project I'm currently

7:47

working on. I'm running it inside of a

7:49

brand new project and I'm going to ask

7:50

it to create that financial app with a

7:53

budget that I can track my finances and

7:55

see how it performs compared to Claude

7:57

and Gemini. It runs in the background

7:59

and takes about as much time as Gemini

8:02

CLI as well as Claude Code. But

8:04

unfortunately, unlike those two, it

8:06

doesn't install Nex.js. This means I

8:08

have to open up a new tab in my

8:10

terminal, actually install and run up

8:12

the project to test what it looks like.

8:14

And here it is. Visually, it doesn't

8:16

look as good as the Gemini or Claude's

8:18

version, but in terms of the

8:20

functionality, it still works the same.

8:22

Though, it doesn't have some of the

8:24

great features that Claude Code had,

8:25

such as weekly, monthly, and yearly

8:28

tracking for expenses. My final thoughts

8:30

are that Claude Code is the best. So if

8:31

there's one you're going to pick it,

8:32

definitely try that

Interactive Summary

The video provides a comprehensive comparison of three major terminal-based AI coding agents: Gemini CLI, Claude Code, and OpenAI's Codeex CLI. The creator explores their installation processes, capabilities in building applications from scratch, and workflow integration. While each tool offers unique strengths—such as Gemini's free tier, Claude Code's reliability and structured initialization, and Codeex's user-friendly web interface—the creator ultimately concludes that Claude Code offers the best overall performance and features for developers.

Suggested questions

4 ready-made prompts