⚠️ MIGRATION NOTICE: This guide has been updated for the new standalone GitHub Copilot CLI (copilot), not the deprecatedgh copilotextension.
| Component | Minimum | Recommended | Check Command |
|---|---|---|---|
| Node.js | 22.x (Required) | 22.x | node --version |
| npm | 10.x | Latest | npm --version |
| PowerShell (Windows) | 6+ | Latest | pwsh --version |
Breaking Changes:
- GitHub CLI is no longer required
- Node.js 22 is now required (not just recommended)
- Completely new installation method
If you need to update Node.js (required):
# Install NVM and Node.js 22 (Required)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc # or ~/.zshrc
nvm install 22 && nvm use 22 && nvm alias default 22
# Verify
node --version # Should show v22.x.x
⚠️ Note: The verification script is being updated for the new CLI. Manual verification recommended for now.
# Manual verification
node --version # Should be 22.x
npm --version # Should be 10.x+
# On Windows, also check:
pwsh --version # Should be 6.x+# Install globally with npm
npm install -g @github/copilot
# Verify installation
copilot --version# Remove old extension (if installed)
gh extension remove github/gh-copilot
# Install new standalone CLI
npm install -g @github/copilot# Launch the new CLI
copilot
# Authenticate using the /login command
# In the copilot interface, type:
/login
# Follow the OAuth promptsAlternative: PAT Authentication
# Create PAT with "Copilot Requests" permission at:
# https://github.com/settings/personal-access-tokens/new
# Set environment variable
export GH_TOKEN="your-pat-here"
# or
export GITHUB_TOKEN="your-pat-here"
# Launch copilot
copilot# Install the new standalone CLI
npm install -g @github/copilot
# Launch for first time
copilot
# Authenticate (within copilot interface)
/login# Launch copilot (from your project directory)
cd /path/to/your/project
copilot
# Basic interactions (within copilot)
# Just type natural language:
# "Help me understand this codebase"
# "Review my recent changes"
# "Create a Python function to parse JSON"# Set preferred model (before launching)
export COPILOT_MODEL=gpt-5
copilot
# Or use default (Claude Sonnet 4)
copilot
# Launch with banner
copilot --banner# Use default Claude Sonnet 4
copilot
# Use GPT-5
COPILOT_MODEL=gpt-5 copilot
# Set as environment variable
export COPILOT_MODEL=gpt-5
copilot# General help
copilot --help
# Within copilot interface
/help # Show available slash commands
/feedback # Submit feedback surveyTry these steps in order:
-
Install and launch:
npm install -g @github/copilot copilot
-
Authenticate:
# Within copilot, run: /login # Follow the OAuth flow
-
Try basic interactions:
- "What are the most important git commands for beginners?"
- "Help me create a Python function to read a CSV file"
- "Explain the files in this project"
-
Test different models:
# Exit copilot (Ctrl+C), then try: COPILOT_MODEL=gpt-5 copilot # Ask the same question to compare responses
- Read the updated README.md for comprehensive documentation
- Understand the new architecture
- Check official documentation
⚠️ Note: Many advanced features from the oldgh copilotextension are being reimplemented in the new CLI. Check the official repository for the latest updates.