Skip to main content

LLM-Analyzer

Universal, provider-agnostic local LLM response analyzer.

LLM-Analyzer captures LLM responses, extracts available metadata, stores telemetry locally in SQLite, and provides a local dashboard.

Features

  • Provider-agnostic response capture
  • Model and provider metadata extraction when available
  • Token usage extraction when available
  • Latency measurement
  • Error capture
  • Temporary local SQLite storage
  • Automatic local dashboard at http://127.0.0.1:1918
  • Optional response evaluation
  • CSV export
  • Python API and CLI

The analyzer does not require an OpenAI, Gemini, Groq, Claude, or other provider SDK.

Install

pip install llm-analyzer

Basic usage

from llm_analyzer import analyze

response = my_llm_call(prompt)

analyze(response)

return response

Or measure the complete call automatically:

from llm_analyzer import analyze_call

response = analyze_call(my_llm_call, prompt)

return response

The first analysis call automatically starts the local dashboard.

Open:

http://127.0.0.1:1918

Local storage

By default telemetry is stored in:

.llm-analyzer/telemetry.db

Captured data is temporary by default and uses a 7-day retention period.

You can change the retention period:

from llm_analyzer import Analyzer

analyzer = Analyzer(retention_days=3)

Or with an environment variable:

LLM_ANALYZER_RETENTION_DAYS=3

Disable automatic dashboard startup

Set:

LLM_ANALYZER_AUTO_DASHBOARD=0

CLI

Start the dashboard manually:

llm-analyzer dashboard

Print the database path:

llm-analyzer path

Evaluation

Evaluation is optional. The package can use supplied prompt/reference/context evidence or a custom evaluator.

Quality metrics such as accuracy, hallucination, bias, and fairness should be treated as evaluation results, not as metadata automatically inferred from an arbitrary LLM response.

License

MIT

Release files for llm-analyzer 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-analyzer 0.1.0
File Size Uploaded
llm_analyzer-0.1.0.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-analyzer 0.1.0
File Interpreter ABI Platform
llm_analyzer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / llm_analyzer-0.1.0.tar.gz

Download URL llm_analyzer-0.1.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c461607968b3a682f635197183ef3d65706ec7e8aac8b070ded75a60c0f8989e
BLAKE2b-256 checksum
How to use checksums
c5b8288d3d4f486fd2aaa8de782e57294dd81947df3b85f46112e15d01ebfc01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL llm_analyzer-0.1.0-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0573634a4d35abff11ae71ed5470efc99c18572336fdf23919790b0120029f40
BLAKE2b-256 checksum
How to use checksums
d9de96296e3297ed9a732aef8c980c6f36bc05da08848bcc11d2d90d698eb81e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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