The TensorZero UI is a self-hosted web application that streamlines the use of TensorZero with features like observability and optimization. It’s easy to get started with the TensorZero UI.
See the TensorZero Gateway Deployment Guide for more details on how to deploy the gateway and ClickHouse database.

Setup

To use the TensorZero UI, you only need your ClickHouse database URL (TENSORZERO_CLICKHOUSE_URL) and TensorZero Gateway URL (TENSORZERO_GATEWAY_URL). Optionally, you can also provide credentials for fine-tuning APIs.

Credentials for Fine-tuning

The TensorZero UI integrates with model providers like OpenAI to streamline workflows like fine-tuning. To use these features, you need to provide credentials for the relevant model providers as environment variables. You don’t need to provide credentials if you’re not using the fine-tuning features for those providers. The supported fine-tuning providers and their required credentials (environment variables) are:
ProviderRequired Credentials
Fireworks AIFIREWORKS_ACCOUNT_ID FIREWORKS_API_KEY
OpenAIOPENAI_API_KEY
Together AITOGETHER_API_KEY
GCP VertexGCP account credentials
We’re planning to add support for more fine-tuning providers in the near future.

Optional Environment Variables

The TensorZero UI supports the following optional environment variables. You can set TENSORZERO_UI_CONFIG_PATH to a custom path to the TensorZero configuration file. When using the official Docker image, this value defaults to /app/config/tensorzero.toml. For certain uncommon scenarios (e.g. IPv6), you can also customize HOST inside the UI container. See the Vite documentation for more details.

Deployment

The TensorZero UI is available on Docker Hub as tensorzero/ui.

Running with Docker Compose (Recommended)

Running with Docker (Recommended)