A guided tour of the Codex app. You will find each part of the window, set the permission level, choose the model, effort and speed, and open the built-in terminal once. After this guide, when I say “click the model button” or “open the bottom panel”, you will know exactly what I mean.
~/codex-course/reference and ~/codex-course/workshop exist on your Mac.Codex is a coding agent. Strip away the nice interface and every coding agent is the same four things: a loop, an LLM (the language model that reads and writes text), access to your files and access to your command line. The loop works like this: you send a message; the model decides whether to read a file, edit a file or run a command; it does that one action; it looks at the result; it decides the next action; and it repeats until it believes the job is done, then reports back to you. A plain chatbot can only talk. An agent can act on your computer. Everything else you see in the Codex window, the sidebar, the settings, the pet, is convenience built around that loop.
Look at the Codex window and find each of these areas. Do not click anything yet; I only want you to know where things are.
“What should we build?” in the middle of the window, a Choose project button just above the message box, and the message box itself showing the placeholder text Do anything. “Choose project” being there means no folder is selected yet, which is exactly where we want to be in this guide.
Your Projects list is empty for now. You add your first project in guide 5. If you don't see a pet, that's fine; pets are not needed for anything in this course. If your sidebar has one or two items more or fewer than my list, that is just a version difference. The four areas are what matter.
Click your name at the bottom-left of the sidebar. This is the account menu. We come back here in step 5 for Settings, so I want you to know where it is.
Everything you send to Codex, and everything it writes back, is measured in tokens. A token is a piece of a word; on average, 100 tokens is about 75 English words. Code uses more tokens than prose because of all the brackets and symbols. With an API key you pay per token, both for what goes in (your prompt plus the files Codex reads) and for what comes out (the answer, the code it writes, and the hidden “thinking” it does before answering). This is why a small “hello” costs almost nothing and a “build the whole feature” prompt can cost a lot.
A small menu opens with Usage, Hide pet, Invite a friend, Settings (shortcut ⌘,) and Log out. The Usage line is designed for ChatGPT plans, where it shows a percentage of the plan left (for example “78% left”).
You signed in with an API key, so your Usage line may look different or show no percentage at all. Your real spend is at platform.openai.com/usage. Bookmark it and check it after each of the bigger build guides. In guide 3 I show you how to set a spending alert there so you never get a surprise.
Click the message box (the one that says “Do anything”) and type the text below. There is no project selected, so Codex cannot touch any files; it will simply chat. I want you to press Enter and actually send it. It is the cheapest possible test that your API key works, and I would rather you find a key problem now than in the middle of guide 7 when Codex is halfway through building something.
hello world
Two keyboard habits to learn right now, because you will use them in every guide: Enter sends the message. Shift+Enter adds a new line inside the message without sending, which you need when a prompt has several lines. All the prompts in these guides have a Copy button, so you paste them in one go and then press Enter.
The text appears in the box. After you send it, your message shows at the top of the chat and Codex replies with a short greeting within a few seconds. That greeting proves three things at once: the app can reach OpenAI, your key is accepted, and your account has credits to spend.
If sending shows an authentication or billing error, go to platform.openai.com and check two things: the key is still active (not revoked) and the account has credits. The key needs “All” permissions, and the account needs prepaid credit; how much the course costs you depends on how many big builds you run, which is why guide 3 sets a budget.
Under the message box, on the left, there is a small shield-style button. It shows the current permission level, for example “Approve for me” or “Ask for approval”. Click it. A menu opens with the question “How should ChatGPT actions be approved?” and three options. Choose Approve for me.
Remember that Codex can run commands on your Mac: install packages, start a server, run tests, create and delete files. The approval level decides how much it has to ask you before doing these things. Ask for approval means every single command stops and waits for your click. Approve for me means routine commands inside your project run on their own, and Codex only stops to ask when it detects something potentially unsafe, like touching files outside the project or reaching out to the internet. Full access means it never asks. Think of it as how much you trust a new intern: watch every keystroke, let them work and check in on the risky bits, or hand them the keys to everything.
Three options:
After you choose, a ✓ sits next to Approve for me, and the button under the message box now reads “Approve for me”.
Don't pick Full access on a computer that has your work or personal files on it. The only place it is acceptable is a spare machine that holds nothing important. “Ask for approval” is safe but very slow: in guide 7 Codex runs dozens of commands while building the first version of our app, and you would be clicking Approve thirty or forty times. Approve for me is the practical middle: the course is designed around it.
When Codex edits files, it shows their names in its answer and in “Edited N files” cards. Clicking a file name opens it, and this setting decides in which app. We want VS Code, because it shows syntax colours, the folder tree and, later, the Git changes side by side. Do the following:
Default file open destination shows VS Code. From now on, clicking any file name in a Codex answer opens that file in VS Code, in the correct folder, ready for you to read. We rely on this from guide 7 onwards every time I ask you to “open the file and read what Codex wrote”.
While you're in Settings, glance at the left list so you know what is there: General, Profile, Appearance, Pets, Keyboard shortcuts, Usage & billing, and under Integrations Plugins and Browser. Leave everything on its default. You may also see a place for MCP servers: these are add-ons that give the agent extra tools, such as talking to an external service. This course uses no MCP servers; Codex's built-in file and terminal access is all we need, so ignore that part completely.
This one is purely for fun and you can skip it. In Settings, click Pets in the left list. You see a small gallery of creatures. Click Select next to one you like, then click ← Back to app.
Your pet appears in the top-right of the window and moves around a little while Codex works. It has no effect on anything Codex does.
If you don't see Pets in your Codex version, skip this step and tick it Done anyway. Nothing later depends on it. If the pet distracts you, the profile menu from step 2 has a Hide pet option.
Under the message box, on the right, there is the model button. It reads something like “5.6 Sol Medium ▾”, possibly with a ⚡ in front. Click it. A small menu opens with three rows: Model, Effort, Speed. Hover your mouse over each row and a list opens out to the side. Set them like this:
These three are easy to mix up. The model is which brain you are using; a bigger model knows more and makes fewer mistakes. Effort (also called reasoning level) is how long that brain is allowed to think before it acts. More effort means more hidden reasoning tokens, which gives better answers on hard problems but costs more and takes longer. Speed does not change the answer at all; it only changes how quickly the tokens stream back to you, and Fast bills you extra for that. So: model = quality ceiling, effort = how hard it tries, speed = how long you wait.
Click away from the menu to close it. The button now reads 5.6 Sol Medium. If there is a ⚡ in front of the label, Fast is still on; open the menu again and switch Speed to Standard, and the ⚡ disappears.
If your menu has no Speed row, or Ultra isn't in the Effort list, that's normal for some accounts and versions. Just set Model and Effort and move on.
With an API key, Fast speed uses more of your budget for exactly the same work. Standard gives the same results, only a bit slower. Turn on Fast only if you care more about time than cost. For learning, Standard is the right choice.
Click the left of the two icons in the top-right corner (toggle bottom panel). A terminal opens along the bottom of the Codex window. Click inside it, paste the command below and press Enter.
pwd
pwdA terminal is a text window where you type a command, press Enter, and the computer answers in text. The line that waits for your input is called the prompt. A Mac prompt looks like yourname@Your-MacBook / %: your username, then your Mac's name, then the folder you are currently “standing in”, then % meaning “ready, type something”. pwd stands for print working directory: it prints the full path of that current folder. A lone / is the very top of your disk. Whenever you are unsure which folder a terminal is in, type pwd. It is the first thing I do in any terminal I open.
A terminal tab at the bottom with your normal Mac prompt, something like yourname@Your-MacBook / %. After pwd, one line with a folder path, for example / or /Users/yourname. Later in the course we use this panel to run commands and start servers without leaving Codex, and the Codex agent itself uses the same kind of terminal when it runs commands for you.
Click the same icon again to hide the panel. You can also keep using the separate Terminal app you used in guide 1; both work exactly the same. The only difference is the starting folder: the Terminal app starts in your home folder, while this panel starts in the current project folder once one is selected. When a copy block in these guides says “Codex bottom panel”, I mean this one.
Click the right of the two icons in the top-right corner (toggle side panel). A panel opens on the right edge of the window. Have a look at what it offers, then close it again.
A panel on the right with options like Browser and Terminal. The Browser option is a small web browser inside Codex, meant for previewing the app you are building. I rarely use it: a real browser window is bigger, you can resize it, open developer tools, and keep it on a second screen while Codex works.
The built-in Browser needs a ChatGPT sign-in, so it will not work with your API key. That's fine and you lose nothing. Whenever a step needs to look at the running app, the guides have you open the page in Chrome or Edge yourself, using the “Open in browser” copy blocks. Click the icon again to close the panel.
If the model list keeps spinning on “Loading models”, quit Codex completely (Cmd+Q, not just the red close button) and open it again. If it still spins, your API key is probably missing permissions or credits; check both on platform.openai.com.
If your window looks different from my description (different item names in the sidebar, no Speed row, no Pets page), that is a version difference and not a problem. Find the four areas from step 1, the shield button and the model button under the message box, and the two toggle icons at the top-right. Those are the only things the rest of the course depends on.
If the terminal panel does not open, or opens blank, close it with the same icon, wait two seconds and open it again. As a fallback, every terminal command in this course also works in the normal Terminal app.