cc-devenv-doctor
Get a Mac or Windows computer ready for Claude Code or Codex (AI coding assistants) by pasting one command — plus a built-in checkup that tells you what's still missing.
ภาษาไทย: README.th.md
No computer experience needed. Follow the steps below one at a time.
Before you start
- A computer: Mac (macOS 13 or newer) or Windows 10 / 11, with at least 4 GB of RAM
- Internet — several programs get downloaded, some of them large (Docker especially), so this can take a while
- Your computer's login password — the Mac asks for it during setup; Windows shows a pop-up asking you to click "Yes"
- An account for at least one AI assistant:
| Assistant | Account you need |
|---|
| Claude Code | A paid Claude plan (Pro, Max, Team or Enterprise) — the free Claude plan does not work |
| Codex | Any ChatGPT plan, including the free one (the free plan has lower limits) |
Not sure which? Install both — that's what the script does by default.
Install on a Mac
Step 1 — Open the Terminal app
Press ⌘ Command + Space together. A search box appears. Type Terminal and press Enter.
A window with text appears — this is where you type commands.
Step 2 — Copy this command, paste it, press Enter
cd ~ && curl -fsSL -o cc.zip https://github.com/killernay/cc-devenv-doctor/archive/refs/heads/main.zip && unzip -oq cc.zip && rm cc.zip && cd cc-devenv-doctor-main && bash setup.sh
To paste in Terminal: press ⌘ Command + V, then Enter.
No need to install Git first — the command downloads a ZIP, and the script installs Git for you.
Step 3 — Answer the questions
- "Which coding agent…" — just press Enter (= install both Claude Code and Codex)
- "Where should the Claude Code plugins be enabled?" — just press Enter
- "Password:" — type your computer's login password and press Enter.
Nothing shows on screen while you type — no letters, no dots. That's normal. Type it fully and press Enter.
- "Press RETURN…" — press Enter
Wait until you see === Summary ===, then go to Step 4.
Install on Windows
Step 1 — Open PowerShell
Press the Windows key, type PowerShell, press Enter.
(You don't need "Run as administrator".)
Step 2 — Copy this command, paste it, press Enter
cd ~; Invoke-WebRequest https://github.com/killernay/cc-devenv-doctor/archive/refs/heads/main.zip -OutFile cc.zip; Expand-Archive cc.zip -DestinationPath . -Force; Remove-Item cc.zip; cd cc-devenv-doctor-main; powershell -ExecutionPolicy Bypass -File setup.ps1
To paste in PowerShell: right-click inside the window (or press Ctrl + V), then Enter.
No need to install Git first — the command downloads a ZIP, and the script installs Git for you.
Step 3 — Answer the questions
- "Which coding agent…" — just press Enter (= install both Claude Code and Codex)
- "Where should the Claude Code plugins be enabled?" — just press Enter
- A pop-up asks "Do you want to allow this app to make changes to your device?" — click Yes
- If the script says you must restart (it installed WSL2 for Docker) — restart, then do Steps 1–2 again. The script skips whatever is already installed.
Wait until you see === Summary ===.
Step 4 — Read the result
At the end the script prints a list:
[v] = installed fine
[!] = not done yet; the text after it says what to do
A [!] is nothing to worry about. Most of them go away if you close the window, open a new one, and paste the Step 2 command again — the script can be run as many times as you like and skips whatever already worked.
The first time, Docker almost always shows [!] — open the Docker Desktop app once and wait 1–2 minutes until it's ready.
Step 5 — Log in
Close the Terminal / PowerShell window and open a new one first. (Important — the old window can't see the programs that were just installed.)
Then type one of these and press Enter:
| Assistant | Type | What happens |
|---|
| Claude Code | claude | Your browser opens the Claude login page. Log in, then come back to the window. |
| Codex | codex | Choose Sign in with ChatGPT and log in in your browser. |
If it asks anything else (a colour theme, whether you trust this folder), press Enter to accept what's already selected.
To quit: press Ctrl + C twice.
Step 6 — Let it check your computer
Once logged in, inside claude or codex, type:
| Assistant | Type |
|---|
| Claude Code | /devenv-doctor:environment-doctor |
| Codex | $environment-doctor |
Or just type check my setup. It checks everything and shows a ✅ / ❌ table. Anything missing comes with the exact command to paste for your computer.