Installation
Requirements
Section titled “Requirements”- Python 3.10+
- An LLM API key (Anthropic, OpenAI, or Google) for derive/review stages
Install from PyPI
Section titled “Install from PyPI”pip install reasonsforgeOr with uv:
uv tool install reasonsforgeInstall from source
Section titled “Install from source”git clone https://github.com/reasonsforge/reasonsforge.gitcd reasonsforgepip install -e .API key configuration
Section titled “API key configuration”Reasons Forge needs an LLM API key for the derive, review, and repair stages. Set it as an environment variable:
# Anthropic (recommended)export ANTHROPIC_API_KEY=sk-ant-...
# OpenAIexport OPENAI_API_KEY=sk-...
# Googleexport GOOGLE_API_KEY=...Verify installation
Section titled “Verify installation”reasonsforge --versionreasonsforge --helpWhat’s installed
Section titled “What’s installed”The reasonsforge package includes:
- The
reasonsforgeCLI - The core TMS engine (add, retract, derive, review, challenge, defend, nogood)
- All built-in forge modules (code, project, product, paper, document)
- Export to SQLite, JSON, markdown, and static wiki formats