llmprobe
![]()
llmprobe
Зондирование конечных точек API LLM. Измерение TTFT, задержки, пропускной способности. Один бинарный файл, ноль SDK.
llmprobe — это CLI-инструмент, который зондирует конечные точки API LLM и измеряет метрики, важные для надежности в продакшене: время до первого токена (TTFT), общую задержку, пропускную способность генерации (токенов/сек) и частоту ошибок.
Используйте его для разовой проверки работоспособности, непрерывного мониторинга или в качестве CI-шлюза, который блокирует развертывание, если ваш провайдер LLM работает нестабильно.

Быстрый старт
Скачайте предварительно собранный бинарный файл из последнего релиза (Linux, macOS, Windows; amd64 и arm64).
Или установите из исходного кода:
go install github.com/Jwrede/llmprobe@latestСоздайте probes.yml (или скопируйте прилагаемый пример):
providers:
- name: openai
api_key: ${OPENAI_API_KEY}
models:
- name: gpt-4o
thresholds:
max_ttft: 2s
- name: gpt-4o-mini
thresholds:
max_ttft: 500ms
- name: anthropic
api_key: ${ANTHROPIC_API_KEY}
models:
- name: claude-sonnet-4-20250514
thresholds:
max_ttft: 1sЗапустите зонд:
$ llmprobe probe
Provider Model Status TTFT Latency Tok/s Tokens Error
-------- ----- ------ ---- ------- ----- ------ -----
openai gpt-4o healthy 312ms 2100ms 68.4 42
openai gpt-4o-mini healthy 98ms 814ms 112.3 56
anthropic claude-sonnet-4-20250514 healthy 420ms 2831ms 52.1 38
azure gpt-4o healthy 289ms 1950ms 71.2 44
bedrock anthropic.claude-3-5... degraded 1820ms 4510ms 28.1 38
4 healthy, 1 degraded, 0 errorsRelated MCP server: LLM API Benchmark MCP Server
Что он измеряет
Метрика | Что это значит |
TTFT | Время от отправки запроса до первого токена контента. Это то, что пользователи ощущают как «задержку» перед началом потоковой передачи ответа. |
Задержка | Общее время от запроса до закрытия потока. |
Ток/с | Пропускная способность генерации: количество токенов, создаваемых в секунду после первого токена. Рассчитывается как |
Токены | Общее количество выходных токенов. Предпочтение отдается метаданным использования провайдера, если они доступны, в противном случае используется подсчет событий SSE. |
Статус |
|
Команды
llmprobe probe
Разовая проверка работоспособности. Зондирует все настроенные конечные точки и выводит результаты.
llmprobe probe # table output
llmprobe probe -f json # JSON output
llmprobe probe --fail-on degraded # exit 1 if any endpoint is degraded
llmprobe probe -c custom-config.yml # custom config pathКоды выхода для CI:
| Выход 0 | Выход 1 |
| healthy или degraded | любая ошибка |
| только healthy | degraded или error |
| всегда | никогда |
llmprobe watch
Непрерывный мониторинг. Зондирует все конечные точки с заданным интервалом и выводит строку сводки для каждой итерации.
llmprobe watch # default 60s interval
llmprobe watch --interval 30s # custom interval
llmprobe watch --tui # live terminal dashboard with TTFT chart
llmprobe watch --tui --load data.jsonl # load historical data into the dashboard
llmprobe watch -f json # JSONL output (one line per result)Флаг --tui запускает интерактивную панель мониторинга в терминале с графиком TTFT, цветовой легендой и таблицей статистики. Используйте --load для импорта исторических данных JSONL (из llmprobe watch -f json > data.jsonl).

$ llmprobe watch --interval 30s
Watching 4 endpoints every 30s (Ctrl+C to stop)
[14:01:02] All 4 endpoints healthy.
[14:01:32] All 4 endpoints healthy.
[14:02:02] 3 healthy, 1 degraded, 0 errors. DEGRADED: openai/gpt-4o (TTFT 1820ms)
[14:02:32] All 4 endpoints healthy.Интеграция с CI
Используйте llmprobe probe в качестве шлюза перед развертыванием:
# .github/workflows/deploy.yml
- name: Check LLM providers
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
go install github.com/Jwrede/llmprobe@latest
llmprobe probe --fail-on degradedЭто заблокирует развертывание, если какой-либо провайдер LLM в данный момент демонстрирует сниженную производительность.
MCP-сервер
llmprobe включает встроенный сервер Model Context Protocol, позволяющий Claude Code и другим хостам MCP проверять работоспособность API LLM непосредственно из рабочего процесса агента.
Запуск сервера
llmprobe mcpЭто запускает MCP-сервер через stdio.
Регистрация в Claude Code
claude mcp add --transport stdio llmprobe -- llmprobe mcpПосле регистрации Claude Code может вызывать инструменты llmprobe во время любого разговора.
Доступные инструменты
Инструмент | Описание |
| Зондирует все настроенные конечные точки из |
| Зондирует одну модель без файла конфигурации. Требует |
| Выводит список всех провайдеров и моделей в файле конфигурации с их порогами. Используйте это для обнаружения доступных моделей перед зондированием. |
| Возвращает полную разобранную конфигурацию, включая значения по умолчанию, провайдеров, модели и пороги. |
Пример использования: Агент вызывает list_providers, чтобы увидеть, какие модели настроены, а затем probe_all, чтобы убедиться в их работоспособности перед развертыванием изменений.
Конфигурация
defaults:
prompt: "Hello" # probe prompt
max_tokens: 20 # max output tokens
timeout: 30s # per-probe timeout
concurrency: 5 # max parallel probes
providers:
- name: openai # openai, anthropic, google, azure, bedrock
api_key: ${OPENAI_API_KEY} # env var expansion
base_url: https://custom.api # optional, override endpoint
models:
- name: gpt-4o
prompt: "Say hello." # override default prompt
max_tokens: 10 # override default max_tokens
thresholds:
max_ttft: 2s # alert if TTFT exceeds this
max_latency: 10s # alert if total latency exceeds this
min_tokens_per_sec: 20 # alert if throughput drops below this
- name: azure
api_key: ${AZURE_OPENAI_API_KEY}
base_url: https://your-resource.openai.azure.com
api_version: "2024-10-21" # optional, defaults to 2024-10-21
models:
- name: gpt-4o # deployment name
- name: bedrock
access_key: ${AWS_ACCESS_KEY_ID}
secret_key: ${AWS_SECRET_ACCESS_KEY}
region: us-east-1
models:
- name: anthropic.claude-3-5-sonnet-20241022-v2:0API-ключи и учетные данные AWS поддерживают синтаксис ${ENV_VAR}. Разворачиваются только поля учетных данных, поэтому ссылки на переменные окружения в промптах или именах моделей остаются без изменений.
Провайдеры, совместимые с OpenAI
Многие провайдеры (Groq, Together AI, Fireworks, DeepSeek, Mistral, OpenRouter, Ollama, vLLM) предоставляют API, совместимый с OpenAI. Они работают «из коробки» при установке base_url:
providers:
# Groq
- name: openai
api_key: ${GROQ_API_KEY}
base_url: https://api.groq.com/openai
models:
- name: llama-3.3-70b-versatile
# DeepSeek
- name: openai
api_key: ${DEEPSEEK_API_KEY}
base_url: https://api.deepseek.com
models:
- name: deepseek-chat
# Together AI
- name: openai
api_key: ${TOGETHER_API_KEY}
base_url: https://api.together.xyz
models:
- name: meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
# Local Ollama
- name: openai
api_key: unused
base_url: http://localhost:11434/v1
models:
- name: llama3.2Архитектура
probes.yml
-> Config loader (YAML + env var expansion)
-> Probe engine (concurrent goroutines per provider/model)
-> Provider clients (raw HTTP + SSE parsing, no SDKs)
-> Results (TTFT, latency, tokens/sec, status)
-> Output (table, JSON, JSONL)Каждый клиент провайдера — это тонкая HTTP-обертка, которая отправляет потоковый запрос и анализирует ответ. SDK LLM не импортируются. Парсер SSE обрабатывает как события только с данными (OpenAI, Google), так и именованные события (Anthropic). Клиент Bedrock реализует подпись SigV4 и парсинг бинарного потока событий AWS с нуля.
TTFT измеряется с момента отправки HTTP-запроса до первого события, содержащего фактический текстовый контент (не назначения ролей или метаданные).
Провайдеры
Провайдер | Конечная точка | Авторизация | Формат потока |
OpenAI |
|
| SSE, |
Anthropic |
|
| named-event SSE |
|
| SSE | |
Azure OpenAI |
|
| SSE, |
AWS Bedrock |
| SigV4 | AWS binary event stream |
OpenAI-compat |
|
| SSE |
Совместимость с OpenAI охватывает: Groq, Together AI, Fireworks, DeepSeek, Mistral, OpenRouter, Ollama, vLLM и любую конечную точку, поддерживающую API чат-комплитов OpenAI.
Живой бенчмарк
llm-bench использует llmprobe для проведения непрерывного публичного бенчмарка основных API LLM. Результаты публикуются в виде открытого набора данных JSONL и интерактивной панели мониторинга в терминале на bench.jonathanwrede.de.
Дорожная карта
Отслеживание базовых показателей: хранение скользящих перцентилей, оповещение, когда текущий зонд превышает базовый уровень Nx
Экспорт метрик OpenTelemetry для интеграции с Grafana/Datadog
Конечная точка Prometheus
/metricsВалидация структурированного вывода: проверка корректности парсинга ответов в режиме JSON
Лицензия
MIT
Available Tools
4 toolsget_configA
Return the full parsed configuration including defaults, providers, models, and thresholds. Useful for understanding the current probe setup or debugging configuration issues.
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | path to probes.yml config file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Describes return contents but does not mention side effects, auth requirements, or rate limits. No annotations exist to supplement.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two efficient sentences, no redundancy, front-loaded with purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Adequately covers purpose, return content, and common use cases for a simple tool with one optional parameter and no output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema covers the single parameter with description. Description adds no extra meaning beyond 'full parsed configuration'; baseline 3 due to high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states it returns the full parsed configuration, listing included elements (defaults, providers, models, thresholds). Distinct from siblings like list_providers or probe_all.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Indicates usefulness for understanding setup or debugging, implying context. Lacks explicit when-not-to-use or comparison to siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_providersA
List all providers and models defined in the config file. Returns provider names, model identifiers, and any configured thresholds. Use this to discover what models are available before probing.
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | path to probes.yml config file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Implicitly a read operation, but with no annotations, the description should explicitly state it is read-only or disclose any side effects. It lacks explicit non-destructive guarantee.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences: first states what it does, second tells when to use it. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple single-parameter tool with no output schema, the description is sufficiently complete, covering purpose, returns, and usage context. Minor gap in behavioral transparency.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with a single parameter described. The description adds no additional meaning beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it lists providers and models from a config file, specifying the exact information returned (names, identifiers, thresholds). This distinguishes it from sibling tools like 'probe_all' or 'get_config'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly advises using it 'before probing', providing clear usage context. However, it does not contrast with siblings or specify when not to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
probe_allA
Probe all configured LLM API endpoints. Returns TTFT (ms), total latency (ms), throughput (tokens/sec), and health status for every model in the config file.
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | path to probes.yml config file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. It discloses return values and that it uses a config file, but does not mention side effects, error handling, or whether it's read-only. Adequate but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence that is concise, front-loaded, and contains no filler. Every word adds value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description adequately explains the return values. The single optional parameter is well-described. Sibling tool context implies complementarity with 'probe_model'. Complete for a probing tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with a clear description for the 'config' parameter. The description adds context by explaining that the config file determines which endpoints are probed, enhancing the schema's meaning.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Probe all configured LLM API endpoints') and specifies the exact metrics returned (TTFT, latency, throughput, health status). It distinguishes from sibling 'probe_model' which likely targets a single model.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives like 'probe_model' or 'get_config'. The description does not specify prerequisites or scenarios where this tool is appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
probe_modelA
Probe a single LLM model by provider and model name. Use this for ad-hoc checks without a config file. Returns TTFT (ms), total latency (ms), throughput (tokens/sec), and health status.
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | provider name (openai, anthropic, google, azure, bedrock) | |
| model | Yes | model identifier (e.g. gpt-4o, claude-sonnet-4-20250514) | |
| api_key_env | Yes | environment variable name containing the API key | |
| base_url | No | optional base URL for OpenAI-compatible endpoints (e.g. http://localhost:8000) | |
| label | No | optional display name for the endpoint (e.g. vllm-local) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It discloses return values (TTFT, latency, throughput, health status) and states it probes a model, but fails to mention side effects (e.g., real API call) or safety properties (read-only vs. destructive). This is adequate but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, each carrying essential information: first sentence states purpose and parameters, second sentence clarifies usage context and return values. No redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 5-parameter tool with no output schema, the description adequately covers return values and usage context. It could mention that the tool makes a live API call, but overall completeness is high for a simple diagnostic tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so baseline is 3. The description does not add parameter-level details beyond what the schema already provides; it only mentions 'provider and model name' generically.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Probe') and explicitly states the resource ('single LLM model by provider and model name'). It also distinguishes from siblings (probe_all, list_providers) by noting ad-hoc single-model use without a config file.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly recommends use for 'ad-hoc checks without a config file', implying when to use this tool. Sibling names (probe_all, list_providers, get_config) provide contrast, but no explicit exclusions or when-not-to-use guidance are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v1.4.0- Removed
check_model - Added
get_config - Added
list_providers - Removed
probe - Added
probe_all - Added
probe_model
2 tool updates
v0.1.0- First observed
check_model - First observed
probe
TDQS
Scored across 4 tools
Each tool has a distinct purpose: configuration retrieval, provider listing, bulk probing, and single model probing. No overlap.
All tool names follow a consistent verb_noun pattern (get_config, list_providers, probe_all, probe_model) with appropriate verbs.
4 tools is well-scoped for the LLM probing domain, covering necessary operations without bloat.
The tool set covers all essential probe operations: viewing config, listing providers, probing all endpoints, and probing a single endpoint, with no obvious gaps.
Maintenance
Related MCP Connectors
Measured latency, time to first token and uptime for ~45 AI inference APIs, by region.
Live LLM API price + status radar across 11 providers, with public per-model price HISTORY.
35-probe LLM/agent security red-team scan (injection, jailbreak, MCP abuse) with report.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides a universal bridge to interact with any OpenAI-compatible LLM API (local or cloud), enabling model testing, benchmarking, quality evaluation, and chat operations with performance metrics.8-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables benchmarking of Large Language Model APIs by measuring performance metrics such as generation throughput, prompt throughput, and Time To First Token (TTFT) with configurable concurrency levels and parameters.1MIT
- AlicenseNot gradedqualityDmaintenanceExposes queryable GPU inference benchmark data (quantization, throughput, VRAM, concurrent users) as tools for LLM clients.MIT

qa-probeofficial
AlicenseAqualityCmaintenanceProbes your live API and classifies why each endpoint failed (root cause, evidence, and a calibrated confidence level), exposed over MCP so your AI assistant debugs from evidence instead of guessing. Works with FastAPI, Express, Next.js, tRPC, and GraphQL.83 npm2Apache 2.0