TensorZero

Normal
GitHub Rust Apache-2.0

Description

TensorZero is an open-source LLMOps platform that unifies an LLM gateway, observability, evaluation, optimization, and A/B testing, designed for production agents.

Key Features

  • Unified LLM gateway - one API for Anthropic, OpenAI, Bedrock, Gemini, vLLM, and 20+ providers
  • Sub-1ms p99 overhead at 10k+ QPS - Rust core built for production-grade throughput
  • Inference and feedback storage - own your data in your own database
  • OpenTelemetry export - feed OTLP traces and Prometheus metrics into your existing stack
  • Built-in A/B testing, routing, retries, and fallbacks for confident rollouts
  • Optimization flywheel - SFT, RLHF, MIPRO, and GEPA turn production data into better models

Use Cases

💡 Routing a fleet of AI agents through one OpenAI-compatible gateway
💡 Debugging and replaying LLM calls in production with full OpenTelemetry traces
💡 Running LLM-as-a-judge evals on production data to detect regressions early
💡 A/B testing two prompt variants with adaptive statistical routing
💡 Fine-tuning models with SFT/RLHF on captured production data and feedback

Strengths & Limitations

Strengths

  • High community interest (11.7k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (2 years in production)

Quick Start

# 1. Deploy the TensorZero Gateway (one Docker container)
docker run -d -p 3000:3000 \
  -e TENSORZERO_CLICKHOUSE_URL=http://clickhouse:8123 \
  -e TENSORZERO_POSTGRES_URL=postgresql://user:pass@postgres:5432/db \
  tensorzero/gateway

# 2. Point your OpenAI client at the gateway
from openai import OpenAI
client = OpenAI(base_url="http://localhost:3000/openai/v1", api_key="not-used")

response = client.chat.completions.create(
  model="tensorzero::model_name::anthropic::claude-sonnet-4-6",
  messages=[{"role": "user", "content": "Share a fun fact about TensorZero."}],
)
print(response.choices[0].message.content)

Related Projects

Plano

7.0k · Rust
Active A

An AI-native proxy and data plane for agentic apps with built-in orchestration, safety, observability, and smart LLM routing so developers can focus on agent core logic.

llm-gatewayllm-routingobservability +2
  • · AI-native proxy and data plane with built-in orchestration and safety
  • · YAML-based agent descriptions for intelligent routing without hand-written logic
  • · Agentic Signals for zero-code full-chain observability capture

DeepEval

17.6k · Python
Active A

DeepEval is an open-source evaluation framework for LLM applications. It provides rich evaluation metrics and tools, supporting unit testing and integration testing to help developers build reliable LLM applications.

llmevaluationtesting +1
  • · Pytest-compatible LLM evaluation framework with ready-to-use metrics for agents, RAG, and chatbots
  • · Agentic metrics including Task Completion, Tool Correctness, Step Efficiency, and Plan Adherence
  • · RAG metrics covering Answer Relevancy, Faithfulness, Contextual Recall/Precision/Relevancy, and RAGAS

AxonHub

5.0k · Go
Active A

Open-source AI gateway that lets any SDK call 100+ LLMs. Built-in failover, load balancing, cost controls, and end-to-end tracing for production AI agent workloads.

agent-toolsllm-gatewayobservability +2
  • · Unified LLM gateway - call 100+ models through OpenAI and Anthropic compatible protocols
  • · Automatic failover - switch to backup providers when the primary one is down
  • · Smart load balancing - distribute requests across model instances to avoid overload

SwanLab

4.2k · Python
Active A+

An open-source, modern-design AI training tracking and visualization tool. Supports PyTorch, Transformers and more. Monitor and evaluate AI agent training processes.

pythonobservabilityevaluation +2
  • · Seamless integration with 50+ mainstream frameworks: native support for PyTorch, Transformers, HuggingFace Accelerate, PaddleNLP, NVIDIA NeMo RL and more, with two lines of code to connect training pipelines
  • · Rich visualization system: supports line charts, scalar plots, PR curves, ROC curves, confusion matrices, 3D point clouds, molecular structures, ECharts custom charts and 20+ chart types
  • · Multi-dimensional hardware monitoring: real-time monitoring of GPU (NVIDIA/AMD ROCm/Hygon DCU/Cambricon MLU/Moore Threads/Muxi/Iluvatar/Kunlun), disk utilization, network traffic and other hardware metrics