Skip to content

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.

Before installing AI coding tools, ensure you have:


Claude Code is Anthropic’s AI coding assistant that runs in your terminal.

  • Node.js 18+ and npm
  • Git (required on Windows)
  • Claude Pro, Max, or Team subscription OR an API key
Terminal window
npm install -g @anthropic-ai/claude-code

1. Ensure Git for Windows is installed (required):

Terminal window
winget install Git.Git

2. Configure PowerShell execution policy (if needed):

Terminal window
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

3. Install Claude Code:

Terminal window
npm install -g @anthropic-ai/claude-code

Important: Git for Windows is required. Claude Code will not start without it.

Launch Claude Code:

Terminal window
claude

On first run, you’ll be prompted to authenticate:

  1. 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
  2. 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
Terminal window
claude --version
claude --help
Terminal window
# Start Claude Code in current directory
claude
# Start with a specific task
claude "explain this codebase"
# Continue previous conversation
claude --continue

OpenAI Codex is OpenAI’s coding agent that runs locally in your terminal.

  • Node.js 18+ and npm
  • ChatGPT Plus, Pro, Team, or Enterprise subscription OR an API key

Option 1: Homebrew (Recommended)

Terminal window
brew install codex

Option 2: npm

Terminal window
npm install -g @openai/codex

Note: Windows support is experimental. For the best experience, use Codex in WSL (Windows Subsystem for Linux).

Option 1: PowerShell (Experimental)

Terminal window
npm install -g @openai/codex

Option 2: WSL (Recommended)

  1. Install WSL:
Terminal window
wsl --install
  1. Open WSL terminal and install Node.js:
Terminal window
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 22
  1. Install Codex:
Terminal window
npm install -g @openai/codex

Tip: When using WSL, work in Linux-native paths (e.g., ~/projects/) rather than Windows-mounted paths (/mnt/c/...) for better performance.

Launch Codex:

Terminal window
codex

On first run, choose your authentication method:

  1. Sign in with ChatGPT (Recommended)

    • Requires ChatGPT Plus, Pro, Team, Edu, or Enterprise subscription
    • Follow the browser authentication flow
  2. Use API Key

    • Enter your OpenAI API key
    • Get an API key from platform.openai.com
    • Pay-as-you-go pricing applies
Terminal window
codex --version
codex --help
Terminal window
# Start Codex in current directory
codex
# Start with a specific task
codex "add error handling to this function"
# Use a specific model
codex --model gpt-5

FeatureClaude CodeOpenAI Codex
ProviderAnthropicOpenAI
SubscriptionClaude Pro/Max/TeamChatGPT Plus/Pro/Team
API PricingPay-per-tokenPay-per-token
Windows SupportNative (with Git)Experimental (WSL recommended)
Default ModelClaude SonnetGPT-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

Claude Code: “Git not found” (Windows)

Section titled “Claude Code: “Git not found” (Windows)”

Install Git for Windows:

Terminal window
winget install Git.Git

Restart your terminal after installation.

Claude Code: PowerShell script execution errors

Section titled “Claude Code: PowerShell script execution errors”

Enable script execution:

Terminal window
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Use WSL instead of native Windows:

Terminal window
wsl --install

Then install and run Codex from within WSL.

See the Node.js Setup troubleshooting section for solutions.

  • Ensure you have an active subscription (Pro/Max/Plus/Team)
  • Try logging out and back in: claude logout or restart Codex
  • Check your API key is valid at the provider’s console

With AI coding tools installed, you’re ready to: