Codex Usage Guide

Sep 14, 2025 · 2 min read · 332 Words · -Views -Comments

Codex is OpenAI’s coding tool and also provides a CLI. Because I subscribe to ChatGPT Plus, I can also use Codex. Here is a quick guide to using it.

Prerequisites

You need working network access so it functions normally. For example, the terminal must be able to reach OpenAI services.

Codex paid usage

Claude Code is paid, with two ways to use it:

  1. You need an OpenAI account and a ChatGPT Plus subscription.
  • GPT costs USD $20/month. There are still some lower-price regions, but they may be canceled soon. I currently subscribe via the Turkey App Store at around RMB 100/month.
  1. Use an OpenAI API key and pay per usage.

Codex Usage Guide - Fig 1

Usage

Install codex-cli

npm i -g @openai/codex

Sign in

codex

Follow the prompts to choose a login type and sign in. After a successful login, you can use it normally.

Codex Usage Guide - Fig 2

Permissions

Codex, like cc, will ask for approval on sensitive operations such as scp and rm. If you want to skip these prompts, add this flag when you start the command. Then it will not ask again during the session.

codex --dangerously-bypass-approvals-and-sandbox

Usage limits

Codex and cc both have usage limits.

Local tasks: regular users can send 30 to 150 messages every 5 hours, with a weekly cap. Cloud tasks: temporarily enjoy looser usage limits. Best for: developers who need a few focused programming sessions each week.

For details, see the official docs

Check usage

After installing the Codex extension in VS Code, you can view usage.

Codex Usage Guide - Fig 3

Initial impressions

  1. It is much slower than Claude in terms of speed.
  2. Auto-execution feels better than Claude’s Sonnet model.
  3. Missing features: executing shell commands and automatic CLI upgrades. Both are must-haves for me.
  4. Code generation is still uncertain; I need more use before drawing conclusions.

Final Thoughts

  1. If you already subscribe to GPT Plus, give it a try so you do not waste the benefit.
  2. For general AI CLI users, cc or Codex is a matter of preference. One is enough.
Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover