← back to posts

Codex CLI란?

OpenAI의 로컬 터미널 코딩 에이전트 Codex CLI의 개요와 설치, 실행 방법

Codex

Codex CLI 란

Codex CLI is OpenAI’s coding agent that you can run locally from your terminal. It can read, change, and run code on your machine in the selected directory. It’s open source and built in Rust for speed and efficiency.

https://developers.openai.com/codex/cli

CLI setup

install

Install the Codex CLI with npm.

npm i -g @openai/codex

run

Run Codex in a terminal. It can inspect your repository, edit files, and run commands.

codex

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

See the pricing page if you're not sure which plans include Codex access.

upgrade

New versions of the Codex CLI are released regularly. See the changelog for release notes. To upgrade with npm, run:

npm i -g @openai/codex@latest