Prerequisites
Before installing DocuGen AI, ensure you have the following:Python 3.11+
DocuGen AI requires Python version 3.11 or higher
Gemini API Key
A valid Google Gemini API key for AI-powered generation
You can check your Python version by running
python --version or python3 --version in your terminal.Install via pip
The easiest way to install DocuGen AI is using pip:typer>=0.12.0- CLI frameworkrich>=13.7.0- Terminal formatting and outputjinja2>=3.1.0- Template enginegoogle-genai>=1.0.0- Google Gemini API client
Itβs recommended to install DocuGen AI in a virtual environment to avoid dependency conflicts.
Installation with Virtual Environment
For a cleaner installation, use a Python virtual environment:Gemini API Key Setup
DocuGen AI requires a Google Gemini API key to function. You can obtain one from Google AI Studio.Option 1: Environment Variable
Set the API key as an environment variable:Option 2: .env File
Create a.env file in your project root:
.env
.env file when running.
Verify Installation
Verify that DocuGen AI is installed correctly:Development Installation
If you want to contribute to DocuGen AI or install from source:Install in editable mode with dev dependencies
pytest>=8.0.0.Configuration Files (Optional)
DocuGen AI supports TOML configuration files for advanced customization. You can specify a config file using the--config flag:
Next Steps
Quick Start
Now that you have DocuGen AI installed, follow the Quick Start guide to generate your first documentation
