OpenAI Unveils Codex CLI, an Open-Source Agentic Coding Assistant That Can Operate Locally

OpenAI says Codex CLI is aimed at developers who code in the terminal and want an AI tool that understands their repository.

Advertisement
Written by Akash Dutta, Edited by Siddharth Suvarna | Updated: 18 April 2025 18:26 IST
Highlights
  • OpenAI’s Codex CLI is an open‑source command‑line tool
  • Codex CLI comes with zero setup and activates with an OpenAI API key
  • The AI agent can also execute shell commands in full-auto mode

By default, Codex CLI uses the o4-mini AI model for fast reasoning

Photo Credit: Unsplash/Goran Ivos

OpenAI introduced an open‑source artificial intelligence (AI) command‑line tool on Thursday that can operate within a user's terminal. Dubbed Codex CLI, it is essentially an AI agent that can perform various coding tasks and can even autonomously execute commands, all within a sandboxed local system. The tool does not require any installation setup, and can use multiple OpenAI AI models. However, the open-source project is currently under active development, and the AI firm warns that it might not be entirely stable.

OpenAI's New Open-Source AI Agent Can Code Locally

The San Francisco-based AI firm introduced Codex CLI in a post on its website. Calling it a “lightweight coding agent,” the company said it can read, modify, and run code in a user's terminal. The AI agent runs locally and does not require any Internet connectivity to function. It officially supports macOS and Linux, however, Windows support is experimental and might require Windows Subsystem for Linux (WSL).

Advertisement

OpenAI's Codex CLI is an interesting project. Today, developers have two options if they want to use AI systems for coding-related tasks. They can either opt for a cloud-based closed AI system, which would require them to upload their code to the cloud and pay for the service. Or, they can opt for an open-source AI model that can be downloaded on their workstation, but it is generally less powerful compared to what companies offer.

Codex CLI offers a midpoint between these two solutions. OpenAI says the AI agent can operate locally, meaning coders do not have to share their repository with the AI firm. This ensures data security for the developers. On the other hand, the AI agent runs on the company's powerful o4-mini and other reasoning models, offering flagship-tier performance.

“Because the CLI runs locally, your source code never leaves your environment unless you choose to share it,” the company said on its website. However, user prompts, high-level context, and optional differential summaries are sent to the model for output generation.

The AI agent does not require any installation setup, instead, it can be activated using an OpenAI application programming interface (API) key. By default, Codex CLI uses the o4-mini AI model, but the company is also letting users switch between multiple other options. Notably, since it requires an API key, the AI agent is not free, even if it can be run locally. API charges will apply.

Advertisement

There are three modes that developers can use. The Suggest mode can read files in the user's repository, propose edits and shell commands, however, it will need permission before making changes or executing commands. In the Auto Edit mode, it can read and write files automatically, but it will still ask for permission before running shell commands.

Finally, in the Full Auto mode, the AI agent can read, write, and execute commands autonomously inside a sandboxed, network-disabled environment scoped to the current directory. Codex CLI can be accessed from OpenAI's GitHub listing.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement

Related Stories

Popular Mobile Brands
  1. Oppo Reno 16 Price in India Rises, New 128GB Model Launched
  2. Apple Music's New Branding Uses Vibrations to Turn Music Into Visuals
  3. Vivo Y600 With 10,000mAh Battery Revealed; Launch Date Set for October 30
  4. Apple's iPhone Duo Hands-On Video Shows Soft Spot Around Display Crease
  5. Infinix GT 50 Pro Gaming Bundle Revealed Ahead of October 27 India Launch
  1. Bitcoin Holds Near $83,000 as Tesla Keeps 11,509 BTC Holdings
  2. OnePlus Turbo Pro Tipped to Launch With 185Hz Refresh Rate Display, 200-Megapixel Rear Camera
  3. Claude Duet AI Assistant Research Preview Powered by Opus 5.5 Model Released as a Standalone iOS, Android App
  4. Vivo Y600 Launch Date Confirmed for October 30 in China, 10,000mAh Battery Revealed
  5. Apple's iPhone Duo Hands-On Video Shows Soft Spot Around Display Crease
  6. Oppo Reno 16 Price in India Hiked by Up to Rs. 7,000, New 128GB Variant Introduced
  7. iQOO 16R Spotted on TKDN Certification Website, Launch Could Be Imminent
  8. Vivo X500 Ultra Could Pack a Larger 200-Megapixel Telephoto Sensor, Tipster Claims
  9. Oppo K14 Plus Price Hiked by Up to Rs. 5,000 in India Within Weeks of Launch
  10. EA Shuts Down BioWare, Cancels Next Mass Effect and Lays Off 400 Workers Weeks After Going Private
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.