# Experiential

> One OpenAI-compatible control plane over hosted, BYOK, local and custom models

- Category: Evaluation & Production Ops / Gateways & Routing
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/experientiallabs/experiential
- Website: https://experientiallabs.ai
- Canonical page: https://ai-tldr.dev/tools/experiential/
- Updated: 2026-08-28

## In short

Experiential is an open-source gateway and router for agent workflows. It sits in the Gateways & Routing category of the Evaluation & Production Ops tools and is open-source, written in Python and licensed Apache-2.0. To get started: start a local gateway.

## Overview

Experiential is an open-source gateway and router for agent workflows. It does three things: it puts hosted, BYOK, local and custom models behind one OpenAI-compatible API; it controls which users and agents may use which models, for which use cases, and how much they can spend; and it turns production traffic into a custom router — or a custom model — optimised for quality, speed and cost.

The local gateway is a pip install and a single command. On first run a setup wizard walks through provider connections, model and reasoning-effort selection, then shows defaults for the public alias, the identity and a command budget before printing a one-time key. From there the gateway serves the usual /v1/chat/completions surface on loopback, backed by a compiled native data plane, and a Python helper loads a fitted project router as an ordinary OpenAI client.

The optimisation path starts from OpenTelemetry traces of your existing agent: exp build walks you through providers, models and budget and constructs a simulation from those traces, against which a router is optimised; exp optimize model then fine-tunes an open-source model you own. A hosted gateway serving the same OpenAI-compatible and Anthropic Messages APIs is available if you would rather not run one, and the repository ships copy-paste setup prompts you can hand to a coding agent. Anonymous aggregate product telemetry is on by default and can be turned off with exp config telemetry disable.

## What it does

- One OpenAI-compatible API over hosted, BYOK, local and custom models, with the hosted gateway also serving the Anthropic Messages API
- Per-identity governance: which users and agents can reach which models, for which use cases, and under what spend budget
- Router fitting from your own OpenTelemetry traces — exp build constructs a simulation and optimises a router against it
- exp optimize model fine-tunes an open-source model you own from the traffic the router collected
- Local single-command gateway with a first-run setup wizard, a compiled native data plane, and a one-time issued key
- exp.load_router() returns a fitted project router as an official OpenAI client backed by its own private gateway

## Getting started

Install the package and run exp; the first-run wizard handles providers, the public alias, the identity and a command budget, then prints a one-time key.

1. Start a local gateway

   The wizard persists every selected provider connection and prints the key once. Choose a public alias such as opus-5 during setup.

```bash
pip install experiential
exp
```

2. Send a request

   The gateway serves the OpenAI chat-completions surface on loopback at port 8000.

```bash
export EXP_GATEWAY_KEY=...
curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Authorization: Bearer $EXP_GATEWAY_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"model":"opus-5","messages":[{"role":"user","content":"Help me"}]}'
```

3. Build a router from your traces

   Collect OpenTelemetry traces from your current agent, then build a project: the command walks through providers, models and budget and asks for the trace file. A public terminal-tasks OTLP dataset is available if you just want to try it.

```bash
exp build support-agent
```

4. Load the fitted router from Python

   load_router returns an official OpenAI client backed by the router's own private gateway.

```python
import exp

with exp.load_router("my-project") as client:
    response = client.chat.completions.create(
        model="my-project",
        messages=[{"role": "user", "content": "hello"}],
    )
```

## When to use it

- Give a team one endpoint and one key format across several model providers, without rewriting each agent for each vendor
- Cap what an individual agent or user can spend, and restrict which models it may reach, before the bill arrives
- Repoint existing coding agents (Claude Code, Cursor, Codex, Aider) at a gateway you control so their traffic is logged and governed
- Turn recorded production traces into a cheaper routing policy, or into a fine-tuned open-source model you own

## Version history

- 2026-08-28: Experiential launched on Show HN as an Apache-2.0 model gateway putting hosted, open-source, local and custom models behind one OpenAI-compatible API, billed at provider prices with no token markup.
