This page explains where to run Spec Kit commands when you're working inside VS Code and how to install and enable the GitHub Copilot Chat extension.
- Run CLI commands (like
specify) in the VS Code integrated terminal, not in the Copilot Chat input. The chat is for conversational prompts and will not execute shell commands. - To use GitHub Copilot Chat, install the
GitHub Copilot Chatextension and sign in to GitHub. Instructions below.
- Open VS Code.
- Open the Extensions view (Ctrl+Shift+X).
- Search for "Copilot Chat" and install "GitHub Copilot Chat" (published by GitHub).
- After installation, the extension may prompt you to sign in. Follow the sign-in flow to authenticate with your GitHub account.
- Open the Copilot Chat panel from the sidebar or use the Command Palette (Ctrl+Shift+P) and run:
Copilot Chat: Open Chat.
If you prefer the command line, you can install the extension with the VS Code CLI. Open a terminal (for example, the VS Code integrated terminal) and run:
# Install the Copilot Chat extension
code --install-extension GitHub.copilot-chat
# Open VS Code (if not already open)
code .After launching VS Code you may still need to follow the sign-in flow the first time the extension runs.
The Copilot Chat input is a conversational interface only — it does not run shell/CLI commands on your machine. To actually run specify (or any other CLI command supplied by this repo), use the VS Code integrated terminal:
- Open the integrated terminal (View > Terminal or Ctrl+`).
- Make sure you're in the project folder (the same folder that contains the repository files).
- Install and run the CLI (examples using uvx - the recommended way, or use uv for persistent installation):
# Run once with uvx (no installation needed)
uvx --from git+https://github.com/github/spec-kit.git specify --help
# Or install persistently with uv (recommended)
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
specify --helpTo run the CLI from the source repository without installation:
# On Windows: cd C:\path\to\spec-kit
# On macOS/Linux: cd /path/to/spec-kit
cd /path/to/spec-kit
uvx --from . specify --helpOr directly via the module:
python -m src.specify_cli --help- CLI commands (e.g.,
specify init,specify check): Run in the VS Code integrated terminal. These are shell commands that execute on your machine. - Slash commands (e.g.,
/speckit.specify,/speckit.plan): Run inside an AI assistant chat window (like GitHub Copilot Chat). These are consumed by the AI assistant, not executed as shell commands.
- If you're new to Python projects, create and activate a virtual environment before installing.
- Use the integrated terminal for all CLI work — you can split terminals, run tasks, and see output inside VS Code.
- To run common workflows with one click, consider adding a VS Code Task or an npm/powershell script that runs the command you need.
-
PowerShell execution policy blocks activation
- Solution: Run
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Processto temporarily allow script execution
- Solution: Run
-
Command not found after installation
- Make sure you're in your virtual environment (you should see
(.venv)in your terminal prompt) - Try reinstalling with
pip install -e .from the project root
- Make sure you're in your virtual environment (you should see
-
Copilot Chat not showing up
- Verify you're signed in to GitHub in VS Code
- Try reloading VS Code (Command Palette > Developer: Reload Window)