OkayTeacher
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure SONUB site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to SONUB, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add SONUB to your Home Screen, open it there, then allow notifications.

OpenAI

Codex — OpenAI’s coding agent

Install Codex, run your first task in a project folder, then level up in four tabs. Start by checking what you need and copying your install command.

Basics — install it and do your first task

New to it? Start here. Learn what Codex is, install it and follow the first five steps. When you have done them all, move on to the [Intermediate] tab above.

What it is

is ’s . It works in the (Codex CLI), as a and in the app. With you can also hand work to a environment and apply the result on your own computer.

Rules for your project go in , an open format that many coding agents read. You choose what Codex may do with /.

What you need

  • An account: Codex is in every ChatGPT plan (Free, Go, Plus, Pro, Business, Edu, Enterprise), but where you can use it differs. On Free and Go it is only in the desktop app (still rolling out); the on this page needs Plus or higher. You can also sign in to the CLI with an — paid at prices, with no cloud features.
  • A computer: or () or ( install script). and work too.
  • A project folder to work in — ideally a , so every change can be reviewed and undone.
New to the terminal? Start with the SONUB shell course Never used Git? Learn it first — it is how you check and undo AI changes

Install

On macOS and Linux run the first line; on Windows run the PowerShell line. If you installed with the , run the same again to update.

macOS · Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh

Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

npm
npm install -g @openai/codex

Homebrew
brew install --cask codex

Check the installation

Open a new terminal window. codex should print a number. If you see “”, open the terminal again and check your .

codex --version

First run — five steps

  1. Open a terminal, move into your project folder with <folder>, then type codex, press Enter and choose “Sign in with ChatGPT”.
  2. Ask “Tell me about this project” so it reads the project.
  3. Run to create AGENTS.md, then write your test command and the rules to follow.
  4. Use /permissions to choose what Codex may do without asking.
  5. Give a task that names the file, the behaviour and how to check it. Read the , run the tests yourself, then .
cd my-project

codex

Features you will use often

  • AGENTS.md — project instructions read in every session (start with /init)
  • /permissions — how far it may edit files and run commands
  • "…" — run without the chat screen, for scripts and
  • codex cloud — hand work to a cloud environment and apply the result locally
  • The code editor extension and the ChatGPT app — the same Codex in other places
  • skills — teach repeated work with folders in .agents/skills/

Use it safely

  • If it changes more than you asked, stop it. Undo a file with <file> (or pick parts with git restore -p <file>). This discards every unstaged change in that file — your own edits too — but keeps staged changes and new untracked files (GIT step 4). Then ask again, naming the exact files.
  • Read the diff even when the tests pass, and commit only what you understand.
  • For a big task, ask for a plan first and hand it over in small pieces.

Basic practice — try it once from the start

  1. Make a practice folder ( hello-ai cd hello-ai), turn it into a Git repository with git init, then run codex. If you see the input box, it worked.
  2. Ask: "Make , a one-page website that shows today's date." If it asks before creating the file, read what it plans and allow it.
  3. Open index.html in your and check with your own eyes that the date shows.
  4. See what changed with git status, then save it with git add . and git commit -m "first page".
  5. Ask once more: "Make the date bigger." If you do not like the result, go back to the last commit with git restore index.html.

If you get stuck: if codex does not start, check the install with codex --version; if sign-in fails, run codex login. Done all five? Move on to the [Intermediate] tab.

Learn more on SONUB

Official documentation

Checked against the official documentation on 2026-10-19. These tools change often — if a command fails, see the official docs.