Codes delivered instantly after payment · Cards, WeChat Pay and Apple Pay accepted
Home / Blog / Getting Started with Codex: Install, Sign In and Your First Coding Task

Getting Started with Codex: Install, Sign In and Your First Coding Task

Published November 10, 2026·Updated November 17, 2026·1 min read

Codex is OpenAI's coding agent for the terminal, your editor and the web. This guide takes you from installation and signing in with your ChatGPT account to finishing your first task.

Getting Started with Codex: Install, Sign In and Your First Coding Task

What Codex can do

Codex can read your code, run commands and edit files to help you build features, fix bugs, write tests and explain code. It requires a paid ChatGPT plan (Plus or Pro); usage is included in the subscription.

Three ways to use it

Option Best for
Codex CLI (terminal) Developers comfortable with the command line
Editor extension Using it directly in VS Code and similar editors
Codex in ChatGPT on the web No install — tasks run in the cloud from your browser

Install the Codex CLI

Install Node.js first, then run in your terminal:

npm install -g @openai/codex

When it's done, go to your project folder and run:

codex

Sign in with your ChatGPT account

On first run choose Sign in with ChatGPT. A browser window opens for authorisation — sign in to the account that has Plus / Pro. Codex then uses that account's plan allowance.

If sign-in asks you to verify a phone number, see Codex phone verification.

Your first task: start small

Describe the task in plain language, for example:

Read the src folder and add unit tests for the formatDate function in utils/date.ts.
Put the tests in tests/date.test.ts, then run them and tell me the result.

A good task description covers three things: where to change, what result you want, and how to check it.

Review what Codex changed

  • Codex explains what it's about to do before editing files and asks before running commands;
  • When it's done, review the changes with git diff before committing;
  • For important projects, let Codex work on a new branch first.

Running out of usage

When your allowance runs out you can wait for the reset, buy Codex credits or upgrade your plan — see Codex usage limits.

Plans mentioned in this guide

Ready to upgrade?No account needed. Pay, get your code instantly, redeem in minutes.
See plans

Related