Skip to content

How to Install and Set Up Libspec

libspec is a Python library and CLI tool for spec-driven development with LLM agents.


Prerequisites

  • Python: Version 3.12 or higher.
  • Package Manager: uv (recommended) or standard pip.

Installation

Add libspec to your project dependencies:

uv add libspec

Or install it globally for CLI access:

uv tool install libspec

Using pip

Install libspec directly from PyPI:

pip install libspec

Initializing a Libspec Project

Inside your project root directory, run the initialization command:

uv run libspec init

This creates a .libspec/ configuration directory and a default spec/ folder containing an initial specification file.


Next Steps