# AI Provider Configuration - Choose ONE provider below # ============================================ # OPTION 1: GitHub Copilot (Recommended for Enterprise) # ============================================ # Get your GitHub token: https://github.com/settings/tokens # Required scopes: repo, read:user GITHUB_TOKEN=your_github_token_here # ============================================ # OPTION 2: OpenAI / ChatGPT (Recommended for Advanced Features) # ============================================ # Get your API key: https://platform.openai.com/api-keys OPENAI_API_KEY=sk-your-openai-key-here OPENAI_MODEL=gpt-4o-mini OPENAI_MAX_TOKENS=1000 # ============================================ # Optional Configuration Settings # ============================================ # API timeout in milliseconds (default: 30000) API_TIMEOUT=30000 # Use local analysis if AI fails (default: true) ENABLE_AI_FALLBACK=true # Skip validation if rate limit is hit (default: false) SKIP_ON_RATE_LIMIT=false # Auto-open editor at error locations (default: false) AI_AUTO_OPEN_ERRORS=false # Show code comparisons in terminal (default: true) AI_SHOW_CODE_COMPARISON=true # Auto-select option in non-interactive environments (1-based index or value) AI_AUTO_SELECT= # Prompt timeout in milliseconds (0 = wait indefinitely, default: 120000) AI_PROMPT_TIMEOUT_MS=120000 # Force prompts even in non-interactive environments (default: false) AI_FORCE_PROMPT=false # Default action when prompt times out: cancel | auto-apply | skip AI_DEFAULT_ON_CANCEL=cancel # Optional mode - AI review won't block commits (default: false) AI_OPTIONAL_MODE=false # Custom regex pattern for skip directives (optional) AI_SKIP_DIRECTIVE_REGEX= # Environment NODE_ENV=development