App Proxy

How to Use Codex CLI: Install, Auth, Daily Tasks, and China Exit Nodes via Clash Verge

How to use Codex CLI: install → auth → small verifiable tasks → in China, fix proxy/region separately from model errors.

Proxy: Codex CLI proxy. IDE: VS Code Codex. ChatGPT web: ChatGPT access. Compare: How to use Claude Code.

Two failures, two fixes

Learn to tell them apart before you touch a model setting. A timeout means the CLI never reached OpenAI—Tun or env vars. An unsupported_country error means it reached OpenAI but from the wrong region—switch the exit node. Mixing them wastes an afternoon.

Set expectations

  • It can edit your disk—use Git.
  • Account/quota ≠ network path.
  • Follow current official install docs for command names.

First session

  1. Install and put the binary on PATH.
  2. Sign in / API key.
  3. Read-only task in the repo root.
  4. One small write + your own verification.

Daily contract

Step You Codex
Scope Allowed paths Stay inside
Accept Test command Match it
Review Diff gate Narrow on feedback

China: timeout vs region

Timeouts → Tun/env + new terminal (proxy guide). Region errors → cleaner exits (latency test). Global pattern: Tun for AI tools.

Wrap-up

Download Clash Verge Rev. For Claude’s workflow see How to use Claude Code.

In China, prepare both proxy and exit region

Install Clash Verge Rev from the download center, pick a suitable exit, then apply Tun or env vars before blaming the model.