Installation
Prerequisites
- Node.js: Version 20.19.0 or higher.
- Package Manager: npm, pnpm, or yarn.
Installing the CLI
Install OpenSpec globally to access the openspec command anywhere:
npm install -g @fission-ai/openspec@latest
Verify the installation:
openspec --version
Initialization
To start using OpenSpec in a project, navigate to your project root and run:
cd my-project
openspec init
This command will:
- Create the
.openspecdirectory structure. - Generate
AGENTS.mdinstructions for AI assistants. - Prompt you to configure integrations for your specific AI tools (e.g., creating slash commands for Claude or Cursor).
See the CLI Reference for more details on initialization options.