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:

  1. Create the .openspec directory structure.
  2. Generate AGENTS.md instructions for AI assistants.
  3. 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.