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 standardpip.
Installation
Using uv (Recommended)
Add libspec to your project dependencies:
Or install it globally for CLI access:
Using pip
Install libspec directly from PyPI:
Initializing a Libspec Project
Inside your project root directory, run the initialization command:
This creates a .libspec/ configuration directory and a default spec/ folder containing an initial specification file.
Next Steps
- Follow the Quickstart Tutorial to author your first specification class.
- Learn how to connect your coding agent in Using the MCP Server.