1
00:00:00,240 --> 00:00:02,920
Well, if you're a PC person, then you've come to the right place.

2
00:00:02,920 --> 00:00:03,800
This is for you.

3
00:00:03,800 --> 00:00:06,120
If you're not a PC person, then get out.

4
00:00:06,120 --> 00:00:07,240
You're not welcome here.

5
00:00:07,680 --> 00:00:09,560
All right, with that out of the way.

6
00:00:10,040 --> 00:00:10,560
Hello.

7
00:00:10,920 --> 00:00:12,000
This is the video.

8
00:00:12,000 --> 00:00:17,680
When we actually get to set up your environment and there are going to be five steps to doing this.

9
00:00:17,680 --> 00:00:19,480
The sixth one will be somewhat optional.

10
00:00:19,480 --> 00:00:24,480
There will be a sixth step, but the five main steps we are going to do, and they are going to be covered

11
00:00:24,480 --> 00:00:26,400
in my repo very clearly.

12
00:00:26,400 --> 00:00:28,040
And let's start by going there.

13
00:00:28,080 --> 00:00:32,640
We're going to go to the repo that is linked in the course materials.

14
00:00:32,680 --> 00:00:33,760
It's at GitHub.

15
00:00:36,000 --> 00:00:36,640
And here it is.

16
00:00:36,640 --> 00:00:41,320
And when you go there you see the different directories, the different folder structure that we have.

17
00:00:41,440 --> 00:00:46,000
And if you scroll down you get what's known as the readme, the set of information that comes with the

18
00:00:46,000 --> 00:00:46,360
course.

19
00:00:46,360 --> 00:00:49,920
And I ask you, I plead with you to read the readme.

20
00:00:50,200 --> 00:00:51,720
I put a lot of care into the readme.

21
00:00:51,720 --> 00:00:57,960
It's got lots of great stuff in there, and so do take a look through it and it will set you up to be

22
00:00:57,960 --> 00:01:01,520
successful in addition to another link to my LinkedIn.

23
00:01:01,560 --> 00:01:03,760
I'm starting to sound a bit desperate about this.

24
00:01:03,880 --> 00:01:09,320
There's also lots of useful things, and most importantly, there's links to the setup instructions,

25
00:01:09,320 --> 00:01:13,040
the windows setup instructions, the Mac and the Linux ones.

26
00:01:13,160 --> 00:01:17,320
And I'm not going to take you through them right now because this will be a living, breathing document

27
00:01:17,320 --> 00:01:20,000
that I will keep it updated as people hit problems.

28
00:01:20,000 --> 00:01:24,560
But you should go through that and have that side by side, if anything, that's going to be better

29
00:01:24,560 --> 00:01:25,400
than this video.

30
00:01:25,440 --> 00:01:27,840
See this video as being bringing it to life.

31
00:01:27,840 --> 00:01:30,360
But the instructions will be bulletproof.

32
00:01:30,560 --> 00:01:36,160
So it's time for step one and just before starting step one, I do want to draw your attention to a

33
00:01:36,160 --> 00:01:39,120
section at the top of the setup PC guide.

34
00:01:39,240 --> 00:01:45,440
That's called gotchas, and it has a few of the common traps that can happen when setting things up

35
00:01:45,440 --> 00:01:46,280
for PCs.

36
00:01:46,480 --> 00:01:53,400
One of them is an insidious problem, with windows sometimes being set up to not allow names of files

37
00:01:53,400 --> 00:01:55,760
longer than 260 characters.

38
00:01:55,960 --> 00:02:01,840
And if that is set on your system, then you need to to unset it so you are allowed longer filenames.

39
00:02:01,840 --> 00:02:04,880
And that's something which there are instructions for how to do that.

40
00:02:05,200 --> 00:02:10,120
Another common trap is around antivirus software that can interfere with the installation.

41
00:02:10,120 --> 00:02:11,720
So there's some steps there as well.

42
00:02:11,720 --> 00:02:15,920
So please do look at those gotchas because they will set you on a good path.

43
00:02:16,120 --> 00:02:16,800
All right.

44
00:02:16,840 --> 00:02:21,040
Step one is about cloning the repo using git.

45
00:02:21,200 --> 00:02:28,160
And to get started, if you go to the start menu and you then type PowerShell, you should be able to

46
00:02:28,200 --> 00:02:29,600
open up a PowerShell.

47
00:02:29,600 --> 00:02:30,520
One of these things.

48
00:02:30,520 --> 00:02:32,240
Let me get rid of the other one that's running here.

49
00:02:32,720 --> 00:02:34,840
So here is a PowerShell.

50
00:02:35,200 --> 00:02:38,680
And this is like like for for running commands in the command line.

51
00:02:38,680 --> 00:02:45,600
If you're new to this, one of the guides in the guide folder in the repo contains within it.

52
00:02:45,920 --> 00:02:51,760
So in this guides folder there is a guide for using the command prompt that will put you in good shape.

53
00:02:51,760 --> 00:02:54,920
But I'm imagining at this point you are familiar.

54
00:02:54,920 --> 00:02:58,560
So you know that that there could be a projects directory.

55
00:02:58,560 --> 00:03:02,960
Most people have created a projects directory in which you should go into it.

56
00:03:03,000 --> 00:03:08,880
If you don't already have a projects directory, then you should create one with mkdir projects within

57
00:03:08,880 --> 00:03:09,960
your home directory.

58
00:03:09,960 --> 00:03:14,880
So you will then have, like I do, a projects directory within your home directory.

59
00:03:14,880 --> 00:03:21,080
And if I look at the contents of it, it has my LM engineering folder from my other course, and it

60
00:03:21,080 --> 00:03:22,280
has some test folder.

61
00:03:22,280 --> 00:03:26,120
And it is this folder that we're going to clone our new repo.

62
00:03:26,360 --> 00:03:30,880
First we need to check that we have git installed git for code management.

63
00:03:30,880 --> 00:03:34,200
And you can do that by typing git minus minus version.

64
00:03:34,520 --> 00:03:37,320
And we'll see that I do indeed have git installed.

65
00:03:37,480 --> 00:03:43,840
If you don't have git installed and that has an error message, then you can go to Git's website and

66
00:03:43,840 --> 00:03:49,280
there's a link in the setup instructions and go to downloads and to windows.

67
00:03:49,480 --> 00:03:53,200
And you can click here to download the latest version for windows.

68
00:03:53,200 --> 00:03:58,040
And the installation instructions should be crystal clear and make sure that you have that in there.

69
00:03:58,040 --> 00:04:00,360
You might need to open up a fresh PowerShell.

70
00:04:00,400 --> 00:04:04,240
Always worth knowing that you might need to do that and sometimes you need to restart your computer.

71
00:04:04,280 --> 00:04:06,480
Super annoying, but hopefully not.

72
00:04:06,520 --> 00:04:11,040
You should be able to type git minus minus version and see git in there.

73
00:04:11,400 --> 00:04:16,320
Okay, so the next thing to do is to actually clone the repo.

74
00:04:16,920 --> 00:04:17,320
Okay.

75
00:04:17,360 --> 00:04:19,720
So we go to the repo itself.

76
00:04:19,720 --> 00:04:20,560
Here we have it.

77
00:04:20,800 --> 00:04:29,200
And uh the first thing we do is we go to this green button on the top right of the repo, as I'm looking

78
00:04:29,200 --> 00:04:32,640
at it here in a browser, and you click this code button.

79
00:04:32,840 --> 00:04:38,160
You select Https and you'll see the web address of this repo.

80
00:04:38,280 --> 00:04:41,360
And you press the copy URL to the clipboard button.

81
00:04:41,360 --> 00:04:41,920
And there we go.

82
00:04:41,960 --> 00:04:43,080
I have copied it.

83
00:04:43,400 --> 00:04:47,000
And now you come here to the PowerShell.

84
00:04:47,200 --> 00:04:50,160
Now again I'm in my projects directory.

85
00:04:50,160 --> 00:04:54,280
So you're in the your home directory then your project subdirectory.

86
00:04:54,280 --> 00:04:57,560
If your C drive is quite full then you might want to do this on your D drive.

87
00:04:57,560 --> 00:04:59,840
Just make sure you're within a project's directory.

88
00:04:59,880 --> 00:05:01,120
A good place for it to be.

89
00:05:01,160 --> 00:05:10,160
And you simply type git clone and then the paste in there the web address of the GitHub repo.

90
00:05:10,480 --> 00:05:16,120
And when we press enter that runs it does its thing and it's done.

91
00:05:16,280 --> 00:05:20,200
And if I look at that directory you'll now see that agents is there.

92
00:05:20,360 --> 00:05:24,320
I can now go into that directory agents and look at it.

93
00:05:24,320 --> 00:05:27,840
And here are all of the directories within the repo.

94
00:05:28,120 --> 00:05:32,880
And this folder that we're in right now which is projects agents.

95
00:05:33,040 --> 00:05:36,960
This is what sometimes known as the project root directory.

96
00:05:36,960 --> 00:05:38,400
It's what people call this.

97
00:05:38,440 --> 00:05:40,280
And it's a very common place to go.

98
00:05:40,520 --> 00:05:41,960
And this is where we are.

99
00:05:42,200 --> 00:05:47,040
And that means that we have completed step one of the five step process.

100
00:05:47,520 --> 00:05:48,120
Okay.

101
00:05:48,160 --> 00:05:57,760
So we go right away to cursor to look at the cursor IDE, a fabulous platform, and download it and

102
00:05:57,760 --> 00:06:02,400
install it if you don't already have it, and you can just press the download for windows button.

103
00:06:02,920 --> 00:06:08,160
It will download the executable and you can then run it and you'll get this setup screen.

104
00:06:08,200 --> 00:06:09,640
A familiar kind of setup.

105
00:06:09,840 --> 00:06:15,520
Accept the agreement, choose where you want it to install it, and I choose the C drive, but you could

106
00:06:15,520 --> 00:06:18,080
put it on the D drive if you're running out of space.

107
00:06:18,400 --> 00:06:27,920
And then next and then we will create a desktop icon and add it to Windows Explorer.

108
00:06:28,560 --> 00:06:34,160
And note that it will make changes to path, which means that we will need to bring up a new command

109
00:06:34,160 --> 00:06:35,800
prompt for this to take effect.

110
00:06:36,040 --> 00:06:37,560
And then we will install that.

111
00:06:38,160 --> 00:06:45,000
So it will now install cursor on my PC so that we can use this platform.

112
00:06:45,880 --> 00:06:49,160
And I will jump forwards and see you in a second.

113
00:06:50,000 --> 00:06:51,440
And cursor has now installed.

114
00:06:51,440 --> 00:06:52,760
And so I can press finish.

115
00:06:52,960 --> 00:06:57,400
And it should now be installed and launching on my PC.

116
00:06:58,080 --> 00:06:58,840
There we go.

117
00:06:59,680 --> 00:07:00,680
It's right here.

118
00:07:00,680 --> 00:07:01,080
The, uh.

119
00:07:01,200 --> 00:07:02,120
Oh, no, it is starting.

120
00:07:02,120 --> 00:07:02,840
It is starting.

121
00:07:03,360 --> 00:07:04,080
Here it comes.

122
00:07:04,080 --> 00:07:05,320
It just took a moment.

123
00:07:05,600 --> 00:07:08,880
And we can just keep with all of these basics.

124
00:07:09,160 --> 00:07:17,200
And I'm going to select to use the word cursor if I want to run it from the command line and say yes

125
00:07:17,680 --> 00:07:18,120
okay.

126
00:07:18,640 --> 00:07:19,800
And then continue.

127
00:07:20,640 --> 00:07:25,760
And I'm going to have it in privacy mode, I'm not going to, to uh, be logging what I do.

128
00:07:26,200 --> 00:07:27,640
And you are all set.

129
00:07:28,080 --> 00:07:34,400
So now you can sign up for a cursor account, which is free, and you just press that sign up button

130
00:07:34,400 --> 00:07:36,160
and follow the process.

131
00:07:36,480 --> 00:07:43,080
And uh, then, uh, once you're finished with that, I will see you back here in a second to actually

132
00:07:43,080 --> 00:07:43,920
use cursor.

133
00:07:44,520 --> 00:07:46,520
And so here we are in cursor.

134
00:07:46,520 --> 00:07:49,840
It started I've signed in, I've actually got a pro trial.

135
00:07:50,080 --> 00:07:53,160
And we're looking at the first screen we've got here.

136
00:07:53,160 --> 00:07:55,160
And I can press Open Project.

137
00:07:55,440 --> 00:08:00,880
And what I can now do is navigate I'm going to I'm going to actually go this PC and then to my C drive

138
00:08:01,480 --> 00:08:07,600
and then to users and add and then projects, which is where my projects are.

139
00:08:08,040 --> 00:08:10,400
And here is agents.

140
00:08:10,560 --> 00:08:14,680
And this you'll recognize as the directories that we cloned from our repo.

141
00:08:14,960 --> 00:08:20,760
And what I can do now is just press this select folder button which is saying I want this agents folder

142
00:08:20,760 --> 00:08:24,200
to be my project root folder.

143
00:08:24,200 --> 00:08:25,440
And it opens up.

144
00:08:25,440 --> 00:08:28,400
This is your first look inside cursor.

145
00:08:28,400 --> 00:08:31,000
We've got our directories down here.

146
00:08:31,000 --> 00:08:35,200
You've got like a welcome screen up here I'm going to X out the welcome screen.

147
00:08:35,200 --> 00:08:41,120
And now here we have something called the explorer on the left which has all of our directories.

148
00:08:41,120 --> 00:08:45,480
We've got a chat ability to chat with an LM on the right.

149
00:08:45,520 --> 00:08:47,400
I'm also just going to close that down.

150
00:08:47,440 --> 00:08:50,840
And what we're looking at here is the code.

151
00:08:50,880 --> 00:08:57,440
And in fact I can this navigator on the left is showing you a different directory for each of the six

152
00:08:57,560 --> 00:09:01,240
weeks of the course from foundations through to MCP.

153
00:09:01,440 --> 00:09:07,400
And if we open this swizzle here, you'll see all of the contents of the first week foundations where

154
00:09:07,400 --> 00:09:08,800
we are right now.

155
00:09:09,160 --> 00:09:09,520
Okay.

156
00:09:09,520 --> 00:09:12,200
We're racing ahead to part three of the setup.

157
00:09:12,240 --> 00:09:18,600
Part three of course is time for UV, which I'm so excited to to show you.

158
00:09:18,880 --> 00:09:23,960
So we start by just looking for, uh, UV package manager.

159
00:09:24,200 --> 00:09:28,600
You will, uh, find it's also linked in the setup instructions.

160
00:09:28,640 --> 00:09:31,080
Astral is the name of the company that makes UV.

161
00:09:31,320 --> 00:09:32,360
Here it is.

162
00:09:32,560 --> 00:09:36,920
And it is an extremely fast package manager as it tells you.

163
00:09:37,360 --> 00:09:43,280
So to install for windows, you simply run this in a PowerShell.

164
00:09:43,480 --> 00:09:48,760
And so I've pressed on windows I'm now going to press this copy button to copy that in.

165
00:09:48,800 --> 00:09:54,920
And I'm now going to go to a PowerShell which we will do right here PowerShell.

166
00:09:55,280 --> 00:09:58,840
And I'm going to run that command.

167
00:09:59,240 --> 00:10:00,800
So here we go.

168
00:10:01,160 --> 00:10:02,080
We'll let it do its thing.

169
00:10:02,120 --> 00:10:04,360
It's now installing UV.

170
00:10:05,120 --> 00:10:08,160
And that appears to have already happened.

171
00:10:08,480 --> 00:10:14,840
And it's telling you you can either restart your shell to to take this into the path or you can run

172
00:10:14,840 --> 00:10:15,560
those commands.

173
00:10:15,600 --> 00:10:17,120
We're going to restart our shell.

174
00:10:17,160 --> 00:10:19,440
If we type exit to get rid of that shell.

175
00:10:19,440 --> 00:10:24,040
And we start a new shell and you must remember to do this, otherwise it won't work.

176
00:10:24,280 --> 00:10:26,120
So PowerShell again.

177
00:10:26,560 --> 00:10:30,040
And now we should we should have access to UV.

178
00:10:30,320 --> 00:10:33,000
And so we can type UV minus minus version.

179
00:10:33,680 --> 00:10:36,920
And there we have UV installed on the machine.

180
00:10:37,520 --> 00:10:39,840
Now I'm going to show you this next part within cursor.

181
00:10:39,840 --> 00:10:44,800
Here is cursor I actually quit cursor and reopened it again for the same reason that we did that with

182
00:10:44,800 --> 00:10:50,400
a PowerShell to to reset the path variables and within cursor, I'm going to go to the view menu and

183
00:10:50,400 --> 00:10:51,560
choose terminal.

184
00:10:51,560 --> 00:10:58,310
It's also control and the Backtick to bring up a new PowerShell within then cursor, which is a useful

185
00:10:58,310 --> 00:10:58,710
thing to do.

186
00:10:58,710 --> 00:11:02,630
And that's how we'll do it, mostly on this course and within here.

187
00:11:02,630 --> 00:11:08,230
If I do a dir you'll see, or an LHS, you'll see that the contents of that directory, I'm now just

188
00:11:08,230 --> 00:11:15,030
simply going to do the command UV sync, which is my way of telling UV that I want to build an environment

189
00:11:15,030 --> 00:11:18,190
consistent with what I have in this directory.

190
00:11:18,390 --> 00:11:19,670
And I do that.

191
00:11:19,670 --> 00:11:26,190
And what we're seeing now is it's building the environment, and it's actually beginning by installing

192
00:11:26,270 --> 00:11:33,430
Python, a dedicated version of Python 3.1, which is the version for this project, and it's now installing

193
00:11:33,430 --> 00:11:34,350
the packages.

194
00:11:34,510 --> 00:11:40,630
Now, people who are familiar with Anaconda know that this process of building a full specked, isolated

195
00:11:40,630 --> 00:11:45,790
environment with the right version of Python is something that can take up to an hour, and sometimes

196
00:11:45,830 --> 00:11:51,630
on some systems, it was taking an hour and a half to build this environment on their computers.

197
00:11:51,910 --> 00:11:53,710
What you'll find is that it's a different story.

198
00:11:53,710 --> 00:11:59,590
With UV, it's running remarkably quickly, and I'm hoping it's going to finish by the time I finish

199
00:11:59,590 --> 00:12:00,590
this sentence.

200
00:12:00,590 --> 00:12:06,510
But if not, then I may put you on pause and come right back again, because it literally takes a minute

201
00:12:06,510 --> 00:12:07,790
or two and it will be done.

202
00:12:07,790 --> 00:12:09,110
So I'll see you in a minute.

203
00:12:09,390 --> 00:12:13,390
Okay, so it did take about another three minutes, but I didn't lie.

204
00:12:13,430 --> 00:12:13,950
It's quick.

205
00:12:13,950 --> 00:12:15,950
It's very quick and it's very impressive.

206
00:12:15,950 --> 00:12:18,110
And the big news is that that's it.

207
00:12:18,110 --> 00:12:24,030
There isn't any more of the kind of configuration management part those packages have been installed.

208
00:12:24,110 --> 00:12:29,470
If I look in this directory, you'll see that there is in fact going to be a new folder.

209
00:12:29,990 --> 00:12:30,590
Venv.

210
00:12:30,630 --> 00:12:35,110
It's created a virtual environment for people that know about Python virtual environments.

211
00:12:35,470 --> 00:12:40,190
It's built one and that now exists in this folder, and that's all there is to it.

212
00:12:40,310 --> 00:12:45,390
And going forwards, if we want to run a Python script, whereas you might normally type like Python

213
00:12:45,390 --> 00:12:50,990
and then the name of a Python script you now would type, you've run and then the name of the script

214
00:12:50,990 --> 00:12:53,910
and it will automatically run it in that environment.

215
00:12:53,910 --> 00:12:55,630
And everything else is the same.

216
00:12:55,630 --> 00:12:55,750
The.

217
00:12:55,790 --> 00:12:57,310
The environment is built.

218
00:12:57,310 --> 00:12:58,670
It's as simple as that.

219
00:12:58,710 --> 00:13:02,710
We're pretty much good to go and we're now in the end game.

220
00:13:02,710 --> 00:13:06,870
We're at step four of the instructions and it's smooth sailing from here.

221
00:13:06,950 --> 00:13:11,470
The next step is to set up a key with OpenAI so that you can use OpenAI directly.

222
00:13:11,470 --> 00:13:17,230
If you already have a key, you can just skip this step if you don't want to be spending money on OpenAI.

223
00:13:17,390 --> 00:13:18,470
There are alternatives.

224
00:13:18,510 --> 00:13:25,230
As I say, you will find them in the setup instructions and the readme and in the linked in the guides.

225
00:13:25,230 --> 00:13:27,110
So please do follow those instructions.

226
00:13:27,110 --> 00:13:33,110
But I do assume that most people are okay to spend a few dollars and is quite cheap on using OpenAI,

227
00:13:33,150 --> 00:13:37,790
because the power of these frontier models is going to allow us to do great things.

228
00:13:37,830 --> 00:13:45,430
And of course, you can use Deep Seek or Google's Gemini or Grok as a straight replacement for any of

229
00:13:45,430 --> 00:13:45,950
these.

230
00:13:46,190 --> 00:13:49,310
Okay, so I go to a browser and I go to platform.

231
00:13:51,470 --> 00:13:55,470
Which is where you get into the sort of API side of OpenAI.

232
00:13:55,710 --> 00:13:58,150
And the first thing that you may need to do is sign up.

233
00:13:58,150 --> 00:14:02,150
I have already got an account so I can just log in, but you may need to come in and sign up.

234
00:14:02,150 --> 00:14:05,910
If I log in, I can come in with my Google credentials.

235
00:14:06,270 --> 00:14:10,790
And here I am logged in as me to the OpenAI developer platform.

236
00:14:11,230 --> 00:14:13,430
Now, there are now two things that you need to do.

237
00:14:13,470 --> 00:14:16,990
One of them is about setting up billing, and one of them is getting an API key.

238
00:14:16,990 --> 00:14:18,230
And we'll do them both now.

239
00:14:18,510 --> 00:14:18,790
Okay.

240
00:14:18,830 --> 00:14:22,590
And so in order to set up your billing, you go to the settings menu up here.

241
00:14:22,830 --> 00:14:25,870
And then you go down to billing right here.

242
00:14:26,190 --> 00:14:30,950
And this is where you choose to put in a credit balance.

243
00:14:30,950 --> 00:14:32,630
You can see I've got quite a large credit balance.

244
00:14:32,630 --> 00:14:37,590
I seem to spend quite a lot of money on different projects with OpenAI, but this course will only cost

245
00:14:37,630 --> 00:14:39,070
you a few dollars.

246
00:14:39,070 --> 00:14:45,030
But the way that it works is that you do need to put in an amount up front, and $5 as of today is their

247
00:14:45,030 --> 00:14:45,750
minimum.

248
00:14:45,750 --> 00:14:48,630
So you'll need to put in that $5 and then you spend against it.

249
00:14:48,630 --> 00:14:53,030
For people internationally, I know that sometimes OpenAI can be a bore about charging because they

250
00:14:53,030 --> 00:14:58,230
charge in dollars and some credit cards don't accept an international charge like that.

251
00:14:58,230 --> 00:15:01,310
So there is some some nonsense to get around with that.

252
00:15:01,310 --> 00:15:04,110
And as I say, there's alternatives like deep seek if you want it.

253
00:15:04,150 --> 00:15:08,790
Some students use grok with a Q, which there's also a great option.

254
00:15:09,190 --> 00:15:13,470
And you can also use something called open router that's quite popular, particularly with international

255
00:15:13,750 --> 00:15:18,470
people, students, because you can set up an open router account and it will route through to the different

256
00:15:18,470 --> 00:15:19,030
models.

257
00:15:19,030 --> 00:15:21,030
So these are all different approaches for you.

258
00:15:21,030 --> 00:15:22,910
And they work almost exactly the same way.

259
00:15:22,950 --> 00:15:28,510
There'll be some sort of billing page like this where you get to choose to top up and you press add

260
00:15:28,510 --> 00:15:33,350
to credit balance to top up with a credit card, and you put in the minimum $5.

261
00:15:33,350 --> 00:15:35,830
We won't need any more than that for sure.

262
00:15:36,470 --> 00:15:36,910
Okay.

263
00:15:36,950 --> 00:15:42,190
And so once you've done that, you then have to go to the API keys section.

264
00:15:42,190 --> 00:15:44,030
And this is super important.

265
00:15:44,030 --> 00:15:46,590
And this is where you get to set keys.

266
00:15:46,830 --> 00:15:52,910
That will be the how you will access this API from your computer.

267
00:15:52,910 --> 00:15:56,550
And the way that you'll do that is you'll press create new secret key.

268
00:15:56,870 --> 00:15:58,950
You'll put in the any name you want.

269
00:15:58,950 --> 00:16:00,390
You can call it just to remember it.

270
00:16:00,390 --> 00:16:01,070
In the future.

271
00:16:01,470 --> 00:16:03,750
Make sure that you select project.

272
00:16:03,750 --> 00:16:05,870
You have default project so it's for everything.

273
00:16:05,910 --> 00:16:10,310
Have all permissions and then press Create Secret Key and you will get a new key.

274
00:16:10,310 --> 00:16:12,470
And you can copy it into your clipboard.

275
00:16:12,470 --> 00:16:14,510
And you have to do that to make sure that you preserve it.

276
00:16:14,510 --> 00:16:16,710
Because we're about to make use of that API key.

277
00:16:16,870 --> 00:16:19,830
Now here's a pro tip to be really careful about.

278
00:16:20,070 --> 00:16:25,310
When you copy that key into the clipboard, you might be tempted to paste it into another application

279
00:16:25,310 --> 00:16:28,910
like a notepad that you will then copy and paste it somewhere else.

280
00:16:28,910 --> 00:16:30,870
But there's a there's a trap there.

281
00:16:31,070 --> 00:16:35,830
Sometimes these kinds of word processors, when you paste in the key, they'll they'll mess around with

282
00:16:35,830 --> 00:16:36,430
it in some way.

283
00:16:36,430 --> 00:16:41,470
They'll replace hyphens with long hyphens because they look better in text, and they may replace some

284
00:16:41,470 --> 00:16:45,190
characters with international characters that are right for your locale.

285
00:16:45,350 --> 00:16:49,590
And if they do that, your key won't work, and it's going to take you ages to figure out what's happened.

286
00:16:49,590 --> 00:16:50,550
So be careful of that.

287
00:16:50,550 --> 00:16:51,110
Don't do that.

288
00:16:51,110 --> 00:16:56,390
I suggest copying it to the clipboard and then immediately doing the next step we're going to do, which

289
00:16:56,390 --> 00:16:58,550
is actually using it in our project.

290
00:16:58,550 --> 00:17:03,470
So keep that trap in mind if you do want to paste it somewhere to keep it for your records, then be

291
00:17:03,470 --> 00:17:08,670
careful to paste it into a kind of tool that's not going to mess around with the API key.

292
00:17:09,110 --> 00:17:10,510
All right, I hope that makes sense.

293
00:17:10,510 --> 00:17:12,710
I hope you've now created your API key.

294
00:17:12,710 --> 00:17:16,990
If you don't have one already and you've got it and you've got it nice and safe, and you've recorded

295
00:17:16,990 --> 00:17:21,270
it somewhere where it's not messing with the characters, and we're ready to put this to good use.

296
00:17:22,110 --> 00:17:22,870
And this is it.

297
00:17:22,910 --> 00:17:25,510
We've reached the final step, the final step of setting up.

298
00:17:25,510 --> 00:17:27,870
Thank goodness we're back in cursor.

299
00:17:27,870 --> 00:17:30,830
And I've actually I pressed X on the PowerShell that was here.

300
00:17:30,830 --> 00:17:34,110
So we've got a nice clean screen here on the left.

301
00:17:34,110 --> 00:17:39,550
This is the explorer I've collapsed all of these so that you just see the top level explorer.

302
00:17:39,790 --> 00:17:44,990
And what I'm now going to do is right click here and say new file.

303
00:17:44,990 --> 00:17:48,070
And I've now got a new file I'm creating at the top level.

304
00:17:48,110 --> 00:17:49,750
Make sure that it's at that top level.

305
00:17:49,750 --> 00:17:51,990
And I'm going to call it something very specific.

306
00:17:51,990 --> 00:17:55,030
And you have to call this file exactly the same thing.

307
00:17:55,070 --> 00:17:58,430
And that thing begins with a dot, a period.

308
00:17:58,750 --> 00:18:01,790
A full stop, as we say in England.

309
00:18:01,790 --> 00:18:04,910
And then the letters E and N and V.

310
00:18:05,070 --> 00:18:10,110
So it's called dot EMV, and it has to be called exactly that for a very particular reason that we'll

311
00:18:10,110 --> 00:18:10,830
get to later.

312
00:18:10,950 --> 00:18:15,990
But as long as you've called it Dot and nothing else, then you're in great shape.

313
00:18:16,190 --> 00:18:18,310
So that is the name of this file.

314
00:18:18,670 --> 00:18:25,510
A dot EMV file is a common way that people put in environment variables that they want to set just for

315
00:18:25,510 --> 00:18:30,070
the purpose of this project, and they will be environment variables that will contain what we sometimes

316
00:18:30,070 --> 00:18:33,550
call secrets or things that we don't want to to be public.

317
00:18:33,550 --> 00:18:35,750
We don't want it to be checked into source code.

318
00:18:35,750 --> 00:18:41,390
We want it to be something that is just for us, kept private, that we will use, and we can just put

319
00:18:41,390 --> 00:18:47,350
things in this file of the form of like a key name equals and a value, and that will become an environment

320
00:18:47,350 --> 00:18:48,790
variable, as you will see.

321
00:18:49,110 --> 00:18:52,470
And in particular, there's one key that we really care about.

322
00:18:52,550 --> 00:18:54,510
And you have to do this exactly right.

323
00:18:54,510 --> 00:18:59,150
If you make a typo in this, then it's not going to work and it's going to be really frustrating.

324
00:18:59,150 --> 00:19:01,870
So try to be really careful with this.

325
00:19:01,870 --> 00:19:09,110
I'm going to type open and you can see that already the cursor is already it knows what I want to do.

326
00:19:09,150 --> 00:19:10,510
See how it's filling it in for me.

327
00:19:10,510 --> 00:19:13,790
I could just press Tab to do what it wants, but I'm not going to press tab.

328
00:19:13,990 --> 00:19:17,750
You will see because it's got a dummy key in there, not the key that we want.

329
00:19:18,030 --> 00:19:23,670
Open AI underscore API underscore key equals.

330
00:19:24,590 --> 00:19:29,630
And you can see it's prompting me there ESC dash dash and a number.

331
00:19:29,950 --> 00:19:34,310
Now what I want to put in here is something that will indeed start ESC Pro.

332
00:19:34,710 --> 00:19:35,550
And it will have a number.

333
00:19:35,550 --> 00:19:36,710
But it's going to be a long number.

334
00:19:36,710 --> 00:19:41,550
And it's going to be the thing that I just copied into my clipboard from the previous screen from open

335
00:19:41,550 --> 00:19:41,830
AI.

336
00:19:42,150 --> 00:19:46,230
You need to now paste that key right here and it's got to look just right.

337
00:19:46,230 --> 00:19:51,670
It's got to start ESC and then be followed by that that long long number and letters.

338
00:19:51,670 --> 00:19:54,470
And it's got to have those hyphens in them just as they are.

339
00:19:54,670 --> 00:19:58,670
And this is of the people that struggle with environment setup.

340
00:19:58,790 --> 00:20:01,790
Most of the problems end up just being this one tiny step.

341
00:20:01,790 --> 00:20:02,830
So please get it right.

342
00:20:03,110 --> 00:20:07,630
Uh, so hopefully you've done that and you've put that in there and it's got a key in there.

343
00:20:07,670 --> 00:20:12,830
Now, if you're using other platforms like Deep Seek, then this is exactly what you will do.

344
00:20:12,830 --> 00:20:15,910
The same thing you'll just put in here deep seek and it will.

345
00:20:15,950 --> 00:20:16,350
There we go.

346
00:20:16,390 --> 00:20:17,390
It fills it in for me.

347
00:20:17,430 --> 00:20:19,670
Deep seek API key equals.

348
00:20:19,990 --> 00:20:21,230
And you might have something else.

349
00:20:21,230 --> 00:20:26,270
You might be using grok the inference platform or open router or any of the others.

350
00:20:26,270 --> 00:20:32,110
Any keys that you've got, you simply put them in here like that and we will use them later.

351
00:20:32,110 --> 00:20:38,230
So with any luck, you've put in OpenAI API key equals and it's got your real key in there, which means

352
00:20:38,230 --> 00:20:39,910
that the setup is complete.

353
00:20:39,910 --> 00:20:41,590
Many congratulations.

354
00:20:41,590 --> 00:20:46,390
That's the painful part over as long as it all works and we'll find out, please skip the next video,

355
00:20:46,390 --> 00:20:51,630
which is going to be for the Mac people, the next lecture, and then we will reconvene after that.

356
00:20:52,030 --> 00:20:53,950
And I'm so excited to get started.