Skip to content

CLI Commands

The modellens CLI is the primary entry point for Model Lens. It’s built with Click and delegates to the appropriate benchmark framework.

modellens --help
modellens --version
Terminal window
modellens run [OPTIONS]
OptionTypeDefaultDescription
--provider, -pchoiceauto-detectlm-studio, ollama, open-webui, jan, llama.cpp, vllm
--models, -mmultipleauto-detectModels to benchmark (repeatable)
--model-namestringSingle model name (alias for --models)
--framework, -fchoicedevbenchdevbench, general, compare
--output-dir, -ostringresultsOutput directory
--num-runs, -nint5Runs per prompt (devbench)
--num-promptsint20Prompt count
--samplesintSamples per benchmark (general)
--quickflagQuick mode: fewer prompts and runs
--config, -cstringConfig file path
--parallel/--sequentialflag--parallelParallel execution
--seedintRandom seed
--verbose, -vflagShow raw model responses
--ciflagCI-safe headless mode
--traces-dirstringresults/tracesTrace capture directory
--no-tracesflagDisable trace capture
--sse-portintEnable SSE streaming on port N
--json-outputflagOutput results as JSON to stdout
Terminal window
# Auto-detect provider and models, quick mode
modellens run --quick
# Ollama with specific models
modellens run --provider ollama --models llama3.2
# General benchmark framework
modellens run --framework general --model-name my-model --samples 50
# Model comparison (both frameworks)
modellens run --framework compare --models qwen3.5 gemma-4
# SSE streaming for dashboard
modellens run --sse-port 9090
# CI mode with JSON output
modellens run --ci --json-output > results.json

Terminal window
modellens workload run [OPTIONS]
OptionTypeDefaultDescription
--model, -mstring(required)Model to evaluate
--project, -pstringauto-detectProject path to evaluate
--output-dir, -ostringresults/workloadOutput directory
Terminal window
modellens workload run --model qwen3.5-9b
modellens workload run --model qwen3.5-9b --project /path/to/react-app

Terminal window
modellens info

Displays:

  • Hardware details (CPU, GPU, RAM, OS, architecture)
  • Python version
  • Connected providers and their status
  • Available models on each provider

Terminal window
modellens models [OPTIONS]
OptionTypeDefaultDescription
--provider, -pchoiceauto-detectFilter by provider
Terminal window
modellens models
modellens models --provider ollama

Terminal window
modellens leaderboard [OPTIONS] [RESULTS_DIR]
OptionTypeDefaultDescription
--formatchoicetabletable, json, csv
--sort-bystringoverall_scoreSort column
--limitint20Max results
Terminal window
modellens leaderboard results/
modellens leaderboard --format json --sort-by tokens_per_sec

Terminal window
modellens health [OPTIONS]
OptionTypeDefaultDescription
--provider, -pchoiceauto-detectProvider to check
Terminal window
modellens health
modellens health --provider ollama

Terminal window
modellens compare [OPTIONS] MODEL_A MODEL_B

Runs both models against the same benchmarks and produces side-by-side results.

Terminal window
modellens compare qwen3.5-9b gemma-4-9b