# Kiln

> A desktop workbench for evals, prompt optimization, RAG and fine-tuning in one project

- Category: Evaluation & Production Ops / Evaluation & Red-Teaming
- Language: Python
- Licence: MIT (core library and REST server); desktop app source-available under the Kiln AI Desktop EULA
- Repository: https://github.com/Kiln-AI/Kiln
- Website: https://kiln.tech
- Canonical page: https://ai-tldr.dev/tools/kiln/

## In short

Kiln is a workbench for the full AI development loop — evals, optimization, prompts, RAG, fine-tuning, synthetic data, agents and tools — held together in one project rather than spread across scripts and notebooks. It sits in the Evaluation & Red-Teaming category of the Evaluation & Production Ops tools and is open-source, written in Python and licensed MIT (core library and REST server); desktop app source-available under the Kiln AI Desktop EULA.

## Overview

Kiln is a workbench for the full AI development loop — evals, optimization, prompts, RAG, fine-tuning, synthetic data, agents and tools — held together in one project rather than spread across scripts and notebooks. The desktop app runs on macOS, Windows and Linux with a one-click install.

Its centre of gravity is evaluation. The Eval Builder auto-generates a judge and a synthetic eval dataset and walks you through aligning it to your own preferences, so a task gets a repeatable score instead of a vibe check. Auto-Optimize then searches for the best way to run that task, tuning the prompt, model selection, tools, skills, subagents and parameters against the eval you just built.

Kiln is deliberately local-first: it runs on your machine, you bring your own API keys, and it can go fully offline with Ollama. Team collaboration rides on Git — the app syncs a project to a repository automatically, including for teammates who do not use Git directly, which lets non-engineers rate outputs and contribute data. The same engine ships as the MIT-licensed `kiln-ai` Python library, so a task built in the app deploys to production without a rewrite.

The repository is multi-licensed: the core Python library and REST server are MIT, while the desktop app is source-available under the Kiln AI Desktop EULA and free to download and use.

## What it does

- Eval Builder that auto-generates an LLM judge plus a synthetic eval dataset and aligns it to your ratings
- Auto-Optimize — searches prompts, models, tools, skills, subagents and parameters against your eval
- Drag-and-drop RAG over PDFs, images, video and audio, with RAG evals generated from your own documents
- Subagent composition, each running in its own focused context window, plus tools and MCP support
- Zero-code fine-tuning across 60+ models on Fireworks, Together and Vertex, with serverless deployment
- Synthetic data generation for eval sets and fine-tuning datasets
- Git-native collaboration so PMs, subject experts and QA can contribute without writing code
- MIT-licensed `kiln-ai` Python library that runs the same tasks in production

## Getting started

There are two entry points: the desktop app for building and evaluating a task interactively, and the Python library for running that same task in your own code.

1. Install the desktop app

   Download Kiln Desktop for macOS, Windows or Linux from kiln.tech/download — it is a one-click install — then follow the 5-minute quickstart at docs.kiln.tech to run your first task.

2. Install the Python library

   The MIT-licensed kiln-ai package is the same library the app uses, so it loads Kiln projects and runs the tasks you built in the GUI.

```bash
pip install kiln-ai
```

3. Connect a model provider

   Kiln runs locally and expects your own API keys. It has tested 190+ models across OpenAI, Anthropic, Gemini, Bedrock, Ollama, OpenRouter, Fireworks, Groq and any OpenAI-compatible endpoint. Point it at Ollama to stay fully offline.

4. Build an eval, then optimize against it

   Use the Eval Builder to generate a judge and eval dataset for your task and align it to your ratings — the docs put this at roughly ten minutes. Then run Auto-Optimize to search prompts, models and parameters against that eval.

## When to use it

- Give a prompt or agent a repeatable score before shipping it, instead of judging outputs by hand
- Let a PM or subject-matter expert rate outputs and add data without touching the codebase
- Search automatically for the cheapest model and prompt that still passes your eval
- Generate a synthetic dataset and fine-tune a smaller model to replace a costly frontier call
- Keep an evaluated AI task versioned in Git alongside the rest of your project
