1
00:00:00,900 --> 00:00:05,215
In a few minutes, Codex CLI will
be working in your project folder,

2
00:00:05,265 --> 00:00:06,969
and you'll know how
to keep it in check.

3
00:00:09,850 --> 00:00:12,839
AI for Research Efficiency.

4
00:00:12,889 --> 00:00:16,137
Episode 2.2: Install Codex CLI.

5
00:00:17,000 --> 00:00:22,684
Last time: a terminal, a project folder,
Git and Python, and an account.

6
00:00:22,881 --> 00:00:26,871
In this episode: install Codex CLI,

7
00:00:27,283 --> 00:00:29,719
sign in,
run it in your project folder,

8
00:00:29,769 --> 00:00:31,473
and check each step
before you speed up.

9
00:00:34,100 --> 00:00:37,322
Step one: in PowerShell,
paste this line.

10
00:00:37,633 --> 00:00:41,145
It starts PowerShell with permission
to run OpenAI's installer,

11
00:00:41,356 --> 00:00:43,237
then downloads it and runs it.

12
00:00:46,377 --> 00:00:49,349
On a Mac, use the second line,
in Terminal.

13
00:00:49,761 --> 00:00:51,948
Both lines are on the companion page.

14
00:00:55,700 --> 00:00:58,849
Step two: close the terminal,
open a new one,

15
00:00:59,000 --> 00:01:01,738
and type codex --version.

16
00:01:02,130 --> 00:01:03,794
You should see a version number.

17
00:01:07,700 --> 00:01:10,425
Step three:
go into your project folder with

18
00:01:10,475 --> 00:01:13,980
cd agent-work, and type codex.

19
00:01:16,321 --> 00:01:20,082
Always start it in a project folder,
never in your home folder.

20
00:01:22,100 --> 00:01:26,325
Step four: choose how to sign in:
with your ChatGPT plan,

21
00:01:26,555 --> 00:01:30,459
or with an OpenAI API key
you pay for as you use it.

22
00:01:31,779 --> 00:01:35,566
Your browser opens. Sign in there,
and you're back in the terminal.

23
00:01:38,900 --> 00:01:42,483
Step five: Codex asks whether
to trust this folder.

24
00:01:42,813 --> 00:01:45,696
It's your project folder:
trust and continue.

25
00:01:45,816 --> 00:01:46,578
On Windows,

26
00:01:46,628 --> 00:01:50,566
it also sets up a sandbox that keeps
its commands inside this folder.

27
00:01:51,017 --> 00:01:53,432
If your computer won't
allow the stronger sandbox,

28
00:01:53,783 --> 00:01:56,527
Codex uses a weaker one,
which still works.

29
00:02:00,500 --> 00:02:04,767
Step six: type slash permissions
to choose how much it may do.

30
00:02:05,318 --> 00:02:08,062
While you learn,
choose Ask for approval.

31
00:02:08,222 --> 00:02:10,646
It works on its own inside
your project folder,

32
00:02:10,756 --> 00:02:12,649
and asks before going beyond it.

33
00:02:12,980 --> 00:02:15,593
In a folder without Git,
it starts read-only,

34
00:02:15,744 --> 00:02:18,167
so it can look,
but not change anything.

35
00:02:22,100 --> 00:02:25,702
Step seven: ask it something.
What's in this folder?

36
00:02:28,483 --> 00:02:31,620
It looks through the folder,
and answers in plain words.

37
00:02:36,500 --> 00:02:38,984
Step eight:
when you trust it with a task,

38
00:02:39,135 --> 00:02:41,890
choose Approve for me
in slash permissions.

39
00:02:42,301 --> 00:02:46,748
An automatic reviewer answers its
requests, and the work goes much faster.

40
00:02:46,948 --> 00:02:51,855
OpenAI's own advice: for most work,
start with Ask for approval.

41
00:02:55,700 --> 00:03:01,255
Pause now: install Codex CLI, open a
new terminal, and check the version.

42
00:03:07,700 --> 00:03:12,932
So: one line to install, a new terminal,
your project folder, sign in,

43
00:03:13,223 --> 00:03:18,374
trust the folder, Ask for approval first,
then Approve for me when you trust it.

44
00:03:19,500 --> 00:03:21,286
Next: a worked example.

45
00:03:21,779 --> 00:03:26,113
Agents read a whole literature folder
in parallel, and check every claim.
