Command not found after installation
Command not found after installation
If you run To make this permanent, add that line to your Verify the fix:
pdd and see command not found, the CLI’s install directory is not on your PATH.Add ~/.local/bin to your PATH by running:~/.bashrc or ~/.zshrc, then reload your shell:If you installed with
uv, the pdd binary is placed in ~/.local/bin automatically. On Windows (Git Bash), use ~/.local/bin/pdd --version once to confirm, then add the directory to your PATH.Permission errors during installation
Permission errors during installation
If Alternatively, use
pip install pdd-cli fails with a permission error, install with user-level permissions instead:uv, which installs into an isolated environment that does not require elevated permissions:macOS: Xcode Command Line Tools not found
macOS: Xcode Command Line Tools not found
PDD requires Xcode Command Line Tools on macOS for compiling Python dependencies. Install them with:A dialog will prompt you to install the tools. After installation completes, retry your PDD installation.
macOS: Homebrew not found
macOS: Homebrew not found
Several macOS prerequisites (Python, After installation, add Homebrew to your PATH (required on Apple Silicon):
uv, gh) are easiest to install via Homebrew. Install it with:macOS: Python not found or wrong version
macOS: Python not found or wrong version
Recent versions of macOS no longer ship with Python pre-installed. PDD requires Python 3.8 or higher.Check your current version:If Python is missing or older than 3.8, install the latest Python 3 via Homebrew:If you have multiple Python versions installed, confirm
python3 resolves to 3.8 or higher:macOS: Permission denied during compilation
macOS: Permission denied during compilation
Compilation failures with
Permission denied typically mean Xcode Command Line Tools are not installed correctly or you lack write permissions to the installation directory.- Ensure Xcode Command Line Tools are installed:
- Confirm the tools are active:
- If problems persist, reset the tool path:
macOS: uv installation fails
macOS: uv installation fails
If the Then install PDD:
curl installer for uv fails, install it through Homebrew instead:macOS: Python version conflicts
macOS: Python version conflicts
If you have multiple Python installations (Homebrew, pyenv, system, Conda), PDD requires Python 3.8+. If the active interpreter is older, update your shell’s
python3 may resolve to the wrong version. Check which interpreter is active:PATH so the correct Python comes first, or use uv (which manages its own Python version independently):Windows: shell and PATH issues
Windows: shell and PATH issues
On Windows, PDD works best with uv (recommended), pipx, or a virtual environment.If To make the setting permanent, add
pdd is not found, try ~/.local/bin/pdd --version. If that works, add ~/.local/bin to your PATH permanently.pdd setup fails with “Unsupported shell”If you see an error like Unsupported shell: or Error during 'setup' command, your SHELL environment variable is missing or invalid. Set it for the current session:SHELL to your user environment variables via Start → Edit the system environment variables → Environment Variables → New.Setup wizard does not detect API keys
Setup wizard does not detect API keys
After running New terminal windows source this file automatically. If the wizard still does not detect your keys, confirm the file exists and contains the correct values:Re-run
pdd setup, the wizard writes your API keys to ~/.pdd/api-env.zsh (or api-env.bash). These keys are not automatically available in your current terminal session — you must source the file first:pdd setup at any time to add keys, switch providers, or reconfigure models."Missing setup artifacts" banner appears
"Missing setup artifacts" banner appears
API key issues
API key issues
PDD requires at least one LLM provider API key. The relevant environment variables are:
PDD checks for keys in this order (highest priority first):The easiest way to configure keys is through the setup wizard, which validates each key with a real test call:
| Provider | Environment variable |
|---|---|
| OpenAI | OPENAI_API_KEY |
| Anthropic | ANTHROPIC_API_KEY |
| Google Gemini | GEMINI_API_KEY |
| Google (alternative) | GOOGLE_API_KEY |
- Infisical secrets (when running via
infisical run --) ~/.pdd/llm_model.csv(user-specific model registry).envfile in the project root- Shell environment variables
.env file in your project root: