Codex is OpenAI's AI coding and execution tool: you describe what you want in a sentence, and it does the work — on your machine or in the cloud. Writing code, editing a site, running scripts, sorting files. This post covers the whole path from install to daily use, and the video walkthrough shows the full process.
1. Install and setup: genuinely a few minutes
Two ways to use it. The web version: open Codex inside ChatGPT and tasks run in the cloud. Good for editing repos and running batch jobs, and you can hand off work from your phone. The local CLI: one command in your terminal —
npm install -g @openai/codex
codex
Sign in with your ChatGPT account on first run; no separate API key to wrangle. The advantage of running locally is that it can touch the actual files and projects on your machine, which suits store-operations work where something real has to change.
2. The right way to hand off a task
Most beginners get disappointed because they throw one sentence at an enormous project. Three habits make Codex work well:
- One clear goal at a time — "compress the homepage images and add lazy loading" beats "make the homepage faster";
- Give it acceptance criteria — spell out what "done" looks like and it can check its own work;
- Small steps — glance at each step before moving on. Far less rework than inspecting everything at the end.
3. How it pairs with ChatGPT
My habit: think in ChatGPT, execute in Codex. Work out the approach in conversation, then hand the settled task to Codex. One is the strategist, the other is the crew. That split is where the efficiency comes from.
4. Should non-programmers bother?
Yes. What tools like Codex really change is that "can you write code" is no longer the gate — what you need is the ability to state a requirement clearly. A large share of my own store operations runs this way. For how to connect it, see Connecting WordPress to AI; more hands-on write-ups keep landing on the Blog.