A CLI tool to manage and run batch LLM calls.
pip install open-batch-llmOr with uv:
uv tool install open-batch-llmopen-batch-llm validate requests.jsonopen-batch-llm run --dry-run requests.jsonopen-batch-llm run requests.json --provider openai --model gpt-4o-mini --output results.jsonThe input file must be a JSON array of request objects. Each object must contain a prompt key:
[
{"id": "req-1", "prompt": "What is 2 + 2?"},
{"id": "req-2", "prompt": "Name the planets of the solar system."}
]This project uses uv as the package manager and build system.
# Install dependencies
uv sync --all-groups
# Run tests
uv run pytest
# Build the package
uv buildReleases are published to PyPI automatically via GitHub Actions when a new GitHub Release is created. The workflow uses Trusted Publishing (OIDC) — no API token is needed.