Skip to main content

Terminal report screenshot

llm-preflight-check

llm-preflight-check is a local CLI for checking whether your LLM provider configuration is ready before a demo, batch job, support workflow, or agent run.

It checks:

  • required environment variables for OpenAI, Anthropic, DeepSeek, and Ollama
  • default or configured provider endpoints
  • optional live model-list requests
  • required model names such as openai:gpt-4.1 or ollama:qwen2.5-coder
  • table, JSON, Markdown, and HTML reports for local use or CI artifacts

No runtime dependencies are required.

Install

pip install llm-preflight-check

For local development:

python3 -m pip install -e .

Quick Start

Check local configuration without making network calls:

llm-preflight-check

Check only OpenAI and Ollama:

llm-preflight-check --provider openai --provider ollama

Run live endpoint checks and require specific models:

llm-preflight-check --live \
  --require-model openai:gpt-4.1 \
  --require-model ollama:qwen2.5-coder

Write a Markdown handoff report:

llm-preflight-check --format markdown --output llm-preflight.md

Use strict warnings in CI:

llm-preflight-check --require-model openai:gpt-4.1 --strict-warnings

Exit codes:

  • 0: all selected checks passed
  • 1: a required cloud provider key is missing, or warnings are strict
  • 2: a live check failed or a required live model is missing

Providers

Provider Env var Default endpoint
OpenAI OPENAI_API_KEY https://api.openai.com/v1/models
Anthropic ANTHROPIC_API_KEY https://api.anthropic.com/v1/models
DeepSeek DEEPSEEK_API_KEY https://api.deepseek.com/models
Ollama OLLAMA_HOST http://localhost:11434/api/tags

Ollama does not require an API key. If OLLAMA_HOST is not set, the CLI assumes http://localhost:11434.

Report Formats

llm-preflight-check --format table
llm-preflight-check --format json
llm-preflight-check --format markdown
llm-preflight-check --format html --output report.html

Development

python3 -m pytest
PYTHONPATH=src python3 -m llm_preflight_check.cli --provider ollama
python3 -m build --no-isolation
python3 -m twine check dist/*

License

MIT

Metadata

Release files for llm-preflight-check 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-preflight-check 0.1.0
File Size Uploaded Provenance Actions
llm_preflight_check-0.1.0.tar.gz 10.5 kB Without provenance Details for llm_preflight_check-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-preflight-check 0.1.0
File Interpreter ABI Platform Actions
llm_preflight_check-0.1.0-py3-none-any.whl Python 3 none any Details for llm_preflight_check-0.1.0-py3-none-any.whl

Total release size: 19.6 kB

Release files / llm_preflight_check-0.1.0.tar.gz

Download URL llm_preflight_check-0.1.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab00cd009f076f2ec80106c98587c43dd9f739f79cd9c9a5df5b4c13e1edc623
BLAKE2b-256 checksum
How to use checksums
634fe9821cc1338b6d73b9c85f5cb446a65eb204c72c4f1dc92780d951987cac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / llm_preflight_check-0.1.0-py3-none-any.whl

Download URL llm_preflight_check-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5b86ac045dbfc3b4ce87c1cccec917dc6c7698f110a43cf6efead999abf352c
BLAKE2b-256 checksum
How to use checksums
e020abe3632e199b19a0794361c7017a8a2372e898643c78feb7af5d778c9ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for llm-preflight-check 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page