# Pezzo

> Self-hostable LLMOps: manage prompts, then watch what they cost

- Category: Evaluation & Production Ops / Observability & LLMOps
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/pezzolabs/pezzo
- Website: https://pezzo.ai/
- Canonical page: https://ai-tldr.dev/tools/pezzo/

## In short

Pezzo is an open-source, cloud-native LLMOps platform. It sits in the Observability & LLMOps category of the Evaluation & Production Ops tools and is open-source, written in TypeScript and licensed Apache-2.0. To get started: check the prerequisites.

## Overview

Pezzo is an open-source, cloud-native LLMOps platform. It puts prompt management and production observability in one place: prompts are stored, versioned and edited in a console rather than pasted into source files, and every request made through a Pezzo client is traced so you can see what ran, what it cost, how long it took and what came back. The pitch is that a prompt change should be deliverable without a deploy, and its effect should be visible immediately.

Three capabilities are offered consistently across the clients — prompt management, observability and caching — via the Node.js client (`@pezzo/client` on npm), the Python client, and a LangChain integration. Caching is the direct cost lever: repeated calls can be served without hitting the provider, which is where the project's claim of saving up to 90% on cost and latency comes from.

The whole stack is self-hostable and built entirely on open-source infrastructure — PostgreSQL for application data, ClickHouse for the request telemetry, Redis, and Supertokens for auth — with a Docker Compose path for running it locally and a managed Pezzo Cloud for teams that would rather not. It is licensed Apache 2.0, and the repository also documents a development mode for working on Pezzo itself.

## What it does

- Prompt management: store, version, edit and collaborate on prompts in a console, and deliver changes without a redeploy
- Observability over every AI request made through a Pezzo client — troubleshooting, cost and latency visibility
- Response caching to cut repeated provider calls, the mechanism behind the project's cost and latency savings claim
- Node.js (@pezzo/client), Python and LangChain clients, all three supporting prompt management, observability and caching
- Fully self-hostable on open-source infrastructure: PostgreSQL, ClickHouse, Redis and Supertokens
- Docker Compose deployment for local or on-prem use, plus a hosted Pezzo Cloud option

## Getting started

The fastest way to run the full stack is the Docker Compose path documented under 'Running With Docker Compose' in the Pezzo documentation. The steps below are the repository's development mode, which runs the server and console from source.

1. Check the prerequisites

   Development mode needs Node.js 18+ and Docker. The GraphQL Language Feature Support VS Code extension is recommended.

```bash
node --version   # 18 or newer
docker --version
```

2. Install dependencies and set up the environment

   Pezzo reads configuration from a .env file; when using Docker you also create a .env.docker. See .env.example for reference.

```bash
npm install
```

3. Start the infrastructure dependencies

   PostgreSQL, ClickHouse, Redis and Supertokens all come up from the bundled compose file.

```bash
docker-compose -f docker-compose.infra.yaml up
```

4. Migrate and run the server

   Deploy the Prisma migrations, then start the API. Verify it at http://localhost:3000/api/healthz.

```bash
npx dotenv-cli -e apps/server/.env -- npx prisma migrate deploy --schema apps/server/prisma/schema.prisma
npx nx serve server
```

5. Run the console

   The Pezzo Console is then available at http://localhost:4200. In development you will also want GraphQL codegen running in watch mode in a separate terminal.

```bash
npm run graphql:codegen:watch   # separate terminal
npx nx serve console
```

6. Connect your app

   Install the client for your language and point it at your Pezzo instance. The Node.js client is published as @pezzo/client; a Python client and a LangChain integration are also supported.

```bash
npm install @pezzo/client
```

## When to use it

- Move prompts out of the codebase so product and prompt changes ship without a deploy
- Trace LLM requests in production to find the calls that are slow, expensive or failing
- Cut spend on repetitive requests by caching responses at the client layer
- Run prompt management and LLM observability entirely on your own infrastructure when data cannot go to a hosted vendor
