Getting started with AI coding tools
Set up VS Code, the terminal, and two AI coding agents — Claude Code and Codex CLI — so you're ready to work with AI-assisted development.
1 · Install VS Code
Both tools + WSL2 step requiredGo to code.visualstudio.com and download the version for your operating system. Run the installer and accept all defaults.
Cmd+Shift+P) and run Shell Command: Install 'code' command in PATH so you can open projects from the terminal with code .code .. Also check "Register Code as an editor for supported file types."Open VS Code. Press Cmd+Shift+XCtrl+Shift+X to open the Extensions panel. Search for Python (by Microsoft) and install it. This gives you syntax highlighting, linting, and notebook support.
Press Ctrl+` (backtick)Ctrl+` (backtick) to open a terminal panel inside VS Code. This is where you'll run all the commands in this guide. You can also open it via Terminal → New Terminal in the menu.
Both Claude Code and Codex CLI work best on Windows through WSL2 (Windows Subsystem for Linux). Open PowerShell as Administrator and run:
wsl --install
Restart your computer when prompted. After restarting, open Ubuntu from the Start menu and set a username and password when asked. Then in VS Code, install the WSL extension and use Remote → Connect to WSL — your terminal will now behave like a Linux system.
2 · Terminal basics
Both toolsBefore installing anything else, get comfortable with a few essential commands. These work in the VS Code terminal. Windows users: run these inside your Ubuntu (WSL2) terminal, not PowerShell.
| Command | What it does | Example |
|---|---|---|
| pwd | Print working directory — shows where you are | /Users/you/projects |
| ls | List files and folders in the current directory | ls or ls -la for details |
| cd | Change directory | cd Desktop · cd .. to go up |
| mkdir | Make a new folder | mkdir my-project |
| python3 | Run a Python file or open the REPL | python3 script.py |
| pip install | Install a Python package | pip install pandas scikit-learn |
| git init | Start tracking a folder with Git | Run inside your project folder |
| git status | See which files have changed | Run this before every commit |
Tab to auto-complete file and folder names.3 · Install Claude Code
Claude CodeThe native installer is the easiest method — no Node.js required. Paste this into your terminal:
curl -fsSL https://claude.ai/install.sh | sh
irm https://claude.ai/install.ps1 | iex
The installer downloads the Claude Code binary, sets it up in your PATH, and enables automatic updates.
claude --version
You should see a version number. If you get "command not found", close and reopen the terminal and try again.
Run claude in your terminal. It will open a browser window to log in with your Anthropic account (Claude Pro, Max, or Teams). Complete the OAuth flow — you won't need to do this again.
export ANTHROPIC_API_KEY=your_key_hereIn VS Code, open Extensions (Cmd+Shift+XCtrl+Shift+X), search for Claude Code, and install the official Anthropic extension. This adds a sidebar panel and lets you manage diffs visually rather than just in the terminal.
Navigate to a project folder and run:
cd ~/Desktop/my-project claude
Try asking: "What Python files are in this directory and what do they do?" Claude Code reads your actual files and responds in context.
4 · Install Codex CLI
Codex CLIcurl -fsSL https://chatgpt.com/codex/install.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
codex --version
You'll need an OpenAI account with API access, or a ChatGPT subscription. Set your key in the terminal:
echo 'export OPENAI_API_KEY="your_key_here"' >> ~/.zshrc source ~/.zshrc
$env:OPENAI_API_KEY = "your_key_here"
OPENAI_API_KEY as a User variable.Replace your_key_here with your actual key from platform.openai.com/api-keys.
codex
Try: "Write a Python function that loads a CSV with pandas and prints summary statistics." Codex will propose code and ask for your confirmation before writing to disk.
5 · Using both tools: a quick comparison
Both toolsBoth tools do similar things — the difference is mostly in how they authenticate and who makes them. Using both helps you develop your own sense of their strengths.
cd my-project claude > Analyze my data.py file and suggest improvements
cd my-project codex > Analyze my data.py file and suggest improvements
| Feature | Claude Code | Codex CLI |
|---|---|---|
| Model | Claude (Anthropic) | GPT-5 Codex (OpenAI) |
| Auth | OAuth via claude.ai or API key | OpenAI API key |
| VS Code integration | Official extension available | Via IDE integrations |
| Reads your files | Yes — full project context | Yes — full project context |
| Runs code | Yes, with your confirmation | Yes, with your confirmation |
| Proposes diffs | Yes | Yes |
6 · Set up Git for your projects
Both toolsBoth Claude Code and Codex work much better inside Git repositories. Git also gives you a safety net — if an AI makes a bad edit, you can roll back.
git config --global user.name "Your Name" git config --global user.email "you@example.com"
mkdir my-project cd my-project git init
Now run claude or codex inside this folder. Both tools will detect the repo automatically.
Get in the habit of committing your work before asking an AI to edit files. That way you can always compare or revert.
git add . git commit -m "baseline before AI edit"
7 · Common issues
Both toolsClose your terminal, open a new one, and try again. The installer adds the command to your PATH, but the current session may not have reloaded it. If it still fails, check that the install script completed without errors.
Open PowerShell as Administrator and run Set-ExecutionPolicy RemoteSigned, then try the install command again.
Make sure you've sourced your shell profile after adding the key. On Mac run source ~/.zshrc. On Windows, restart the terminal. You can also verify it's set with echo $OPENAI_API_KEY (Mac) or echo $env:OPENAI_API_KEY (Windows).
Reach out via the CAID contact page with your OS, the exact command you ran, and the full error message.