WEBVTT

00:00:00.000 --> 00:00:03.280
So Google just released Gemini CLI,

00:00:03.280 --> 00:00:04.880
their own autonomous

00:00:04.880 --> 00:00:10.800
coding agent. It's completely open source. It has 1,000,000 contacts window, and you get 1,000

00:00:10.800 --> 00:01:28.510
queries per day for free. This is a serious competitor to both Codex and Clothcode. And in this video, I'll show you how to set it up, how it compares to Clothcode, and how to get the most out of it. So stay tuned. Alright. So just type in Gemini CLI into Google and click on the first GitHub link. This will take you to the official GitHub page from Google. So let's scroll down, and I'll show you how to set up step by step because it's actually very simple. Right? You don't have to be afraid if you don't know how to use the terminal or if you're not a programmer. First step, what we have to do is n p m install dash g at Google slash gemini CLI. So just copy this command, open any terminal, and simply paste it in and hit enter. This will start installing Gemini on your system. Now as they say, the only prerequisite is that you have Node. Js version or above installed. So here is the link. Again, I'm gonna link the GitHub repo below the video. But if you don't have Node. Js on your system, which you definitely should have, just click on this link and download Node. Js, again, version 18 or higher for your system. Once you have Gemini installed with this command, it runs for a few seconds. So then if you type Gemini into your terminal, boom. There it is. Gemini is launched. This command as well, you should probably run it, uh, every morning because that's also how you keep Gemini CLI updated. But now let's move on to cursor, and we're gonna be using it in an actual production ready code base. Gemini 2.5 Pro,

00:01:28.670 --> 00:01:58.780
which is what Gemini CLI is built upon, the best model from Google, has a five times higher context window than Cloth for Opus and Cloth for Sonnet. And these are the only two models you can use in cloth code. So if you have a large code base, this might be the best coding agent for you. Anyways, once you're in cursor, just press command j to open the terminal or control j if you're Windows. Type in Gemini. Boom. Just like that, it will open. And, again, if you haven't authenticated yet, you'll have to choose a theme, which you can also change anytime

00:01:59.100 --> 00:02:01.020
with, um, slash

00:02:01.020 --> 00:02:19.620
theme. You here you have a lot of options, actually. To be honest, I like the default light. So I'm gonna select that. And, also, it will ask you to authenticate. So if you do slash off, this is what Gemini will look like when you first run it. Right? You have three different options. Log in with Google, Gemini API key, and Vertex AI. The simplest one is obviously log in with Google. However,

00:02:19.780 --> 00:02:24.820
there is different things you should consider. Now as I said before, you get literally 1,000

00:02:24.820 --> 00:02:51.120
queries per day for free. Thousand queries per day. Most people will not hit that. Let's be honest. Most people will not even get close to 1,000 prompts a day, which means Gemini CLI, for most of you, will be completely free. However, there are a few things to consider. With the login with Google, you get a thousand messages for free, but Google will train on your data. If you use your own API key basically, if you pay, Google will not use your data.

00:02:51.360 --> 00:03:03.075
So, again, if you use a big code base that is on a business that you do not own and you cannot share the data, then you should probably be using API key. Plus, you get the added benefit of not being randomly downgraded.

00:03:03.315 --> 00:03:12.250
If you log in with Google and you're using the 1,000 free messages per day, a lot of the times, especially during the peak periods of usage, you get downgraded to Gemini 2.5 Flash. So,

00:03:12.410 --> 00:03:35.045
hopefully, that doesn't happen. But if you have your own startup or you just wanna vibe code something from scratch, log in with Google is the simplest way. If you wanna make sure you're using the best model, Gemini 2.5 Pro. And if you don't want Google to train on your data, make sure to set up your API key in Google AI Studio. Make sure you fill out your billing details. That way, you're actually paying. And by the way, Gemini models are some of the most cost effective AI models

00:03:35.285 --> 00:03:44.980
in the world. So I would recommend going with the Gemini API key unless you really want to save money. In that case, just log in with Google. Anyways, let me first close all the other cloth codes here because

00:03:45.220 --> 00:03:49.860
I use a lot of cloth codes. K? And then, also, you can just rename it to Gemini

00:03:49.860 --> 00:03:50.740
CLI

00:03:50.900 --> 00:04:13.530
and pin the terminal. That way, you don't accidentally close it. So this is how your workspace honestly should look like inside of Cursor. One autonomous agent here and then maybe the file here, or if you wanna be try hard like me, a second autonomous agent on the right. So, literally, most of my time, I don't even have a single file open. Obviously, you can still switch to the files at any time and see the code yourself.

00:04:13.930 --> 00:04:45.240
But the beauty of these autonomous coding agents is that when they are changing any of the files, they show you the difference. So, really, all you need to do is have Gemini on one half of the screen, cloth code on the other half, and just vibe code with both of them. So since we've created a Gemini dot m d file, you can see above chat, it's saying using one Gemini MD file. So it's using these instructions, but this is this is very vague. Right? This is, like, 20 lines of prompts. This is not good at all. So what we need to do is we need to tell it locate the dot Gemini folder.

00:04:45.320 --> 00:04:48.120
And the reason for that is if we go back to the documentation,

00:04:48.795 --> 00:04:50.155
we can actually see

00:04:50.395 --> 00:04:54.635
uh-uh. If we scroll down a bit okay. So I found it. You need to go to docs,

00:04:54.875 --> 00:04:55.755
CLI,

00:04:55.915 --> 00:05:02.070
and then configuration MD. It's a bit, um, you know, hidden, but okay. Why are we getting errors here?

00:05:02.470 --> 00:05:06.150
Wait a second. Too many requests. Resource exhausted.

00:05:06.390 --> 00:05:07.830
Okay. So, uh,

00:05:07.990 --> 00:05:30.640
the bad news is that they seem to be overloaded. I don't know what's happening, but my API key is not working. Let me know, guys, if you encountered this in the comments, but I had to switch it off back to my Google login, right, which does seem to be working. So I don't know. I don't know what's wrong with the API method. Maybe they'll patch it in the next update. Who knows? But, basically, I wanted to run this prompt, locate Gemini folder.

00:05:31.040 --> 00:05:36.960
And the reason for that is if we go into the docs, into Gemini CLI doc CLI configuration,

00:05:37.280 --> 00:05:40.320
here, we'll see a very important section. Right? So

00:05:40.560 --> 00:05:51.125
I read a lot of the docs. And here, this section basically shows how to use the settings dot JSON. So let's see if it located that. Okay. We don't see a Gemini folder. Let's see settings dot JSON.

00:05:51.365 --> 00:05:57.685
Okay. Yeah. We don't have a Gemini folder, so we need to create one. So let's go back to the web,

00:05:58.740 --> 00:06:03.140
and this is what we need to create. So say, okay. Then create

00:06:03.300 --> 00:06:04.900
this file and folder.

00:06:05.700 --> 00:06:10.420
Boom. Settings dot JSON. The reason for that is it allows us to

00:06:10.740 --> 00:06:11.700
reuse

00:06:12.020 --> 00:06:30.100
some prompts. Here's the example that I tweeted yesterday evening. By the way, if you wanna get my thoughts in real time on all of these new AI updates that just come out, just follow me on Twitter at david Andre one. It's the easiest way to stay up to date with all the other tips. And, yeah, here is the tip. Okay. So when you create

00:06:30.340 --> 00:06:32.740
Gemini okay. So we need to allow this. Yes.

00:06:33.700 --> 00:06:35.060
Dot Gemini folder,

00:06:36.020 --> 00:06:49.515
and it wants to write this file. And we need to add the following, codec filename agents dot m d. Why? Because this makes Gemini CLI use your hopefully optimized agents dot m d. Again, if you're watching my videos, you will have an agents dot m d file,

00:06:50.075 --> 00:06:53.675
especially if you're in the new society. Because in the new society, in the classroom,

00:06:53.835 --> 00:07:01.250
I have an entire step by step workshop on the ultimate codecs guide, which takes you from the codex setup, GitHub fundamentals,

00:07:01.410 --> 00:07:02.690
my codex workflow,

00:07:03.250 --> 00:07:27.730
codex variations PR review, codex Internet access, and my new codex workflow with cloth code and cursor. So, yeah, this is available in the classroom inside of the new society. Make sure to join. But the whole point of this tweet is so that you don't have to write a new prompt file because it's it's getting, you know, overwhelming with so many files. So Gemini CLI created this settings dot JSON, so you can just open it settings dot JSON

00:07:27.890 --> 00:07:31.010
in the Gemini folder. Let's put it to our second half.

00:07:31.330 --> 00:07:43.985
So instead of, um, you know, going for the Gemini dot m d file, which is fine. This is better than nothing for sure. Most people will not even bother creating any system pro file, which terrible. The better method, however, is to delete this file. So let me just delete that.

00:07:44.385 --> 00:07:44.945
Boom.

00:07:45.505 --> 00:07:46.065
And

00:07:46.785 --> 00:07:58.880
put this in into your dot Gemini slash sharing JSON. Actually, make sure to remove this HTTP. I don't know how that got copied over, but the JSON needs to look like this. Context file name agents dot m d. And if we restart,

00:07:59.280 --> 00:08:03.600
let's say, we kill this, boom, clear, and type in Gemini.

00:08:03.920 --> 00:08:26.300
But you can easily start it from any terminal just by typing Gemini. There it is using one h s dot m d file. So, basically, this redirects Gemini telling it, hey. Instead of using the Gemini dot m d file, here is where we have the context. This is the context file name. That way, you can use the same file and keep improving your file, you know, whatever you're using for codex or for cloth code.

00:08:26.700 --> 00:08:37.295
And here, like, I have 400 lines of instructions. Right? So instead of me having to craft a new Gemini dot m d file from scratch, I can use my highly optimized

00:08:37.375 --> 00:08:39.295
400 line prompt

00:08:39.295 --> 00:08:56.350
for codecs that I use every single day, and I can instantly use that for Gemini CLI, making it way more powerful and way more useful for my own code base. So let's get to building with Gemini CLI. Of course, I'm gonna be building my AI startup, Vectal dot ai, which, by the way, if you're not using Vectal,

00:08:56.670 --> 00:08:59.470
this might be the easiest way to increase your productivity.

00:08:59.630 --> 00:09:15.615
Why? Because we have all of the best AI models, including Gemini 2.5 pro, powering our AI agents that can create tasks, help you complete tasks, do web research using Perplexity Pro, and so much more. If you're still using outdated task management tools like Todoist,

00:09:15.615 --> 00:09:49.860
ClickUp, Notion, just go to Vectular AI, Sign up. You can get started for completely for free. Take ten minutes to move your tasks over, and you will never look back. The ability to chat with the best AI models that know everything about your tasks, that know what projects you have active, which, by the way, in each project, you can set a custom system prompt, which this is not available in any other productivity or task management tool. These AI agents are aware of that, are aware of your user context, which allows them to be a lot more useful than just the default chat GBD or default cloth. So, again, go to vectel.ai,

00:09:49.860 --> 00:09:56.100
create an account, move your tasks over, and you will never look back. So what I want to do with Gemini,

00:09:56.180 --> 00:10:40.250
I want to improve the icons right here. So, again, let's go back to chat. Let me refresh. So I'm adding these icons for the feedback of the chat. Right? That way, we can have a clear feedback loop of how good of a job the agent did. So for example, here, it did exactly what I wanted, so I would give a thumbs up. But let's say you ask create four tasks and it only creates two. Well, that would be a thumbs down. So, basically, I'm adding this feedback mechanism, but right now the buttons are a bit too visible, I would say. So I wrote a prompt. Your task is to improve the design of the thumbs up, thumbs down buttons in and then I tag the file, which, by way, the tagging of files in Gemini CLI is very fast. Instead of using these yellow emojis, which are way too visible, let's use the thumbs up icons from Lucid React. Let's see how good

00:10:40.330 --> 00:10:45.930
Gemini CLI is at front end design. Okay. So we got downgraded to 2.5 Flash, which is unfortunate

00:10:46.170 --> 00:11:22.530
because, uh, I would like to be using 2.5 Pro, but I don't know why the API key method isn't working. Uh, maybe, uh, maybe it's just overloaded. I mean, they must have some crazy demands right now because they just released it. And, I mean, let me know guys if you've encountered this error with using the API key or how to solve it. I I would be more than happy to do that. So comment below if you know how to solve that because I really don't wanna be using 2.5 Flash. Okay. So 2.5 Flash failed. I mean, I'm trying to compare it to Cloth code, but it's difficult because Gemini 2.5 Flash is nowhere near good as Cloth for Opus or Cloth for Sonnet. I cannot seem to copy what? When I copy my prompt, it copies the response.

00:11:25.095 --> 00:11:26.695
Okay. Let's just do

00:11:27.015 --> 00:11:35.255
up arrow. Oh, this box appears always. So, yeah, this is one of the tools that Gemini has access to, which is the read many files tool,

00:11:35.655 --> 00:11:48.430
and it still didn't update it. I'm waiting for instructions. Let's try Clothes Code. Like, I'm I'm guaranteeing you Clothes Code will one shot this. Keep in mind, Clothes Code has been out for, like, over, what, almost two months,

00:11:49.070 --> 00:12:01.615
and the Gemini CLI released literally less than twenty four hours ago. So, yeah, I'm I'm trying to give an honest review. I'm not trying to overhyp. You know? Gemini CLI has some massive advantages, and there it is. Cloud Code was able to one shot it. No problem.

00:12:02.095 --> 00:12:07.375
Like, to be fair, 1,000,000 contacts window, as I showed earlier, is much better than 200,000.

00:12:08.040 --> 00:12:10.040
Also, fact that you get 1,000

00:12:10.040 --> 00:12:18.600
free queries per day is huge for a lot of people. The fact that Gemini CLI is open source is also huge because you can literally fork it and build your own

00:12:19.000 --> 00:12:28.325
coding agent, maybe using different models, maybe customizing the problems, whatever. So this is a huge power move from Google, open sourcing Gemini CLI, whereas ClothCode and

00:12:28.485 --> 00:12:45.210
Codex are not fully open sourced. Right? However, at the end of the day, what matters is how good the agent is. And when it struggles doing a simple prompt, it's nothing crazy, guys. Like, changing the icons is a simple prompt. And when it struggles to do even that, whereas ClothCode,

00:12:45.210 --> 00:12:46.650
its biggest competitor,

00:12:46.810 --> 00:12:48.330
one shots that, no problem.

00:12:48.810 --> 00:13:58.485
Yeah. Google needs to do some polishing. Again, I still believe Gemini CLI has major potential due to the fact that I listed, but it's been less than twenty four hours since they released it. So for now, Cloth Code is clearly better, but I would keep testing Gemini CLI. And maybe, like, in a week, when it gets through, like, a bunch of updates, maybe they'll be back, uh, especially if we can get the API method working so that we can always use Gemini 2.5 pro, not Flash, because Flash is a much worse model. So, again, comment below if you've been to solve that API error. But for now, Clothcode is the clear winner. If you're going to choose which to use, use Clothcode. If you don't have any money, Gemini CLI is a great alternative. Now if you want me to make a more in-depth video because this was largely about the setup and the differences compared to other tools, there's a lot stuff to cover such as the tools within Gemini CLI. It has a lot of tools. Also, MCPs, how to connect MCPs and run it with MCP servers. Also, the memory. Right? It has an interesting way of managing memory, which is like stored notes or anything else about your project or your preferences. Also, the web search. So Gemini CLI has the ability to browse the web. So I'm gonna say browse the web

00:13:58.725 --> 00:13:59.445
about

00:13:59.765 --> 00:14:01.205
latest news

00:14:01.750 --> 00:14:04.390
about a new coding agent from

00:14:04.790 --> 00:14:05.430
Google.

00:14:05.750 --> 00:14:08.150
Let's see if it finds info about itself.

00:14:08.310 --> 00:14:28.455
This is a major advantage because, obviously, Google owns Google Search. Right? So they built it in into Gemini CLI so it can get documentation faster, check the web. And there is also a custom separate tool called web fetch where you can give it a website, and it gives you it basically crawls it completely. See, it's using the Google search tool right here, latest news for coding agent Google.

00:14:28.695 --> 00:14:36.530
So, yeah, there's a lot more stuff to cover. I could go on for another hour hour hour and a half. If you watch my previous Clotco videos, you know that that's true.

00:14:36.930 --> 00:14:59.305
So if you want me to go even more in-depth into Gemini CLI, comment part two. If I see a lot of comments saying part two, I will make a very in-depth advanced video on Gemini CLI and post it in the next week or so. With that being said, thank you guys for watching. If you haven't already, go to vector.ai and sign up, especially if you have a team. If you are a small or medium sized business,

00:14:59.705 --> 00:15:53.775
join the team plan. Everybody on your team will have access to the cutting edge AI models in the app. Let's be honest. It's very hard to get your employees to use AI tools like ChatGPT, Cloth, Perplexity if they're not built in into the software that you're using. This is the problem that Vector solves. Plus, as I showed you, you can have custom system prompts for each project. So let's say let's say you have a software project right here, and you say, our tech stack is this this this. The current focus of q three is blah blah blah. And you put in focus for each project to save it. And when you select that project, which, by way, you can easily favorite it, the AI agents will know what the focus of that project is, and they will adapt the responses to that for all people in that project. Plus, if you go with the Vectal team plan, you could also give a custom system prompt to every person on your team so that Vektel knows, okay. This person is a video editor. This person is a developer, and it adapts the responses to them. Moving your team to Vektel has

00:15:54.255 --> 00:16:00.440
to be the easiest way to instantly boost the productivity of all the people on your team. So simply go to vektal.ai,

00:16:00.440 --> 00:16:05.480
get the team plan, move your team over, and suddenly, you became an AI first company.

00:16:05.720 --> 00:16:17.685
With that being said, thank you guys for watching. Let me know what you think of Gemini CLI. And if you want me to make another video on it, comment below part two, and I'll make it happen. With that being said, thank you guys for watching, and have a wonderful productive week. See you.
