LLMxRay

•
30
•

Monitor, inspect, and optimize local LLM interactions and prompt caching behavior for Ollama via a transparent proxy and observability suite.

LLMxRay serves as a comprehensive local LLM observatory and proxy designed specifically for Ollama. By routing requests from editors, agents, and scripts through a local transparent proxy, it surfaces detailed execution metrics such as prefill and generation speeds, prompt cache hits, VRAM consumption, silent context trimmings, and tool calling accuracy. With an integrated web interface, OpenTelemetry trace exporting, and a built-in MCP server, it allows developers and autonomous agents to diagnose performance bottlenecks and optimize prompts completely offline without exposing data to the cloud.

Características Principales

01Zero-config transparent proxy forwarding to Ollama with real-time turn monitoring and cache analysis
02Prompt X-ray visualizer showing prompt composition, cache hits, recomputations, and context truncation
03VRAM mapping and context estimation to track GPU memory utilization and model capacity
04Built-in MCP server with 7 read-only diagnostic tools enabling agents to introspect their own execution performance
05OpenTelemetry span exporter compatible with Jaeger, Arize Phoenix, Langfuse, and Grafana Tempo
0629 GitHub stars

Casos de Uso

01Debugging prompt cache invalidation and context window trimming in local coding agents and tools like VS Code Copilot or Continue
02Enabling local AI agents to self-diagnose slow generation, high prefill latency, or excessive tool schema overhead via MCP
03Benchmarking model tool-calling compliance and comparing Ollama API protocols side-by-side