Installation¶
llm-gateway-bench requires Python 3.9+.
Install from PyPI (pip)¶
Upgrade:
Verify:
Install with pipx (recommended for CLIs)¶
pipx installs lgb into an isolated environment.
Upgrade:
Install with uv¶
If you use uv:
Or install into a project environment:
Install with conda¶
If you prefer conda environments, install from PyPI inside conda:
Install from source¶
git clone https://github.com/mnbplus/llm-gateway-bench
cd llm-gateway-bench
# Editable install
python -m pip install -e .
# (Optional) dev tooling
python -m pip install -e ".[dev]"
Environment variables (.env)¶
This project loads .env automatically at runtime.
Create a .env file (do not commit it):
See Providers for the full list of keys.
Troubleshooting¶
- If
lgbis not found after install, ensure your Python scripts directory is onPATH. - On Windows, prefer
pipxoruv toolto avoid PATH confusion. - If
mkdocs buildfails with GitPython and you use a portable Git install, setGIT_PYTHON_GIT_EXECUTABLEto the full path ofgit.exe.
See also: FAQ