Skip to content
DigiTransact AI Learning CentreVibe Coding Academy

All platform tutorials

Terminal · Intermediate

OpenAI Codex

Codex CLI works with files in a local project. Use it when a small change needs both an explanation and a test, rather than a whole new application. [sources]

Documentation and availability checked .

Access and costs

Codex access is included across free and paid ChatGPT plans with different limits. API-key usage is billed separately. [sources]

Practical project: Repair a receipt total

  1. Set up. Install the CLI for your operating system from the official CLI guide. In an empty practice folder, start codex and sign in using your chosen billing route.
  2. Prepare the example. Create receipt.js containing a function that returns price + tax. Give it the two strings '12' and '3'; write down why '123' is wrong before asking for edits.
  3. Ask for one change.
    Read receipt.js. Show a failing example for two text inputs, then propose a minimal fix for whole-cedi amounts. Reject blank or negative values. Add tests; do not install dependencies.
  4. Inspect and revise. Inspect the proposed diff. Require conversion only after validating both inputs; run the tests yourself and compare with the original function.
  5. Check the result. Inputs '12' and '3' should return 15; a blank field must produce an error rather than zero. Keep the test and fix together.

Strengths and limits

Good for tracing a change across files. A passing generated test can repeat the same mistake as the code; keep a hand-calculated example.

Watch alongside the project

OpenAI Codex · Intermediate

Getting started with Codex

OpenAI · Published · Checked 2026-12-05

Watch alongside the written exercise: Repair a receipt total.

Auto-generated English captions listed. YouTube offered Show transcript on the watch page. Watch on YouTube / open transcript

Read the OpenAI Codex tutorial

Official sources

  1. Official documentation (redirects to learn.chatgpt.com)
  2. Official pricing or access (redirects to learn.chatgpt.com)
  3. Additional official reference (redirects to learn.chatgpt.com)

These are documentation checks, not paid-account tests. Confirm eligibility and limits in your account before enabling billing.