Installation¶
Requirements¶
- Python 3.10 or later
- An API key for at least one provider (OpenAI, Anthropic, Gemini, xAI) or a local installation of Ollama for free, offline testing
Install from PyPI¶
This installs the core package with the CLI (promptcanary), the SDK, and
the LiteLLM provider adapter.
Optional Extras¶
Visualization ([viz])¶
Adds Plotly and pandas for interactive HTML trend charts. Without this extra, trend visualization falls back to terminal ASCII sparklines automatically — no functionality is lost, just the interactive HTML output.
Development ([dev])¶
For contributors — adds pytest, ruff, mypy, and hypothesis.
Everything ([all])¶
Verify Installation¶
Set Up a Provider¶
Next Steps¶
Continue to the Quick Start to run your first canary suite.