Favicon of codex

codex

Terminal-based coding agent from OpenAI that reads, edits, and executes code in your local repository with interactive sessions, slash commands, and git-based change tracking.

Codex CLI is a terminal coding agent from OpenAI designed for developers who want to work directly in their command line. It connects to your local repository and can read, edit, and execute code while you stay in the terminal.

Key capabilities include interactive terminal sessions with slash commands for common tasks, planning and resuming chats to continue work across sessions, and configurable model selection to choose the right AI model for your needs. The tool provides git diff integration to review all changes before applying them, file mentions to reference specific code sections, and approval modes to maintain control over modifications.

Additional features include:

  • Image input support for analyzing screenshots and visual references
  • Code review functionality to get feedback on your code
  • Optional web search to find information while coding
  • Token usage display to track API consumption
  • Tool use capabilities to integrate with other CLI tools for searching, API calls, and more
  • Chat compacting to manage long conversations efficiently
  • Undo functionality to revert changes when needed

Codex CLI works best for developers, engineers, designers, and terminal-comfortable coders working on real-world or hobby projects. Install via npm or Homebrew, then run codex to begin. It integrates with your ChatGPT plan or can be used with an API key for flexible authentication options.

Install

Npm
$ npm install -g @openai/codex

Features

JSON outputScriptable

Media

Pros

3
  • Reads, edits, and executes code locally
  • Interactive sessions with slash commands
  • Git-based change tracking

Cons

1
  • Requires sign-in with ChatGPT account or API key setup

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to codex

Favicon

 

  
 
Favicon

 

  
 
Favicon