WEBVTT

00:00.280 --> 00:00.640
Well.

00:00.640 --> 00:05.440
Hello Mac people and Linux people, welcome to your setup video series.

00:05.440 --> 00:07.720
If you're a PC user, then what are you doing here?

00:07.720 --> 00:09.000
We just set up your environment.

00:09.000 --> 00:09.680
You're set.

00:09.720 --> 00:11.160
Go on to the next lecture.

00:11.480 --> 00:14.280
All right, Mac people, I had a rough time with the PC lot.

00:14.320 --> 00:16.760
I am this is this is my sweet spot.

00:16.800 --> 00:21.720
I'm a I'm a mac user, so this hopefully is going to be very easy and fun.

00:22.040 --> 00:22.640
All right.

00:22.640 --> 00:24.800
So I'm in a finder window here.

00:24.800 --> 00:29.880
And I've gone into utilities applications utilities to show you that that's where you can find terminal

00:29.920 --> 00:32.800
to open up a terminal if you're not familiar with that.

00:32.800 --> 00:36.760
But I'm going to now assume that you know about this and open up a terminal.

00:36.840 --> 00:39.640
Here's one right here and make that a bit bigger for you.

00:39.760 --> 00:40.480
Hang on.

00:40.600 --> 00:45.960
So this this is where we are going to do some of the next few steps.

00:46.240 --> 00:50.080
And we've actually got a five step process for setting up your environment.

00:50.080 --> 00:56.600
And this is the first step which is about cloning the repo or getting a copy of the code for the class

00:56.600 --> 00:58.000
onto your local box.

00:58.160 --> 01:01.610
Now I'm in my home directory here if I do PWD.

01:01.650 --> 01:06.330
If you're not familiar with the command prompt, I've included a guide to get you more comfortable more

01:06.330 --> 01:08.490
confident using the command line.

01:08.850 --> 01:13.730
It's common for people to have a directory called projects in their home directory where they put all

01:13.730 --> 01:15.690
of their their work projects.

01:15.690 --> 01:19.210
And if you have that, then if you do CD projects, it will go in there.

01:19.250 --> 01:25.930
Now it looks like I don't have one, so I have to make one with make directory projects and then change

01:25.930 --> 01:26.970
to projects.

01:26.970 --> 01:31.850
And now I'm in my empty projects directory, but you may have a few projects in there.

01:32.050 --> 01:36.530
So the next step is now to bring the GitHub repo here.

01:37.130 --> 01:45.450
And so what we now do is we go using our favorite browser to a, a page where we have the repo which

01:45.450 --> 01:47.210
is linked in the course materials.

01:47.210 --> 01:52.650
This is what the repo looks like when you go to GitHub to my name and you see the repo here, here are

01:52.650 --> 01:57.570
all of the directories, one for each of the weeks that we have coming up ahead of us, and then some

01:57.570 --> 01:58.130
general stuff.

01:58.130 --> 02:01.940
And if you scroll down you see something that's known as the project Readme.

02:01.940 --> 02:04.340
And it's really important because it's got great stuff in there.

02:04.340 --> 02:07.580
And I urge you to read the readme and the things it links to.

02:07.620 --> 02:11.900
It begins with some stuff which includes another appeal to LinkedIn with me.

02:11.940 --> 02:14.100
I seem to be quite desperate on this front.

02:14.300 --> 02:17.380
And then comes the setup instructions.

02:17.380 --> 02:18.700
And there's a link for windows.

02:18.700 --> 02:20.300
Instructions for the other guys.

02:20.300 --> 02:22.540
There's a link for Mac and Linux.

02:22.780 --> 02:25.860
Come follow that link to get step by step instructions.

02:25.860 --> 02:30.300
And to be honest, those instructions are going to be way clearer than than this video.

02:30.300 --> 02:32.740
And I'm going to keep them updated when people have problems.

02:32.740 --> 02:35.500
So that should really be your first place to go.

02:35.540 --> 02:38.260
And this video see it as like a video that goes along through it.

02:38.260 --> 02:40.060
So you get get a sense for it.

02:40.500 --> 02:45.820
But the Readme also has lots of useful resources and a ton of important stuff on API costs that I urge

02:45.820 --> 02:47.820
you to read, because I know this is a sensitive topic.

02:47.860 --> 02:54.100
And so please do look through it and read all the other stuff and the links to the guides and so on.

02:54.940 --> 02:58.780
And I should probably mention that if you've not used GitHub before, you might need to create a new

02:58.870 --> 03:01.230
account with GitHub to get to this point.

03:01.670 --> 03:07.590
Now, just before we clone this repo locally, I'd like to go back to the terminal window and I just

03:07.590 --> 03:14.350
want you to type git minus minus version to check that you've got git installed on your Mac, and it

03:14.350 --> 03:17.470
should come up like mine does with a version number.

03:17.750 --> 03:20.430
If it doesn't, you might need to run this command.

03:20.470 --> 03:27.630
Xcode select minus minus install, which installs some of the basic developer tools on your Mac.

03:27.670 --> 03:30.150
I've got a link to that in the setup instructions.

03:30.150 --> 03:34.710
I won't do it since I already have Xcode and Developer tools installed.

03:34.750 --> 03:39.590
Okay, so with that, if you're typing git minus minus version, you're getting a number there.

03:39.590 --> 03:46.310
You come to the repo, you've signed in to GitHub, there's this green code button on the top right.

03:46.510 --> 03:47.990
And you press there.

03:48.110 --> 03:52.950
And probably I recommend that at this point you select the Https version.

03:53.070 --> 03:56.470
I'm going to pick this version because I have that kind of credential.

03:56.470 --> 03:58.470
But but you can also pick the other one.

03:58.560 --> 04:04.040
and then you copy that into your clipboard by pressing the copy button right there.

04:04.400 --> 04:10.520
So once you've copied this text, which is the link to this, this repo, you then come back to the

04:10.520 --> 04:11.240
command line.

04:11.240 --> 04:16.360
And in your projects directory there I am I'm inside users ed projects.

04:16.360 --> 04:23.720
I'm now going to type git clone, and then the repo link that I've pasted from my clipboard.

04:23.920 --> 04:27.640
And I press enter and in it comes and it's done.

04:27.840 --> 04:31.640
If I now have a look you'll see that there is a directory called agents.

04:31.760 --> 04:38.400
If I go into agents I now see that I have directories for the full project.

04:38.840 --> 04:44.280
And I want to mention that where we are right now in this directory that's in my projects directory,

04:44.280 --> 04:45.840
the agents directory.

04:46.000 --> 04:50.120
This here, this is known as the project root directory.

04:50.120 --> 04:54.720
If you're inside the sort of top level directory of your project of agents.

04:54.880 --> 04:56.200
So this is the project root.

04:56.200 --> 04:58.970
And you'll hear that referred to during the course and generally.

04:58.970 --> 05:00.810
And so it's worth knowing that that's what it is.

05:00.810 --> 05:04.250
But that is step one of the setup complete.

05:04.890 --> 05:05.290
Okay.

05:05.290 --> 05:07.530
Welcome to step two of the setup for Mac.

05:07.530 --> 05:13.050
We're going to now install cursor the I IDE which is great.

05:13.050 --> 05:13.930
It is fabulous.

05:13.930 --> 05:14.850
And you're going to love it.

05:14.890 --> 05:17.410
If you've already got cursor then of course you can skip this step.

05:17.650 --> 05:20.650
Otherwise bring up your favorite browser and go to cursor.

05:22.090 --> 05:25.250
And here we have the screen for installing cursor.

05:25.290 --> 05:29.610
You will need to begin by creating an account using the sign up button over here.

05:29.610 --> 05:32.250
If you don't have one already and it will just guide you through.

05:32.250 --> 05:40.330
I use my Google credentials myself, and I selected a Trial Pro plan myself, which is a free at least

05:40.330 --> 05:40.770
for now.

05:41.050 --> 05:46.130
And I then press download for Mac, which then brings down an installer.

05:46.130 --> 05:50.890
I then run that installer and it then asks me a couple of questions.

05:50.890 --> 05:53.810
I log in and then it installs it.

05:53.850 --> 05:56.490
I mean, I'm sure you are used to these things.

05:56.490 --> 06:01.900
You then drag and drop into applications and you open that up and it will install it.

06:01.940 --> 06:02.980
Easy peasy.

06:03.420 --> 06:07.540
I selected all of the default setup instructions, nothing special at all.

06:07.540 --> 06:10.540
And then you should launch it and you should be in cursor.

06:10.540 --> 06:12.740
And that is where we will go next.

06:13.620 --> 06:13.940
Okay.

06:13.980 --> 06:19.180
So once you've opened up cursor freshly installed this is what it should look like a nice big empty

06:19.220 --> 06:19.780
screen.

06:19.780 --> 06:23.500
And we're going to press the open project button right here.

06:23.780 --> 06:30.220
And we're going to then navigate to projects wherever that is.

06:30.220 --> 06:36.660
I guess it's going to be at the top projects and then agents, which is the new folder that we've just

06:36.660 --> 06:37.100
installed.

06:37.100 --> 06:39.780
This is known as the project root folder.

06:39.780 --> 06:40.660
Here it is.

06:40.860 --> 06:43.100
And then we're going to press open.

06:43.420 --> 06:45.060
And here it is.

06:45.900 --> 06:47.180
Cursor opens up.

06:47.180 --> 06:53.340
We've got a nice screen here that's known as the explorer which shows all of the files organized by

06:53.340 --> 06:54.180
directories.

06:54.180 --> 06:55.580
One of these directories might be open.

06:55.580 --> 06:59.190
You can just click the switch to collapse it like that.

06:59.230 --> 07:02.950
There might be a box up here with some sort of welcome to cursor, blah blah blah.

07:02.990 --> 07:06.750
Just X out of that extra box on the top left if it's there for you.

07:07.110 --> 07:11.710
Over here is a chat screen where you can chat with an AI about your code.

07:11.750 --> 07:15.350
And I'm going to suggest for now we x out of that as well to keep things really clean.

07:15.390 --> 07:18.430
So what we're looking at now is a nice big area here.

07:18.670 --> 07:25.870
And the code the explorer to look at our directories right here, including the Readme and so on.

07:25.910 --> 07:29.190
And congratulations you are into cursor.

07:29.390 --> 07:33.070
And that is the second step of the instructions completed.

07:33.790 --> 07:37.990
And we are now onto step three of the instructions which are my very favorite step where you're going

07:37.990 --> 07:38.630
to install.

07:38.670 --> 07:45.390
You've the package manager which is so fabulous, so quick and easy to use, and you're going to be

07:45.390 --> 07:46.870
really happy about this.

07:46.870 --> 07:52.150
I know it's like another new thing to learn, which is always a pain, but I tell you, it's so great.

07:52.190 --> 07:58.280
The reason we're doing this is partly because a student on my prior course, said, you know, you really

07:58.280 --> 07:59.240
should use UV.

07:59.280 --> 08:00.560
It's so much better.

08:00.560 --> 08:02.120
And so I'd heard of it.

08:02.120 --> 08:07.000
I knew it was doing the rounds, but I hadn't actually used it myself until that, and that pushed me

08:07.000 --> 08:07.520
to do it.

08:07.520 --> 08:09.160
And I've never looked back.

08:09.200 --> 08:15.000
And we'll find that many of the AI platforms, the agent platforms will use or use UV themselves.

08:15.000 --> 08:16.920
So it's going to work out really well for us.

08:16.920 --> 08:20.640
You're going to be grateful I showed you this if you're not already a UV convert.

08:20.640 --> 08:21.280
All right.

08:21.520 --> 08:24.360
So first step is to install UV.

08:24.520 --> 08:28.080
And the way you do that is you bring up a browser window.

08:28.240 --> 08:32.880
And yeah you can just Google for UV package manager.

08:32.880 --> 08:39.000
Or you can look at the link that I'll have in the instructions, and you'll see that there is the um

08:39.400 --> 08:40.560
link to the GitHub.

08:40.600 --> 08:44.720
And it has within it some clear installation instructions.

08:44.720 --> 08:50.920
You just simply have to run this one command in a terminal, and I will copy that to the clipboard.

08:50.920 --> 08:51.680
There it is.

08:52.000 --> 08:56.770
Now there's actually a new easy way to run things in a terminal because you can do it within cursor.

08:56.810 --> 08:59.210
Here's my cursor screen again.

08:59.210 --> 09:01.610
And there's actually a view menu.

09:01.610 --> 09:03.770
And you can go view and then terminal.

09:03.770 --> 09:09.170
Or you can know to press the control button not the command button, not the one with the squiggle clover

09:09.170 --> 09:13.210
on it, but the control button on the bottom left of your keyboard control.

09:13.210 --> 09:16.330
And then the tick mark on the top left of your keyboard.

09:16.370 --> 09:17.570
Or at least on my keyboard.

09:17.610 --> 09:18.770
And up comes a terminal.

09:18.770 --> 09:21.370
But you could also go to the view menu and choose terminal.

09:21.370 --> 09:22.330
And here it is.

09:22.370 --> 09:27.250
And now you can simply paste in that command to run the installation for you've.

09:27.250 --> 09:29.170
And it will be super quick and you'll be done.

09:29.170 --> 09:30.970
I'm not going to run it because I've already run it.

09:31.330 --> 09:36.370
Once you've done that, you might need to close this terminal by pressing the the X, and you might

09:36.370 --> 09:41.850
actually need to to quit out of right right out of cursor and bring back up cursor because it needs

09:41.850 --> 09:43.770
to refresh its environment variables.

09:43.770 --> 09:48.850
But but if you've done that then if you type UV minus minus version, it should give you a version number

09:48.850 --> 09:52.690
which is telling you that all is good, UV is installed.

09:53.090 --> 09:57.100
And uh, with that we are almost ready to go.

09:57.140 --> 09:59.380
There is now only one command left.

10:00.060 --> 10:01.380
And what is that command?

10:01.420 --> 10:02.100
I hear you ask.

10:02.100 --> 10:04.180
It is simply to type at this point.

10:04.220 --> 10:07.060
You see like that.

10:07.100 --> 10:12.540
And what that's going to do is it's going to look at some of the other files here, like a Python version

10:12.540 --> 10:17.820
file and a pyproject.toml and some other things and a UV lock.

10:17.860 --> 10:22.220
And it's going to use that to build our environment and let's see it doing that.

10:22.220 --> 10:23.100
Off it goes.

10:23.460 --> 10:28.020
Now I told you that it's quick and you'll see that it was very quick.

10:28.180 --> 10:29.660
That is just done.

10:29.660 --> 10:32.020
But that's actually quicker than it will be for you.

10:32.060 --> 10:34.900
And it's that quick because it does cache things that I've done before.

10:35.140 --> 10:39.340
When you do this, it's going to take about three minutes, four minutes, which is still very quick

10:39.340 --> 10:42.780
because Anaconda takes like an hour or something.

10:42.900 --> 10:47.660
So it's going to be fast, but there is still a lot to be installed, so you'll have to sit back and

10:47.660 --> 10:54.980
wait while everything installs, but enjoy the raw power of UV as everything gets built there And once

10:54.980 --> 10:57.660
it's done, what you may notice is that there's a new.

10:57.700 --> 11:03.620
Directory called dot that's appeared, which is like a traditional Python virtual environment.

11:03.620 --> 11:07.220
If you know these things that it's created one for this project.

11:07.220 --> 11:11.660
And so one of the really nice things about UV is that it's compatible and consistent with all of the

11:11.660 --> 11:13.500
other ways you do things in Python.

11:13.500 --> 11:16.460
It's not like there's a new sort of thing like Conda.

11:16.660 --> 11:23.140
So it's that's been set up and now that is going to be the environment that we'll be using from this

11:23.140 --> 11:24.140
point onwards.

11:24.300 --> 11:30.260
And when you run a Python script, whereas before you might have typed Python and then something, what

11:30.260 --> 11:36.580
you're going to type now is you've run and then that same thing and that automatically makes sure that

11:36.580 --> 11:38.780
it runs in that environment.

11:39.180 --> 11:44.620
The other thing to mention is that it has installed a dedicated version of Python, right?

11:44.620 --> 11:45.700
For this project.

11:45.700 --> 11:48.340
It is in fact a Python version 3.1.

11:48.860 --> 11:51.940
Uh, whilst the latest version of Python is 3.13.

11:51.980 --> 11:53.180
That's not yet not.

11:53.180 --> 11:55.550
Not all data science packages are ready for that yet.

11:55.550 --> 11:59.790
So 3.1 is what we're using and everything will be in that Python.

11:59.790 --> 12:03.630
It will have installed it for you if you didn't already have it, and it will be dedicated for this

12:03.630 --> 12:04.230
project.

12:04.270 --> 12:05.590
UV is really good.

12:05.590 --> 12:13.630
It combines this kind of isolated environment with something that is fast and simple, and I very much

12:13.630 --> 12:16.190
hope that this will have simply worked for you.

12:16.190 --> 12:20.110
And that means that step three is done and we can move on to step four.

12:20.710 --> 12:24.670
So for step four, we're going to set up a key with OpenAI.

12:25.190 --> 12:31.670
Now again I want to emphasize that whilst I do encourage you to be setting up a key with OpenAI and

12:31.670 --> 12:35.870
to be using that API, it is not required for this project for this course.

12:35.870 --> 12:39.310
And there are alternatives in the Readme, but that's what we're going to do now.

12:39.350 --> 12:42.070
I'm going to assume that you are good for this and that we can come in.

12:42.070 --> 12:48.150
And so you go to platform dot Openai.com just here like that.

12:48.310 --> 12:55.160
And this brings you to the front screen of OpenAI where you get to set up an account.

12:55.160 --> 12:59.280
If you don't have one already, sign up or log in if you have one.

12:59.280 --> 13:01.880
And I'm going to log in because I already have one.

13:02.000 --> 13:04.480
Log in with my Google credentials.

13:04.480 --> 13:06.920
And here we have my account.

13:06.920 --> 13:09.840
We're logged in and you will hopefully have done the same.

13:09.880 --> 13:11.400
Let me make this nice and big for you.

13:12.320 --> 13:13.040
Okay.

13:13.200 --> 13:17.240
So there are now two things that we have to do now that we're in OpenAI.

13:17.240 --> 13:22.360
And we're going to go and do both of them now bearing in mind this is not required, you can also do

13:22.360 --> 13:27.720
the same thing, this analogous website for deep seek and for many others, you could be setting up

13:27.720 --> 13:31.720
your keys in any of them and just follow the same kind of process.

13:31.720 --> 13:33.040
But let's get to that now.

13:33.600 --> 13:35.000
So as I say, it's two steps.

13:35.000 --> 13:40.000
The first of them is to go to the settings menu up here and come down to billing.

13:40.000 --> 13:43.440
And this is where you set up your billing details.

13:43.600 --> 13:48.600
Now you have to apply a credit balance giving OpenAI some money in advance.

13:48.600 --> 13:52.930
And I've given it quite a lot of money right here because I'm doing various different things and you

13:52.930 --> 13:55.690
do not need to give it that much money by any means.

13:55.970 --> 13:57.690
There is a minimum top up.

13:57.690 --> 14:02.330
They require at least $5 as of right now, but they are.

14:02.690 --> 14:04.370
They sometimes have deals.

14:04.410 --> 14:06.490
There's something going on down here that you could read about.

14:06.490 --> 14:11.850
Perhaps there's some some deal for free tokens right now, but there's different deals and you can press

14:11.850 --> 14:15.610
the Add to credit balance to put in your $5 up front.

14:15.650 --> 14:18.130
That's that's, I believe, required right now.

14:18.370 --> 14:22.890
And we'll only spend a few dollars of that on this course, and that you have complete flexibility and

14:22.890 --> 14:28.050
you can come back and watch to what extent you're spending your credits as we go through.

14:28.210 --> 14:30.850
But but I suggest doing that, putting in your $5.

14:30.850 --> 14:33.850
But bear in mind, if you don't want to, you don't need to.

14:34.090 --> 14:37.650
Once you've done that, you then turn to the API keys.

14:37.690 --> 14:44.250
Part of this, which is where you get to see the key that you've set up that you will use for this project.

14:44.530 --> 14:49.210
And if you already have a key, then then great, you're in good shape, but I assume you don't, in

14:49.210 --> 14:50.770
which case you press this green.

14:50.770 --> 14:53.100
Create new secret key.

14:53.460 --> 14:56.420
You leave, you give it a name that just doesn't matter.

14:56.420 --> 14:57.900
Just for your future reference.

14:57.900 --> 15:03.980
And then for projects, be sure to choose default Project and leave it as all permissions and then press

15:03.980 --> 15:05.940
Create Secret Key.

15:06.300 --> 15:07.540
It's then going to prompt you.

15:07.540 --> 15:09.980
It's going to bring up your key that you'll use.

15:09.980 --> 15:11.940
And you can copy it into your clipboard.

15:11.980 --> 15:16.340
And we're going to paste it in a moment into cursor in a place where we were going to use it.

15:16.740 --> 15:17.900
Now here's the thing.

15:17.900 --> 15:20.900
Here is a nasty gotcha to be aware of.

15:21.180 --> 15:27.500
It's very tempting to take your key and paste it into a useful app, like, like the notepad or something,

15:27.780 --> 15:30.260
but there's a trap there you need to be careful of.

15:30.460 --> 15:33.140
Some programs, I think, including notepad.

15:33.300 --> 15:39.660
If you paste in some text and then press enter, it changes some of the characters in that text to be

15:39.660 --> 15:45.340
nicer, formatted like it turns hyphens into long hyphens, and that can be really hard to spot.

15:45.340 --> 15:48.140
And that will then basically invalidate your key.

15:48.180 --> 15:52.630
Your key will now be a different set of letters or characters, and when you try and use that in your

15:52.630 --> 15:56.550
file, it's going to fail and it's going to be almost impossible to track it down because it's going

15:56.590 --> 15:57.430
to look perfect.

15:57.430 --> 15:58.790
And it's really frustrating.

15:58.790 --> 16:00.910
And a lot of people have had that problem.

16:00.910 --> 16:06.670
So I urge you just to copy it into the clipboard and paste it straight into cursor in the next step.

16:06.790 --> 16:09.070
And it is good to to keep a copy of it somewhere.

16:09.070 --> 16:14.310
Just be really careful to make sure you do it in a way that doesn't overwrite your characters, so that

16:14.310 --> 16:18.270
you're keeping the original and and it feels in good shape.

16:18.270 --> 16:23.390
So there is my, uh, public service announcement about about things to watch out for with keys.

16:23.390 --> 16:29.070
But hopefully you've set up your key, you've copied it to the clipboard, you've maybe made a backup

16:29.070 --> 16:30.350
somewhere safe.

16:30.550 --> 16:32.630
And now we're ready for the next part.

16:33.270 --> 16:36.230
And this is step five of the environment set up.

16:36.230 --> 16:37.030
And it's the last step.

16:37.030 --> 16:38.470
We're almost completely done.

16:38.470 --> 16:41.270
We're back in cursor again looking at cursor.

16:41.430 --> 16:45.270
And I'm just going to I'm going to press an X here to get rid of that screen.

16:45.270 --> 16:47.550
I'm going to press an X to get rid of my terminal.

16:47.550 --> 16:50.510
So we're looking at a nice clean page here.

16:50.920 --> 16:51.320
now.

16:51.360 --> 16:53.280
Down here in the explorer.

16:53.320 --> 16:55.160
I've collapsed all these folders.

16:55.160 --> 16:59.840
I'm going to right click and say new file at the bottom here.

16:59.840 --> 17:01.520
And I'm going to create a new file.

17:01.520 --> 17:03.720
And I'm going to give it a very precise name.

17:03.720 --> 17:06.200
And you have to give it exactly the same name.

17:06.200 --> 17:09.960
If you get this wrong by a single character, then you're going to have problems later.

17:10.000 --> 17:11.880
So so be careful with this one.

17:11.880 --> 17:19.200
It starts with a dot, the period, a full stop, and then the letters E, dot, E, env.

17:19.200 --> 17:21.520
And it's got to be called exactly that.

17:21.760 --> 17:23.120
And you'll see why later.

17:23.120 --> 17:30.080
But basically this this is a file which is often used to store environment variables, things that will

17:30.080 --> 17:36.080
load into our environment as variables that we'll use for things like passwords and tokens and keys.

17:36.240 --> 17:38.760
And it doesn't get checked into GitHub.

17:38.760 --> 17:42.400
So it stays as a private file just for you.

17:42.400 --> 17:45.080
And it's a common technique for managing these kinds of things.

17:45.120 --> 17:46.520
And it's called dot env.

17:46.520 --> 17:47.960
And it has to be called exactly that.

17:48.320 --> 17:53.730
So what we can now do is type into here a key that we want to to remember.

17:53.730 --> 17:57.530
And in particular the one that we want to remember is OpenAI's key.

17:57.650 --> 18:01.650
And it's it's OpenAI underscore API underscore key.

18:01.650 --> 18:05.490
And it's actually prompting me right here for it because cursor is that clever and knows what we're

18:05.490 --> 18:06.050
trying to do.

18:06.090 --> 18:08.450
And we can just press Tab to fill it all the way in.

18:08.450 --> 18:09.370
But I'm not going to do that.

18:09.370 --> 18:17.450
I am going to type OpenAI API key equals no quote marks, no spaces, no spaces before or after and

18:17.450 --> 18:17.850
people.

18:17.850 --> 18:25.130
One common mistake is that sometimes people say open API key or OpenAI key, but it's not that it's

18:25.130 --> 18:26.810
OpenAI API key.

18:26.810 --> 18:28.290
And it's got to be exactly this.

18:28.290 --> 18:31.930
I think this is one of the only things in this course where every letter needs to be right.

18:31.970 --> 18:33.410
And so be careful.

18:33.410 --> 18:37.810
This is like 90% of the reason that people are frustrated in environment setup.

18:37.810 --> 18:39.450
Is this this very file.

18:39.890 --> 18:40.410
All right.

18:40.410 --> 18:47.090
What comes next is you simply paste in here exactly the key that came from OpenAI.

18:47.090 --> 18:55.980
And it should begin ESC dash proj dash, and then a bunch of letters and numbers with maybe an underscore

18:56.020 --> 18:56.940
symbol as well.

18:56.940 --> 18:58.180
And that should all come there.

18:58.220 --> 19:06.260
A bunch of them, not 123456780 as it has here in cursor, but a real key and not SK proj, and then

19:06.260 --> 19:09.220
another SK proj or anything like that that some people have done.

19:09.220 --> 19:10.580
It's got to be just right.

19:10.580 --> 19:14.340
Sorry to go on about it, but this is such a cause of problems.

19:14.340 --> 19:19.740
So so make sure that that key, the thing that's showing in purple here, is exactly the key that you

19:19.740 --> 19:20.820
took from open AI.

19:20.820 --> 19:22.340
And it should look perfect.

19:22.340 --> 19:26.180
And once you've done that you do command S to save this file.

19:26.180 --> 19:28.260
And you'll be in great shape.

19:29.340 --> 19:35.300
And at that point that will then be the end of step five of the environment setup.

19:35.300 --> 19:40.260
We will have done environment setup and we're good to get into the to the actual project.

19:40.300 --> 19:41.020
How about that.

19:41.020 --> 19:42.380
So congratulations.

19:42.380 --> 19:42.780
Thank you.

19:42.820 --> 19:44.100
Hopefully this is now all going to work.

19:44.100 --> 19:45.180
We'll soon find out.

19:45.180 --> 19:49.700
I will see you in the next lecture when we reconvene with team PC.
