llm-benchmark-manager
Provides tools for discovering, validating, capability-checking, stability-testing, and benchmarking models exposed through OpenAI-compatible provider APIs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@llm-benchmark-managerrun a full benchmark on the OpenAI provider"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LLM Benchmark Manager
LLM Benchmark Manager is a standalone, open-source tool for discovering models exposed by an LLM provider, validating that they can actually be called, classifying their capabilities and health, benchmarking compatible text-generation models with NVIDIA AIPerf, and preserving historical evidence in SQLite.
It is intentionally independent of any agent framework, operating-system user, host name, directory layout, or routing system. It can be used manually from a terminal, automated through a REST API, or controlled by an AI/agent through MCP.
What it does
A normal full run performs the following pipeline:
discover the provider model catalog;
create a persistent progress row for every selected model;
detect or infer the model capability;
run a capability-aware smoke probe;
perform bounded stability checks and retry transient provider failures;
run AIPerf only when the model has a compatible benchmark profile;
classify the model (
ACTIVE,UNSTABLE,NOT_AVAILABLE, etc.);store metrics, normalized errors, progress and status history in SQLite.
The tool never deletes historical benchmark evidence when a model changes state later.
Related MCP server: ellmos-homebase-mcp
Release status
Current release: 0.3.2.
The source repository is public on GitHub. Release artifacts are published to PyPI from the GitHub v*.*.* release-tag workflow using PyPI Trusted Publishing, so no long-lived PyPI API token is stored in the repository.
Requirements
Python 3.11+
Internet/network access to the provider being tested
Provider credentials for providers that require authentication
NVIDIA AIPerf 0.12.0 is a required package dependency. Installing LLM Benchmark Manager installs AIPerf automatically. You do not need to install AIPerf separately.
Release 0.3.2 also constrains NumPy to numpy>=1.26.4,<2.4 for compatibility with older or virtualized x86_64 CPUs. This is based on a verified QEMU compatibility case where NumPy 2.5.3 failed at startup because its wheel required the X86_V2 baseline, while NumPy 2.3.5 imported successfully and AIPerf 0.12.0 completed a real benchmark run.
AIPerf is currently used by the built-in CHAT_TEXT baseline profile. Discovery, capability detection and non-text probes still use the same installed application even when no AIPerf benchmark is applicable to a particular model.
Installation
From a source checkout
Recommended for the current release:
pipx install .
llmbench --helpFor development:
python3 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
pytest -qFrom a built wheel
pipx install dist/llm_benchmark_manager-0.3.2-py3-none-any.whl
llmbench --helpFrom PyPI
pipx install llm-benchmark-managerRun the CLI
If llmbench is already on your PATH, start the interactive interface with:
llmbenchIf you installed the package with python3 -m pip install --user ... and your shell reports that ~/.local/bin is not on PATH, you can start it directly with:
"$HOME/.local/bin/llmbench"To make llmbench available as a normal command in future Bash sessions, add the user binary directory to PATH once:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcAfter that, start it simply with:
llmbenchDocker
docker build -t llm-benchmark-manager:0.3.2 .Example REST API mode:
docker run --rm \
--env-file providers.env \
-p 8765:8765 \
-v llmbench-data:/data \
llm-benchmark-manager:0.3.2 serve --host 0.0.0.0 --port 8765The image stores application data under /data. AIPerf is installed automatically because it is a normal project dependency.
Quick start
Run the interactive interface:
llmbenchFor a new provider, enter only the provider endpoint URL and API key:
New provider
Endpoint URL: https://provider.example.com
API key: ***************The provider slug is derived from the endpoint hostname. If that normalized endpoint already exists, the existing provider record is reused rather than duplicated.
For an existing provider the interactive menu supports:
full retest;
ACTIVE-only retest;UNSTABLE/FAILEDretest;refresh discovery and test only
NEWmodels;test one model;
list known models and states.
Automation CLI
llmbench provider list
llmbench provider discover PROVIDER
llmbench run PROVIDER --mode full
llmbench run PROVIDER --mode new
llmbench run PROVIDER --mode active
llmbench run PROVIDER --mode unstable_failed
llmbench run --all --mode full
llmbench model test PROVIDER MODEL_ID
llmbench results RUN_ID
llmbench history PROVIDER MODEL_ID
llmbench export RUN_ID --format json --output run.json
llmbench export RUN_ID --format csv --output run.csvPROVIDER can be the configured provider identifier/slug accepted by the service.
Provider compatibility
The built-in generic adapter targets OpenAI-compatible provider APIs and uses conventional endpoints such as:
/v1/models/v1/chat/completions/v1/embeddings
Provider-specific behavior is handled conservatively. For example, asymmetric embedding models that explicitly report that input_type is required are retried using input_type="query". Unrelated HTTP 400 errors are not blindly retried with provider-specific parameters.
A provider may expose models in its catalog that are not callable for the current account or endpoint. Those models are classified separately from genuinely broken models.
Model states
NEW— discovered but not evaluated yet.ACTIVE— passed its supported probe and, where applicable, compatible benchmark profile.UNSTABLE— usable, but transient failures or partial benchmark failures were observed.NOT_AVAILABLE— discovered, but not callable with the current provider/account/endpoint. HTTP 404 invocation responses normally map here.INCOMPATIBLE— the attempted generic request shape does not match the model capability.UNSUPPORTED— capability is known, but this release has no safe generic probe or benchmark path for it.FAILED— a definitive non-transient failure occurred on the correct supported capability path.DISABLED— manually excluded.MISSING— previously known but no longer returned by discovery.
A later retest does not rewrite the final-status summary of an earlier run.
Capabilities
Capabilities are stored independently of model health:
CHAT_TEXTEMBEDDINGVISIONMULTIMODALPARSERTRANSLATIONSAFETYRERANKSPECIALUNKNOWN
Detection is conservative and may use provider metadata, model-ID heuristics, probe feedback or an explicit manual source. Capability inference alone never marks a model as failed.
Retry and classification rules
The default error policy distinguishes provider/account availability from model quality:
401/403→ authentication/provider run issue; not a model failure;404→NOT_AVAILABLE; no identical retry;429→ rate limited; bounded retry using 1/2/5/10 seconds orRetry-Afterwhen supplied;503→ overloaded; bounded retry using 1/2/5/10 seconds;500/502/504→ transient provider error; bounded retry using 1/3 seconds;timeout/network failure → transient; bounded retry using 1/3 seconds;
capability-specific
400mismatch →INCOMPATIBLE;deterministic payload failure on the correct request shape →
FAILED.
A model that succeeds only after retry is classified UNSTABLE.
AIPerf benchmark profile
The built-in baseline-v1 profile is used for compatible CHAT_TEXT models:
input sequence length: 128 tokens;
output sequence length: 128 tokens;
requests: 10;
concurrency: 1;
streaming: enabled;
deterministic synthetic seed: 42.
The provider API key is passed to AIPerf through the child-process environment, never as a command-line argument. The temporary AIPerf configuration file is removed after the run.
EMBEDDING and other specialized capabilities are not forced through the text-generation AIPerf profile. A successful supported non-text probe may therefore finish with SKIPPED_UNSUPPORTED_PROFILE while the model itself is ACTIVE.
Progress and history
Every selected model receives a run_model_progress record before execution. This makes progress exact even when many discovered models never reach AIPerf.
Example CLI output:
[37/82] 45.1% provider/model-id
Capability: CHAT_TEXT
Smoke: PASS
Stability: PASS
AIPerf: RUNNINGProgress stages are:
PENDINGCAPABILITYSMOKESTABILITYBENCHMARKDONE
A run is complete when all selected progress rows reach DONE.
Credentials and secret handling
Interactive API keys are never stored in SQLite.
Credential storage order:
operating-system keyring when a usable backend exists;
encrypted local credential vault when no usable keyring exists;
environment-variable references for automation and container/system-service deployments.
The encrypted fallback uses a local Fernet master key and vault under the application data directory. The key and vault are protected with restrictive file modes where the operating system supports them. The local OS account remains part of the trust boundary; this fallback is not hardware-backed secret storage.
For ENV-based automation:
export PROVIDER_API_KEY='...'
llmbench provider add \
--slug example \
--name 'Example Provider' \
--url 'https://provider.example.com' \
--credential-env PROVIDER_API_KEYOnly the environment-variable name is persisted.
Provider errors are sanitized before persistence. Active secrets, bearer tokens, UUID-like request identifiers and account-like identifiers are redacted or normalized, and messages are length-capped.
Data location
The default data directory is selected with platformdirs, so it follows the operating system/user environment instead of a hard-coded home directory.
Typical locations are:
Linux:
~/.local/share/llmbench/macOS:
~/Library/Application Support/llmbench/Windows: the current user's local application-data directory under
llmbench
Override the location anywhere with:
export LLMBENCH_DATA_DIR=/path/to/llmbench-dataThe directory contains:
llmbench.db
artifacts/
credentials/ # only when encrypted-file fallback is usedNo project code assumes a specific username, server name or installation directory.
AIPerf executable resolution
AIPerf is a required dependency. LLM Benchmark Manager resolves the executable in this order:
LLMBENCH_AIPERFexplicit override;aiperfinstalled beside the Python interpreter runningllmbench(important forpipxenvironments);aiperffound onPATH.
Example override:
export LLMBENCH_AIPERF=/custom/venv/bin/aiperfREST API
Start the API locally:
llmbench serve --host 127.0.0.1 --port 8765Available API resources include:
GET /api/v1/providers
POST /api/v1/providers
GET /api/v1/providers/{provider_id}
POST /api/v1/providers/{provider_id}/discover
GET /api/v1/providers/{provider_id}/models
POST /api/v1/runs
GET /api/v1/runs/{run_id}
GET /api/v1/runs/{run_id}/progress
POST /api/v1/runs/{run_id}/cancel
GET /api/v1/runs/{run_id}/results
GET /api/v1/models/{model_db_id}
GET /api/v1/models/{model_db_id}/historyThe REST server has no built-in multi-user authentication in 0.3.2. The default bind address is loopback. Do not expose it to an untrusted network without an authentication/network-control layer such as a trusted reverse proxy or private network.
MCP server
Start the stdio MCP server:
llmbench mcpThe MCP surface includes:
benchmark_provider_list
benchmark_provider_get
benchmark_provider_discover
benchmark_model_list
benchmark_model_get
benchmark_model_history
benchmark_run_start
benchmark_run_status
benchmark_run_progress
benchmark_run_cancel
benchmark_run_results
benchmark_retest_unstable
benchmark_test_new_modelsThere is intentionally no MCP tool that returns raw provider credentials.
This allows an external agent (for example a model-management or model-design service) to request discovery and benchmarks without receiving the underlying secrets.
Exports
Run data can be exported as JSON or CSV:
llmbench export RUN_ID --format json --output run.json
llmbench export RUN_ID --format csv --output run.csvThe SQLite database remains the authoritative local history.
Security notes
Provider credentials are excluded from database records and normal responses.
AIPerf receives credentials through environment inheritance, not argv.
Persisted provider messages are sanitized.
Interactive secret input uses hidden terminal input.
Provider URLs may not contain embedded username/password credentials.
The REST service should remain private unless an external authentication layer is added.
Anyone who can read the encrypted fallback master key and vault as the same OS user can decrypt those credentials; use an OS keyring or external secret manager where a stronger boundary is required.
See SECURITY.md for the disclosure and deployment policy.
Architecture
The application is deliberately split into independent layers:
CLI / REST / MCP
|
BenchmarkService
|
+-----+------------------+
| |
Provider adapter SQLite
| |
Discovery/probes history/progress
|
AIPerfRunner (CHAT_TEXT baseline)The benchmark manager is not a model router and does not modify a production routing system. External systems consume its evidence through CLI, REST, MCP or exported data.
See docs/ARCHITECTURE.md for details.
Development and verification
python3 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
pytest -q
python -m build
python -m pip checkBefore publishing a release, also test installation into a clean environment and verify that llmbench --help and aiperf --version are available from that environment.
Contributing
Contributions are welcome. Please read CONTRIBUTING.md. Do not include real API keys, provider account identifiers, local databases or benchmark artifacts containing private data in issues or commits.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for building and testing AI agents with multi-model experimentation and insights.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Cross-tool persistent memory and context for AI assistants over MCP.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceLocal-first, auditable memory for AI agents. Provides durable context for MCP hosts with SQLite storage, CLI, and MCP tools for memory management.2Apache 2.0

ellmos-homebase-mcpofficial
AlicenseNot gradedqualityCmaintenanceEnables local-first LLM orchestration with persistent memory, knowledge management, routing, swarm patterns, API probing, tests, automation planning, and plugin discovery via a stdio MCP server, using SQLite for offline storage.255 npm1MIT- FlicenseNot gradedqualityCmaintenanceAn MCP server that provides an AI LLM orchestrator supporting multiple providers (LM Studio, Ollama, OpenAI, generic) plus SQLite-backed memory, kanban, and todo databases for persistent task and knowledge management.-
- AlicenseNot gradedqualityBmaintenanceA persistent AI partner MCP server that keeps identity, memory, goals and refusals in a local SQLite substrate, renting language work from Claude, ChatGPT, Kimi, local models or any BYOK OpenAI-compatible provider, with governed shell/fs/http tools, MCP "hands" gated by state-transition-validated cognition, loopback-only security, and tamper-evident audit.10AGPL 3.0