⚡ Grok CLI is Here! in VSCode Elon’s Command Line Chatbot is Wild – Faster Than Claude & Gemini
Jul 23, 2025
Get the full source code of application here:
Show More Show Less View Video Transcript
0:00
Uh hello guys, welcome to this video. So
0:02
in this video, I'll show you the Gro
0:04
CLI. So Grock as you all know it's a
0:07
famous AI platform developed by the
0:09
Xplatform Twitter. Uh this is their CLI
0:13
platform which is there. So this is the
0:15
GitHub page right here. So now to get
0:17
started using Grock CLI,
0:21
you can simply type here
0:26
Gro AI CLI at the very first
0:34
I think. Yeah. So this is the tool here.
0:38
So it's an open-source AI agent and
0:41
prints the power of Grog directly inside
0:43
your terminal. So
0:46
similar to Gemini and Claude, Grock also
0:49
offers its own CLI tool right here. Now
0:51
to just install this, it's very simple.
0:53
You should have NodeJS installed
0:55
directly inside your machine. So if you
0:57
haven't installed NodeJS, simply install
1:00
Node. I already done that. So we can
1:03
cross check by simply typing the command
1:06
node- version. So I've already have the
1:09
latest version of NodeJS installed.
1:11
After that you simply install this by
1:14
executing this command npm install-g for
1:18
globally installing it at the rate v kit
1:21
props cla. So I simply copy this command
1:24
and simply open the terminal
1:29
and execute this command.
1:33
So here we are executing this command.
1:35
So this will install gro globally inside
1:38
my system.
1:40
Gro CLA.
1:45
So as soon as it is installed, you will
1:47
get this notification. Now the Gro CLA
1:49
is installed.
1:52
So you can simply type the gro command
1:56
and uh you will get this warning that
1:59
API key is required. So you need to set
2:02
this environment variable.
2:04
So you can easily get the API key just
2:07
with it as X AI
2:11
and inside this gro uh you can easily
2:14
get uh
2:16
first of all you need to sign up using
2:19
your Google account and once you sign up
2:22
you will go to the API key section. Uh
2:25
so you basically click on sign
2:30
you can login right here with the Google
2:32
account.
2:43
So once you sign up you will be able to
2:48
this is their chatbot here that you all
2:50
see. You can basically interact directly
2:52
right here. build a simple coding app in
2:56
browser or you can go to the API 6 API
2:59
key section as well where it will go to
3:03
the account icon right here account
3:06
profile icon and right here you will go
3:09
to the settings option
3:12
and uh
3:15
so if you
3:19
so as you can see it actually runs your
3:20
code as well but if you want to get the
3:24
API key. You go to this URL and simply
3:30
say API.
3:32
So now Grog 4 now available. So
3:36
so first of all you need to
3:39
API console. So they have their own
3:42
pricing as well. So now the API key you
3:45
first of all need to purchase some
3:46
credits. So if you loging in with a new
3:49
account you will get this warning that
3:51
you have no credits. So first of all you
3:53
need to buy some credits and after that
3:56
here you can enter the amount here. So
3:58
let's suppose you're putting $5. So you
4:01
can add your credit card or having a
4:03
guest check out as well. So now it will
4:06
redirect you to the payment. After you
4:08
purchase some credits you can go to this
4:10
section API keys and you can get your
4:13
API key and replace it.
4:16
So directly right here you can purchase
4:18
it in your own currency as well. So as
4:21
you can see
4:25
so after you purchase the credits you go
4:27
to the API key section and right here
4:29
click on this button create API key and
4:33
uh then you name your API key and save
4:36
it.
4:39
Just check all this enable all models
4:41
enable all endpoints. Click on save and
4:43
this will give you your API key.
4:47
So as you can see
4:50
this is your API key section.
4:54
So but just make sure that before
4:57
creating it you buy the credits uh in
5:00
this after that you can set the
5:03
environment variable
5:05
like this method one is this one. You
5:08
can basically copy this command and
5:10
directly paste it
5:13
export gro API key and replace your API
5:16
key right here. After replacing that now
5:18
you can directly use grog or you can
5:21
directly pass
5:23
the API key as your option as well.
5:28
Grog- API key and replace your API key
5:31
right here. So there are multiple
5:33
options. After that simply type grog go
5:36
to the working directory of your project
5:38
and then simply type the prompt show me
5:42
the package.json file. So automatically
5:44
this will show you your package.json
5:47
file right in the terminal itself. You
5:50
basically write croc-prompt
5:53
show me the package do.json file. So in
5:55
this easy way
5:57
create a new file called with the hello
5:59
world function run npm test all these
6:02
things you can automate your workflow of
6:04
your project with these gro cli directly
6:07
in the terminal itself. So, thank you
6:10
very much for watching this video and
6:12
also check out my website
6:14
freemediattools.com
6:16
uh which contains thousands of tools.
#Programming
#Open Source
