AI Coding Tools Setup
chro integrates with AI coding assistants to automate content generation workflows. This guide covers the installation of Claude Code (by Anthropic) and OpenAI Codex.
Prerequisites
Section titled “Prerequisites”Before installing AI coding tools, ensure you have:
- Node.js 18+ installed
- Git installed
Claude Code
Section titled “Claude Code”Claude Code is Anthropic’s AI coding assistant that runs in your terminal.
Requirements
Section titled “Requirements”- Node.js 18+ and npm
- Git (required on Windows)
- Claude Pro, Max, or Team subscription OR an API key
Installation
Section titled “Installation”npm install -g @anthropic-ai/claude-codeWindows
Section titled “Windows”1. Ensure Git for Windows is installed (required):
winget install Git.Git2. Configure PowerShell execution policy (if needed):
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser3. Install Claude Code:
npm install -g @anthropic-ai/claude-codeImportant: Git for Windows is required. Claude Code will not start without it.
Authentication
Section titled “Authentication”Launch Claude Code:
claudeOn first run, you’ll be prompted to authenticate:
-
Option 1: Claude Pro/Max/Team (Recommended)
- Select “Sign in with Claude”
- Follow the browser authentication flow
- Requires an active Claude Pro ($20/mo), Max ($100/mo), or Team subscription
-
Option 2: API Key
- Select “Use API key”
- Enter your Anthropic API key
- Get an API key from console.anthropic.com
- Pay-as-you-go pricing applies
Verify Installation
Section titled “Verify Installation”claude --versionclaude --helpBasic Usage
Section titled “Basic Usage”# Start Claude Code in current directoryclaude
# Start with a specific taskclaude "explain this codebase"
# Continue previous conversationclaude --continueOpenAI Codex
Section titled “OpenAI Codex”OpenAI Codex is OpenAI’s coding agent that runs locally in your terminal.
Requirements
Section titled “Requirements”- Node.js 18+ and npm
- ChatGPT Plus, Pro, Team, or Enterprise subscription OR an API key
Installation
Section titled “Installation”Option 1: Homebrew (Recommended)
brew install codexOption 2: npm
npm install -g @openai/codexWindows
Section titled “Windows”Note: Windows support is experimental. For the best experience, use Codex in WSL (Windows Subsystem for Linux).
Option 1: PowerShell (Experimental)
npm install -g @openai/codexOption 2: WSL (Recommended)
- Install WSL:
wsl --install- Open WSL terminal and install Node.js:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bashsource ~/.bashrcnvm install 22- Install Codex:
npm install -g @openai/codexTip: When using WSL, work in Linux-native paths (e.g.,
~/projects/) rather than Windows-mounted paths (/mnt/c/...) for better performance.
Authentication
Section titled “Authentication”Launch Codex:
codexOn first run, choose your authentication method:
-
Sign in with ChatGPT (Recommended)
- Requires ChatGPT Plus, Pro, Team, Edu, or Enterprise subscription
- Follow the browser authentication flow
-
Use API Key
- Enter your OpenAI API key
- Get an API key from platform.openai.com
- Pay-as-you-go pricing applies
Verify Installation
Section titled “Verify Installation”codex --versioncodex --helpBasic Usage
Section titled “Basic Usage”# Start Codex in current directorycodex
# Start with a specific taskcodex "add error handling to this function"
# Use a specific modelcodex --model gpt-5Comparison: Claude Code vs OpenAI Codex
Section titled “Comparison: Claude Code vs OpenAI Codex”| Feature | Claude Code | OpenAI Codex |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Subscription | Claude Pro/Max/Team | ChatGPT Plus/Pro/Team |
| API Pricing | Pay-per-token | Pay-per-token |
| Windows Support | Native (with Git) | Experimental (WSL recommended) |
| Default Model | Claude Sonnet | GPT-5-Codex |
Both tools are excellent choices. Pick based on:
- Existing subscription - Use whichever service you already pay for
- Platform - Claude Code has better native Windows support
- Model preference - Claude for reasoning tasks, GPT for code generation
Troubleshooting
Section titled “Troubleshooting”Claude Code: “Git not found” (Windows)
Section titled “Claude Code: “Git not found” (Windows)”Install Git for Windows:
winget install Git.GitRestart your terminal after installation.
Claude Code: PowerShell script execution errors
Section titled “Claude Code: PowerShell script execution errors”Enable script execution:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserCodex: Slow performance on Windows
Section titled “Codex: Slow performance on Windows”Use WSL instead of native Windows:
wsl --installThen install and run Codex from within WSL.
npm global package permission errors
Section titled “npm global package permission errors”See the Node.js Setup troubleshooting section for solutions.
Authentication issues
Section titled “Authentication issues”- Ensure you have an active subscription (Pro/Max/Plus/Team)
- Try logging out and back in:
claude logoutor restart Codex - Check your API key is valid at the provider’s console
Next Steps
Section titled “Next Steps”With AI coding tools installed, you’re ready to:
- Install chro - Install the chro application
- Get Started - Learn how to use chro