Codex CLI: chatting is not the first win

Do not treat Codex CLI as a chat box: the first successful command is a file write on disk.

Installing Codex CLI is not a first run. The first win is a line you can git diff on disk, not a paragraph of explanation in the terminal. When you need to talk through that diff, create a space on tidemeet.

The search is Codex CLI first file edit. Official onboarding is: enter a repo, sign in, then describe a task. Make that first prompt a focused write so success is visible.

Install Sign in First edit command

Do not treat it as a chat box

Codex CLI inspects files, makes edits, and runs tools already on the machine. Use codex interactively; use codex exec for pipelines. The docs say inspect, edit, and run — not a web chat tab.

01

An explanation is not the first win

“Tell me about this project” only reads the repo. The first success is one write: name the file, name the change, and forbid other edits.

02

Check permissions before writes

Use /permissions to see the sandbox and writable roots. Official guidance also says to create git checkpoints before and after a task so you can revert.

03

Billing follows the login

ChatGPT sign-in uses Plus / Pro / Business / Edu / Enterprise credits. An API key bills OpenAI Platform rates. This page does not invent a per-million-token price.

From install to the first write

  1. 1

    Install the CLI

    macOS / Linux: curl -fsSL https://chatgpt.com/codex/install.sh | sh. Windows: the official PowerShell installer. You can also run npm install -g @openai/codex or brew install --cask codex. The same command updates.

  2. 2

    Sign in from a repo

    cd into a real project, run codex or codex login, and choose Sign in with ChatGPT. Headless hosts: codex login --device-auth. Automation: printenv OPENAI_API_KEY | codex login --with-api-key.

  3. 3

    Send one command that edits a file

    Do not stop at an explanation. Run codex "Add a one-line comment at the top of README.md describing how to run tests. Do not change other files." Approve writes with /permissions if asked. Headless: the same sentence with codex exec.

  4. 4

    Accept with git diff

    git diff -- README.md showing that comment is the first successful run. Use /review before you commit. /init can write AGENTS.md if the team needs standing instructions.

1
write counts as a first run
0
extra IDE required
git
checkpoint first
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# Windows: irm https://chatgpt.com/codex/install.ps1 | iex
# npm install -g @openai/codex
# brew install --cask codex

cd ~/code/your-repo
git status
codex login
# printenv OPENAI_API_KEY | codex login --with-api-key
# /permissions

codex "Add a one-line comment at the top of README.md describing how to run tests. Do not change other files."
git diff -- README.md

Where a first run stalls

Prompt Disk Success?
Tell me about this project No write Not a first run
One-line test note on README Visible in git diff First success
Whole-repo refactor Hard to review Not the official onboarding
Treat auth.json as a password
Login is cached in ~/.codex/auth.json or the OS keyring. Do not commit it. The CLI and IDE extension share that cache.
The sandbox can block the write
If there is no diff after the command, check whether the session is waiting for approval, then inspect writable roots with /permissions.
Corporate proxies need a CA
On a TLS proxy, set CODEX_CA_CERTIFICATE before login. If unset, Codex falls back to SSL_CERT_FILE.

Official reminder: create git checkpoints before and after a task so you can revert. Do not expose Codex on untrusted or public runners.

When the diff needs a conversation

After the agent edits, teams often want one picture of what changed. No extra meeting suite. Open a short space on tidemeet or see how to create a space. Canvas: shared whiteboard. Install and login detail: Codex CLI install.

Questions

Does “tell me about this project” count as a first run?

No. That is a read-only scout. The first success is a write you named, checked with git diff.

Do I have to install the IDE extension?

No. The CLI works on its own. A first file edit only needs the terminal, a login, and a repository.

Can I mix ChatGPT login and an API key?

One active method per session. ChatGPT uses plan credits; an API key uses Platform billing. Codex cloud requires ChatGPT sign-in.

What does this have to do with a temporary meeting tool?

No product tie. If you only need to talk through a diff, temporary meeting tools says when a short browser space is enough.

Create a free space