SpyBara
Go Premium Account
2026
18 Mar 2026, 12:23
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
7 May 2026, 17:08
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
Fri 1 18:29 Sat 2 00:48 Sat 2 06:45 Tue 5 23:00 Thu 7 17:08 Thu 7 20:02 Mon 11 18:00 Tue 12 01:59 Wed 13 00:57 Thu 14 07:00 Thu 14 21:00

After 2026-05-02 06:45 UTC, this monitor no longer uses markdownified HTML/MDX. Comparisons across that boundary can therefore show more extensive diffs.

cli.md +74 −35

Details

5 5 

6ChatGPT Plus, Pro, Business, Edu, and Enterprise plans include Codex. Learn more about [what's included](https://developers.openai.com/codex/pricing).6ChatGPT Plus, Pro, Business, Edu, and Enterprise plans include Codex. Learn more about [what's included](https://developers.openai.com/codex/pricing).

7 7 

8<YouTubeEmbed

9 title="Codex CLI overview"

10 videoId="iqNzfK4_meQ"

11 class="max-w-md"

12/>

13<br />

14 

8## CLI setup15## CLI setup

9 16 

10Choose your package manager17<CliSetupSteps client:load />

11 18 

12npmHomebrew19The Codex CLI is available on macOS, Windows, and Linux. On Windows, run Codex

20 natively in PowerShell with the Windows sandbox, or use WSL2 when you need a

21 Linux-native environment. For setup details, see the{" "}

22 <a href="/codex/windows">Windows setup guide</a>.

13 23 

141. 124If you're new to Codex, read the [best practices guide](https://developers.openai.com/codex/learn/best-practices).

15 25 

16 ### Install26---

17 27 

18 Install the Codex CLI with npm.28## Work with the Codex CLI

19 29 

20 npm install command30<BentoContainer>

31 <BentoContent href="/codex/cli/features#running-in-interactive-mode">

21 32 

22 npm i -g @openai/codexCopy33### Run Codex interactively

232. 2

24 34 

25 ### Run35Run `codex` to start an interactive terminal UI (TUI) session.

26 36 

27 Run Codex in a terminal. It can inspect your repository, edit files, and run commands.37 </BentoContent>

38 <BentoContent href="/codex/cli/features#models-reasoning">

28 39 

29 Run Codex command40### Control model and reasoning

30 41 

31 codexCopy42Use `/model` to switch between GPT-5.4, GPT-5.3-Codex, and other available models, or adjust reasoning levels.

32 43 

33 The first time you run Codex, you'll be prompted to sign in. Authenticate with your ChatGPT account or an API key.44 </BentoContent>

45 <BentoContent href="/codex/cli/features#image-inputs">

34 46 

35 See the [pricing page](https://developers.openai.com/codex/pricing) if you're not sure which plans include Codex access.47### Image inputs

363. 3

37 48 

38 ### Upgrade49Attach screenshots or design specs so Codex reads them alongside your prompt.

39 50 

40 New versions of the Codex CLI are released regularly. See the [changelog](https://developers.openai.com/codex/changelog) for release notes. To upgrade with npm, run:51 </BentoContent>

52 <BentoContent href="/codex/cli/features#image-generation">

41 53 

42 npm upgrade command54### Image generation

43 55 

44 npm i -g @openai/codex@latestCopy56Generate or edit images directly in the CLI, and attach references when you want Codex to iterate on an existing asset.

45 57 

46The Codex CLI is available on macOS and Linux. Windows support is58 </BentoContent>

47experimental. For the best Windows experience, use Codex in a WSL workspace

48and follow our [Windows setup guide](https://developers.openai.com/codex/windows).

49 59 

50If you're new to Codex, read the [best practices guide](https://developers.openai.com/codex/learn/best-practices).60 <BentoContent href="/codex/cli/features#running-local-code-review">

51 61 

62### Run local code review

52 63 

53## Work with the Codex CLI64Get your code reviewed by a separate Codex agent before you commit or push your changes.

65 

66 </BentoContent>

67 

68 <BentoContent href="/codex/subagents">

69 

70### Use subagents

71 

72Use subagents to parallelize complex tasks.

73 

74 </BentoContent>

75 

76 <BentoContent href="/codex/cli/features#web-search">

77 

78### Web search

79 

80Use Codex to search the web and get up-to-date information for your task.

81 

82 </BentoContent>

83 

84 <BentoContent href="/codex/cli/features#working-with-codex-cloud">

85 

86### Codex Cloud tasks

87 

88Launch a Codex Cloud task, choose environments, and apply the resulting diffs without leaving your terminal.

89 

90 </BentoContent>

54 91 

55[### Run Codex interactively92 <BentoContent href="/codex/noninteractive">

56 93 

57Run `codex` to start an interactive terminal UI (TUI) session.](https://developers.openai.com/codex/cli/features#running-in-interactive-mode)[### Control model and reasoning94### Scripting Codex

58 95 

59Use `/model` to switch between GPT-5.4, GPT-5.3-Codex, and other available models, or adjust reasoning levels.](https://developers.openai.com/codex/cli/features#models-reasoning)[### Image inputs96Automate repeatable workflows by scripting Codex with the `exec` command.

60 97 

61Attach screenshots or design specs so Codex reads them alongside your prompt.](https://developers.openai.com/codex/cli/features#image-inputs)[### Run local code review98 </BentoContent>

99 <BentoContent href="/codex/mcp">

62 100 

63Get your code reviewed by a separate Codex agent before you commit or push your changes.](https://developers.openai.com/codex/cli/features#running-local-code-review)[### Use subagents101### Model Context Protocol

64 102 

65Use subagents to parallelize complex tasks.](https://developers.openai.com/codex/subagents)[### Web search103Give Codex access to additional third-party tools and context with Model Context Protocol (MCP).

66 104 

67Use Codex to search the web and get up-to-date information for your task.](https://developers.openai.com/codex/cli/features#web-search)[### Codex Cloud tasks105 </BentoContent>

68 106

69Launch a Codex Cloud task, choose environments, and apply the resulting diffs without leaving your terminal.](https://developers.openai.com/codex/cli/features#working-with-codex-cloud)[### Scripting Codex107 <BentoContent href="/codex/cli/features#approval-modes">

70 108 

71Automate repeatable workflows by scripting Codex with the `exec` command.](https://developers.openai.com/codex/sdk#using-codex-cli-programmatically)[### Model Context Protocol109### Approval modes

72 110 

73Give Codex access to additional third-party tools and context with Model Context Protocol (MCP).](https://developers.openai.com/codex/mcp)[### Approval modes111Choose the approval mode that matches your comfort level before Codex edits or runs commands.

74 112 

75Choose the approval mode that matches your comfort level before Codex edits or runs commands.](https://developers.openai.com/codex/cli/features#approval-modes)113 </BentoContent>

114</BentoContainer>