# Codex CLI Provider Usage Examples This guide provides practical examples of using Task Master with the Codex CLI provider. ## Prerequisites Before using these examples, ensure you have: ```bash # 1. Codex CLI installed npm install -g @openai/codex # 2. Authenticated with ChatGPT codex login # 3. Codex CLI configured as your provider task-master models --set-main gpt-5-codex --codex-cli ``` ## Example 1: Basic Task Creation Use Codex CLI to create tasks from a simple description: ```bash # Add a task with AI-powered enhancement task-master add-task --prompt="Implement user authentication with JWT" --research ``` **What happens**: 1. Task Master sends your prompt to GPT-5-Codex via the CLI 2. The AI analyzes your request and generates a detailed task 3. The task is added to your `.taskmaster/tasks/tasks.json` 4. OAuth credentials are automatically used (no API key needed) ## Example 2: Parsing a Product Requirements Document Create a comprehensive task list from a PRD: ```bash # Create your PRD cat > my-feature.txt < feature-prd.txt <> .taskmaster/config.json <> .taskmaster/config.json < ~/.codex-auth env: OPENAI_CODEX_API_KEY: ${{ secrets.OPENAI_CODEX_API_KEY }} - name: Configure Task Master run: | cat > .taskmaster/config.json <