<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: VibeiDE.dev</title>
    <description>The latest articles on DEV Community by VibeiDE.dev (@vibeide-dev).</description>
    <link>https://dev.to/vibeide-dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4165048%2F9930b650-3bed-4581-84cf-5579e7cff204.png</url>
      <title>DEV Community: VibeiDE.dev</title>
      <link>https://dev.to/vibeide-dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vibeide-dev"/>
    <language>en</language>
    <item>
      <title>Install the OpenAI Codex CLI on Mac, Windows or Linux</title>
      <dc:creator>VibeiDE.dev</dc:creator>
      <pubDate>Tue, 06 Oct 2026 00:10:47 +0000</pubDate>
      <link>https://dev.to/vibeide-dev/install-the-openai-codex-cli-on-mac-windows-or-linux-4m5h</link>
      <guid>https://dev.to/vibeide-dev/install-the-openai-codex-cli-on-mac-windows-or-linux-4m5h</guid>
      <description>&lt;p&gt;The Codex CLI is OpenAI's coding agent for the terminal. It reads your repository, edits files, runs commands and explains what it did, all from one prompt. Installing it takes one command; using it well takes a few choices most guides skip: how to sign in, how much the agent may do without asking, how to keep it updated and how to run it from scripts.&lt;/p&gt;

&lt;p&gt;This guide covers all of it, from the install command for macOS, Linux or Windows to checking and updating your version, your first session, the sandbox and approval settings, configuration, and &lt;code&gt;codex exec&lt;/code&gt; for automation. Commands are based on the official &lt;a href="https://github.com/openai/codex" rel="noopener noreferrer"&gt;Codex repository&lt;/a&gt; and &lt;a href="https://learn.chatgpt.com/docs/developer-commands?surface=cli" rel="noopener noreferrer"&gt;command reference&lt;/a&gt; as of October 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install the Codex CLI
&lt;/h2&gt;

&lt;p&gt;Pick one method. They all install the same &lt;code&gt;codex&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;npm&lt;/strong&gt; (any system with Node.js):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @openai/codex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Homebrew&lt;/strong&gt; on macOS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--cask&lt;/span&gt; codex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Install script&lt;/strong&gt; on macOS or Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://chatgpt.com/codex/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Windows PowerShell&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;powershell&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ExecutionPolicy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;ByPass&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"irm https://chatgpt.com/codex/install.ps1 | iex"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also download a binary for macOS (arm64 or x86_64) or Linux (x86_64 or arm64) from the latest GitHub release, extract it and rename the executable to &lt;code&gt;codex&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check that it worked
&lt;/h3&gt;

&lt;p&gt;Open a new terminal and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it prints a version number, the install worked. If your shell says &lt;code&gt;codex: command not found&lt;/code&gt;, the new terminal did not pick up the updated PATH yet; close it and open another. With npm, check that your global npm bin directory is on PATH (&lt;code&gt;npm prefix -g&lt;/code&gt; shows where global packages go).&lt;/p&gt;

&lt;h3&gt;
  
  
  Codex CLI on Windows
&lt;/h3&gt;

&lt;p&gt;On Windows, the Codex CLI runs natively in PowerShell with its own Windows sandbox, so you do not need WSL or a virtual machine. According to the &lt;a href="https://learn.chatgpt.com/docs/windows/windows-sandbox" rel="noopener noreferrer"&gt;Windows sandbox documentation&lt;/a&gt;, the sandbox has two modes you can set in &lt;code&gt;config.toml&lt;/code&gt;: &lt;code&gt;elevated&lt;/code&gt; (preferred, uses a dedicated lower-privilege sandbox user and firewall rules) and &lt;code&gt;unelevated&lt;/code&gt; (a fallback that uses a restricted token from your own user):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="nn"&gt;[windows]&lt;/span&gt;
&lt;span class="py"&gt;sandbox&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"elevated"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use WSL2 instead when your toolchain already lives in Linux or you need Linux-native tools. In that case, install Codex inside the WSL distribution with the npm or install script method, and start it from your Linux shell.&lt;/p&gt;

&lt;h2&gt;
  
  
  Update the Codex CLI
&lt;/h2&gt;

&lt;p&gt;Codex changes quickly, so update regularly. The CLI has its own update command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It updates Codex to the latest version when the installed release supports it. If you prefer to update through the package manager you installed with, use the matching command:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Installed with&lt;/th&gt;
&lt;th&gt;Update command&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Codex itself&lt;/td&gt;
&lt;td&gt;&lt;code&gt;codex update&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;npm&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npm install -g @openai/codex@latest&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Homebrew&lt;/td&gt;
&lt;td&gt;&lt;code&gt;brew upgrade --cask codex&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub release binary&lt;/td&gt;
&lt;td&gt;Download the newer release and replace the &lt;code&gt;codex&lt;/code&gt; file&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Run &lt;code&gt;codex --version&lt;/code&gt; afterwards to confirm the new version. Stick to one install method per machine: two copies on PATH (for example one from npm and one from Homebrew) is the usual reason an update seems to do nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sign in
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;codex&lt;/code&gt; in any folder. The first run asks how you want to sign in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sign in with ChatGPT&lt;/strong&gt; uses your ChatGPT plan. The README lists Plus, Pro, Business, Edu and Enterprise plans. Usage then counts against that plan's Codex allowance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API key&lt;/strong&gt; bills usage to an OpenAI API account and needs a little more setup. From a script, &lt;code&gt;codex login --with-api-key&lt;/code&gt; reads the key from stdin, for example &lt;code&gt;printenv OPENAI_API_KEY | codex login --with-api-key&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which plans include Codex and how much usage they allow changes over time, so check the official &lt;a href="https://learn.chatgpt.com/codex/pricing" rel="noopener noreferrer"&gt;Codex pricing page&lt;/a&gt; for current details. You can switch accounts later with &lt;code&gt;codex logout&lt;/code&gt; and &lt;code&gt;codex login&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your first session
&lt;/h2&gt;

&lt;p&gt;Start Codex from the root of a project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/code/my-app
codex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run &lt;code&gt;/init&lt;/code&gt;. It generates an &lt;code&gt;AGENTS.md&lt;/code&gt; scaffold in the current directory, the file Codex reads at the start of every run to learn your build commands, layout and conventions. Edit it down to what matters; our guide to &lt;a href="https://vibeide.dev/blog/agents-md-codex/" rel="noopener noreferrer"&gt;AGENTS.md for Codex&lt;/a&gt; explains how Codex discovers and combines these files.&lt;/p&gt;

&lt;p&gt;Now give Codex a small, concrete task, such as "add a test for the empty cart case in &lt;code&gt;src/cart.ts&lt;/code&gt;". Watch what it reads and proposes before you hand it anything larger.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://developers.openai.com/codex/cli/slash-commands" rel="noopener noreferrer"&gt;slash commands&lt;/a&gt; you will use most:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/init&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Generate an AGENTS.md scaffold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/model&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Choose the model and reasoning effort&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/plan&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Switch to plan mode before editing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/permissions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Set what Codex can do without asking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/diff&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Show the git diff, including untracked files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/review&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ask Codex to review your working tree&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Show session configuration and token usage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/compact&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Summarize the conversation to free context&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/resume&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Continue a saved conversation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/new&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Start a fresh conversation in the same session&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Moving from Claude Code? &lt;code&gt;/import&lt;/code&gt; brings over your Claude Code setup, project files and recent chats.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sandbox and approvals: how much Codex may do
&lt;/h2&gt;

&lt;p&gt;Two separate settings decide how freely Codex acts. Getting them right is the difference between a helpful agent and one that either asks about everything or touches things it should not.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;sandbox&lt;/strong&gt; limits what commands can technically do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;read-only&lt;/code&gt;: Codex can read files but not write them. Good for exploring an unfamiliar codebase or asking questions.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;workspace-write&lt;/code&gt;: Codex can edit files inside the project. This is the default for interactive sessions and the right choice for most work.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;danger-full-access&lt;/code&gt;: no sandbox at all. Use it only in a disposable environment, such as a container you can throw away.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;strong&gt;approval policy&lt;/strong&gt; decides when Codex stops to ask you: &lt;code&gt;on-request&lt;/code&gt; pauses for approval when Codex needs to go beyond the sandbox, and &lt;code&gt;never&lt;/code&gt; never pauses.&lt;/p&gt;

&lt;p&gt;Set both per run with flags:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nt"&gt;--sandbox&lt;/span&gt; read-only
codex &lt;span class="nt"&gt;--sandbox&lt;/span&gt; workspace-write &lt;span class="nt"&gt;--ask-for-approval&lt;/span&gt; on-request
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The older &lt;code&gt;--full-auto&lt;/code&gt; flag is deprecated; use &lt;code&gt;--sandbox workspace-write&lt;/code&gt; instead. There is also &lt;code&gt;--dangerously-bypass-approvals-and-sandbox&lt;/code&gt; (alias &lt;code&gt;--yolo&lt;/code&gt;), which removes both protections. Treat it like running an unknown script with your own permissions. Our &lt;a href="https://vibeide.dev/blog/codex-sandbox/" rel="noopener noreferrer"&gt;guide to the Codex sandbox&lt;/a&gt; goes deeper into network access, extra writable folders and when full access is reasonable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Useful flags
&lt;/h2&gt;

&lt;p&gt;A few flags make everyday runs faster:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-m&lt;/code&gt; or &lt;code&gt;--model&lt;/code&gt; picks a model for this run instead of the configured one.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-C&lt;/code&gt; or &lt;code&gt;--cd&lt;/code&gt; sets the working directory, handy when you launch Codex from elsewhere.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-i&lt;/code&gt; or &lt;code&gt;--image&lt;/code&gt; attaches screenshots or design files to your prompt.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--search&lt;/code&gt; lets Codex use live web search for the task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other subcommands worth knowing: &lt;code&gt;codex resume --last&lt;/code&gt; reopens your most recent session (our &lt;a href="https://vibeide.dev/blog/codex-resume/" rel="noopener noreferrer"&gt;guide to codex resume&lt;/a&gt; covers the picker, forks and resuming scripted runs), &lt;code&gt;codex mcp&lt;/code&gt; manages Model Context Protocol servers, and &lt;code&gt;codex completion&lt;/code&gt; generates shell completions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configure Codex once
&lt;/h2&gt;

&lt;p&gt;Instead of repeating flags, put your defaults in &lt;code&gt;~/.codex/config.toml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="py"&gt;sandbox_mode&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"workspace-write"&lt;/span&gt;
&lt;span class="py"&gt;approval_policy&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"on-request"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any single run can still override a setting with &lt;code&gt;-c key=value&lt;/code&gt;, and &lt;code&gt;/debug-config&lt;/code&gt; shows which configuration layers are active when something behaves unexpectedly. The same folder holds your global &lt;code&gt;AGENTS.md&lt;/code&gt;, for personal preferences that apply to every repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automate with codex exec
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;codex exec&lt;/code&gt; runs a task without the interactive interface. It is how you use Codex from shell scripts, git hooks and CI jobs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"summarize the changes on this branch"&lt;/span&gt;
codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--json&lt;/span&gt; &lt;span class="s2"&gt;"list the failing tests and their causes"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; events.jsonl
codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--sandbox&lt;/span&gt; workspace-write &lt;span class="s2"&gt;"fix the failing test in tests/api.test.ts"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;codex exec&lt;/code&gt; runs in a read-only sandbox by default. Add &lt;code&gt;--sandbox workspace-write&lt;/code&gt; when the task must edit files.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--json&lt;/code&gt; streams machine-readable events, so a script can react to what Codex did.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-o&lt;/code&gt; or &lt;code&gt;--output-last-message&lt;/code&gt; writes only the final message to a file, which is ideal for summaries and reports.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--skip-git-repo-check&lt;/code&gt; lets Codex run outside a git repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Our full guide to &lt;a href="https://vibeide.dev/blog/codex-exec/" rel="noopener noreferrer"&gt;codex exec&lt;/a&gt; covers stdin input, &lt;code&gt;--output-schema&lt;/code&gt;, &lt;code&gt;codex exec resume&lt;/code&gt; and running Codex in CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do I check which Codex version I have?
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;codex --version&lt;/code&gt;. Compare it with the latest release on the &lt;a href="https://github.com/openai/codex/releases" rel="noopener noreferrer"&gt;Codex GitHub releases page&lt;/a&gt; if you are unsure whether an update worked.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I update the Codex CLI?
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;codex update&lt;/code&gt;, or update with the package manager you installed with: &lt;code&gt;npm install -g @openai/codex@latest&lt;/code&gt; or &lt;code&gt;brew upgrade --cask codex&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the Codex CLI work on Windows?
&lt;/h3&gt;

&lt;p&gt;Yes. Install it with the PowerShell command above and it runs natively with a Windows sandbox. Use WSL2 if your project and tools already live in Linux.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I start Codex after installing it?
&lt;/h3&gt;

&lt;p&gt;Change into your project folder and run &lt;code&gt;codex&lt;/code&gt;. The first run asks you to sign in with ChatGPT or an API key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Codex fits next to other agents
&lt;/h2&gt;

&lt;p&gt;Codex is one of several strong terminal agents. If you are deciding between them, our comparisons of &lt;a href="https://vibeide.dev/blog/codex-vs-claude-code/" rel="noopener noreferrer"&gt;Codex vs Claude Code&lt;/a&gt;, &lt;a href="https://vibeide.dev/blog/opencode-vs-codex/" rel="noopener noreferrer"&gt;OpenCode vs Codex&lt;/a&gt; and &lt;a href="https://vibeide.dev/blog/opencode-vs-claude-code/" rel="noopener noreferrer"&gt;OpenCode vs Claude Code&lt;/a&gt; cover model access, sandboxing, instruction files and which tasks suit each. When you hit your plan's usage limit, our page on &lt;a href="https://vibeide.dev/rate-limits/codex/" rel="noopener noreferrer"&gt;Codex rate limits&lt;/a&gt; explains how to plan work around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where VibeiDE fits
&lt;/h2&gt;

&lt;p&gt;VibeiDE is a desktop app that coordinates the Codex, Claude Code and OpenCode CLIs you already installed, and you sign in to Codex with your own account. Codex runs in an embedded terminal that shows the original CLI interface, so everything in this guide works the same inside it. Each project gets its own task queue, the usage display shows provider-reported usage and reset countdowns where Codex reports them, and when Codex reaches a usage limit the terminal explains that you can continue in the same terminal after the reset. See the &lt;a href="https://vibeide.dev/for/codex/" rel="noopener noreferrer"&gt;Codex page&lt;/a&gt; or &lt;a href="https://vibeide.dev/docs/quick-start/" rel="noopener noreferrer"&gt;set it up in about three minutes&lt;/a&gt; with a 14-day trial and no card.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install with npm, Homebrew, the install script or PowerShell; all give you the same &lt;code&gt;codex&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;Check the install with &lt;code&gt;codex --version&lt;/code&gt; and update with &lt;code&gt;codex update&lt;/code&gt; or your package manager.&lt;/li&gt;
&lt;li&gt;On Windows, Codex runs natively with its own sandbox; use WSL2 only when your tools live in Linux.&lt;/li&gt;
&lt;li&gt;Sign in with a ChatGPT plan or an API key, and check the official pricing page for current plans.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;/init&lt;/code&gt; first so Codex has an AGENTS.md to work from.&lt;/li&gt;
&lt;li&gt;Keep the sandbox at &lt;code&gt;workspace-write&lt;/code&gt; for daily work and &lt;code&gt;read-only&lt;/code&gt; for exploring; avoid &lt;code&gt;--yolo&lt;/code&gt; outside disposable environments.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;codex exec&lt;/code&gt; for scripts and CI; it starts read-only unless you raise the sandbox.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://vibeide.dev/blog/install-codex-cli/" rel="noopener noreferrer"&gt;vibeide.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>codex</category>
      <category>ai</category>
      <category>cli</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
