Prerequisites
Before installing Spec Kit, ensure you have the following tools installed:Operating System
Linux, macOS, or Windows (PowerShell scripts supported without WSL)
Python 3.11+
Required for running the Specify CLI tool
uv Package Manager
Modern Python package and project manager
Git
Version control for specification management
AI Coding Assistant
You’ll need one of the supported AI coding assistants. Spec Kit works with:- Claude Code - Anthropic’s CLI assistant
- GitHub Copilot - Microsoft’s AI pair programmer
- Cursor - AI-first code editor
- Gemini CLI - Google’s CLI assistant
- opencode - Open source coding assistant
- Windsurf - IDE with built-in workflows
- And many more - see the full list
You can skip AI agent tool checks during installation using the
--ignore-agent-tools flag if you prefer to configure them later.Installing uv
Theuv tool is a fast Python package installer and resolver. Install it using one of these methods:
Installing Specify CLI
Spec Kit offers two installation approaches depending on your usage pattern:Option 1: Persistent Installation (Recommended)
Install the Specify CLI once and use it across all your projects:Benefits of persistent installation:
- Tool stays installed and available in your PATH
- No need to create shell aliases
- Better tool management with
uv tool list,uv tool upgrade,uv tool uninstall - Cleaner shell configuration
- Faster subsequent runs (no reinstallation)
specify command is available globally:
Upgrading Specify
To upgrade to the latest version:Option 2: One-Time Usage
Run Specify directly without installing, usinguvx:
Configuration Options
Specify AI Assistant
You can specify your AI assistant during initialization to set up the correct command files and directory structure:Script Type Selection
All automation scripts provide both Bash (.sh) and PowerShell (.ps1) variants:
- Windows: Defaults to
ps(PowerShell) - Linux/macOS: Defaults to
sh(Bash) - Interactive mode: Prompts for selection unless
--scriptis specified
Initialize in Current Directory
You can initialize Spec Kit in an existing directory:Additional Options
Verifying Installation
After initialization, verify your setup:Check System Tools
Run the check command to verify all prerequisites:This validates the presence of:
- Git version control
- Python 3.11+
- Your selected AI coding assistant (if applicable)
Test AI Agent Commands
Launch your AI coding assistant in the project directory and verify the slash commands are available:
/speckit.constitution- Create project principles/speckit.specify- Define requirements/speckit.clarify- Resolve ambiguities/speckit.plan- Generate technical plans/speckit.tasks- Create task lists/speckit.implement- Execute implementation
Troubleshooting
Git Credential Manager on Linux
If you encounter Git authentication issues on Linux, install Git Credential Manager:Python Version Issues
If you encounter Python version errors, verify your Python installation:Path Issues
If thespecify command is not found after persistent installation:
Next Steps
Quick Start Guide
Follow the quick start to create your first specification
CLI Reference
Explore all available commands and options