Codex CLI
From Notes_Wiki
Revision as of 06:34, 31 August 2025 by Saurabh (talk | contribs) (Created page with "Home > Local system based AI tools > AI Programming tools > Codex CLI I found Codex to be best among Open Code Terminal, Gemini CLI and Qwen CLI tried so far. =Install Codex CLI= # Install using: #:<pre> #:: npm install -g @openai/codex #:</pre> # Authenticate: Export your OpenAI API key #:<pre> #:: export OPENAI_API_KEY="<OAI_KEY>" #:</pre> #:: Add in ~/.bashrc # For current session use #:<pre> #:: . ~/.bashrc #:</pre> # Run...")
Home > Local system based AI tools > AI Programming tools > Codex CLI
I found Codex to be best among Open Code Terminal, Gemini CLI and Qwen CLI tried so far.
Install Codex CLI
- Install using:
- npm install -g @openai/codex
- Authenticate: Export your OpenAI API key
- export OPENAI_API_KEY="<OAI_KEY>"
-
- Add in ~/.bashrc
- For current session use
- . ~/.bashrc
- Run in full automatic mode via
- codex --full-auto
- We can set required model with higher limits or desired pricing while running using:
- codex --full-auto --model gpt-5-mini
Internal commands in Codex
- /approvals
- Enable full changes
- /model
- Select GPT-5 medium
- /init
- Study current folder to create AGENTS.md file with description of project for future use
- /new
- Create a new chat session. Forget previous chat
Costing
Look at limits for your tier via https://platform.openai.com/settings/organization/limits and also pricing per model at https://openai.com/api/pricing/
Refer:
- https://help.openai.com/en/articles/11096431-openai-codex-cli-getting-started
- https://github.com/openai/codex/blob/main/docs/config.md
Home > Local system based AI tools > AI Programming tools > Codex CLI