Credentials. The gateway holds your provider keys and issues a key of its own, so keep both out of git and out of shared shells.
Who it is forA developer who switches between providers and wants a single OpenAI-compatible endpoint with a budget on it.
The problemEvery tool wants its own provider key and URL, and nothing stops one runaway agent from burning through money.
The outcomeA local OpenAI-compatible gateway that answers requests for an alias you chose, with a command budget attached.
What you need first
- Python with pip to install the package
- Provider keys for the models you want to route to (hosted, BYOK or local)
- For Capture: macOS, Python 3.13 or newer, and approval for its extension and certificate
- Optional: an account on the hosted platform, and Tinker for fine-tuning an open source model
Steps
- Run
pip install experiential - Run
expto start a local OpenAI-compatible gateway; the setup wizard picks provider, model and reasoning effort, then shows defaults for the public alias, identity and the$50.00command budget before printing a one-time key - Choose a public alias such as
opus-5and capture the issued key - Set the key with
export EXP_GATEWAY_KEY=..., then send the curl request from the README tohttp://127.0.0.1:8000/v1/chat/completionswith your alias as the model and the key in the Authorization header
Prompt for your agent
Install experientiallabs/experiential with `pip install experiential`, start the local gateway with `exp`, and walk me through the setup wizard. Pick the provider and model I choose, create the public alias <alias>, then send the curl test request from the README and show me the response.
Caveat. The README shows the local gateway on 127.0.0.1:8000 only; check the docs before exposing it to other machines.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for experientiallabs/experiential and "Run one local gateway in front of all your models"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer