How to Setup & Install Anthropic Claude Code CLI in Visual Studio Code IDE Using Terminal
Jul 13, 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 how to
0:04
install and set up uh Claude code CLI
0:08
inside your Windows machine.
0:10
So Claude, as you can see, it's a very
0:12
famous uh AI solution for programming
0:15
and coding. So this is their official
0:18
website anthropic and if you see they
0:20
have given step-by-step instruction on
0:23
how to install this uh CLI tool inside
0:27
the Windows machine. So directly you
0:30
can't install entropic cloud code. You
0:33
do need to install WSL which is Windows
0:36
subset for Linux. So first of all you
0:38
need to turn on this feature inside your
0:41
Windows machine if you haven't done
0:42
that. So simply click that tick mark
0:44
this option Windows subset for Linux. I
0:48
already done that and then install
0:50
Abuntu
0:52
distributions. So
0:54
and then open this
0:58
in the terminal. So as you can see we
1:01
are running this Abuntu version right
1:03
here inside Windows machine. So first of
1:06
all you do need to have NodeJS installed
1:08
on your machine. It is clearly mentioned
1:11
you should have at least 18 version of
1:13
NodeJS installed.
1:15
So you can easily install NodeJS by this
1:18
command here pseudoapp install NodeJS.
1:22
I've already installed it. So just
1:24
execute this command pseudo app install
1:26
NodeJS. This will install NodeJS for
1:29
you.
1:32
So as you can see we have already
1:34
installed it. So let me show you the
1:36
NodeJS version.
1:41
So you can see we have at least this
1:44
18.19.1
1:46
version. So we already have NodeJS. And
1:48
then they have given this command which
1:51
to install cloud code. So they have
1:53
clearly given this command here npm
1:56
install-g for globally installing it at
1:59
the rate anthropic- ai/cloud code. So
2:03
this is the command that they have
2:05
given. Simply type this command here.
2:08
npm install
2:11
dash g add the rate anthropic
2:19
dash ai/
2:21
claude code.
2:23
So just enter and execute this command.
2:27
So this will install this uh claude code
2:29
package globally inside your system. So
2:33
it will hardly take 10 to 15 seconds to
2:35
install it. So you can see in my case
2:38
this is successfully done. So after it
2:41
successfully installs.
2:44
Now you can open it inside VS code. So
2:47
it's very easy just open cood dash. So
2:51
this will simply allow this and this
2:54
will open your project directly inside
2:56
VS code. So in this easy way you can
3:00
install plot code directly in the
3:02
terminal and inside VS code. So here you
3:06
can create a new project here. Let's
3:08
suppose I say clot project.
3:15
So make directory cloud project. We have
3:18
created a brand new directory right
3:20
here. And now to initialize the cla
3:24
you can directly type here. Simply type
3:27
claude
3:31
cl. So now it will say welcome to claude
3:34
code. checking get letting let's get
3:36
started. So here you can choose your
3:39
theme here various themes are there dark
3:42
mode light mode
3:45
so stick to the default theme which is
3:47
dark mode so then this message will come
3:50
here welcome to cloud code and cloud
3:52
code now can now be used with your cloud
3:54
subscription or build based or API usage
3:57
through your console account.
4:00
So
4:03
for the I just want to tell you this is
4:05
not free. You need to be subscribed to
4:08
their plan to use the API.
4:11
So the pro plan starts with $20 per
4:14
month for the pro users and then $100
4:17
per month for max users. So you can
4:20
select this the login method here
4:24
or you can select the second method
4:25
anthropic console account.
4:31
So these are the two. So if you select
4:33
the first one, it is will open the
4:36
browser to sign in and
4:44
you just need to
4:49
copy this URL and then it will authorize
4:51
it. So it will clearly tell you that
4:54
sign up for a max pro or team
4:56
subscription to connect to your API key.
5:02
So you can see you will get this
5:05
notification.
5:10
So on the free pen only you can only
5:12
chat on cloud AI. So once you click it
5:15
you will be redirected to this screen
5:17
here. So you need to have a pro plan to
5:21
get the API key. So just upgrade you
5:23
will see this option upgrade plan and
5:25
you will see this get pro plan option.
5:28
So simply click it and enter your
5:32
details and then you will get the API
5:34
key. So in this easy way here you will
5:37
paste
5:39
the code which is prompted you
5:42
to directly connect to
5:46
plot CLI directly in the terminals. So
5:49
in this easy way you can do this. You
5:51
can directly install clot code directly
5:54
in the terminal inside VS code.
6:22
And after you authenticate, you have the
6:25
option to actually set the API key. For
6:28
setting the API key, you can declare a
6:30
glo environment variable.
6:35
They have clearly mentioned
6:39
right here. If you see if you want to
6:41
update claude here you can simply type
6:43
the command claude update and this will
6:46
update cla to the latest version. So it
6:49
will check automatically. So
7:03
in this easy way you can do this.
7:07
So these are the different environment
7:09
variables you can set which is
7:10
anthropic/ API key. So this one you can
7:13
easily set the API key.
7:18
All these variables are supported
7:23
and this is a command that you see
7:27
cloud config set
7:31
and then followed by the actual key API
7:33
key that you can Right.
7:58
So, thank you very much for watching
8:00
this video and also check out
8:05
My website freemediattools.com
8:08
uh which contains thousands of tools
#Programming
#Software
