// 换模型、控成本
experiential
零加价开源网关,支持 BYOK、自托管和 1000+ 市场模型。
开源 维护中 给 AI 用
一段话结论
experiential 是零加价开源网关,支持 BYOK、自托管和 1000+ 市场模型。
适合:想让自己的 agent(Claude Code、Codex、Cursor 等)换模型、控成本的开发者。
不适合:不想自己安装和运行工具的人。
01怎么开始
- 1先读官方 README / 文档,确认运行环境和需要的权限。
- 2按官方说明安装。
- 3在 AGENTS.md / CLAUDE.md 里写明这个工具和用法,agent 才知道什么时候调用。
02README(项目原文)
以下内容来自 experientiallabs/experiential 的 README,许可证 Apache-2.0,版权归原作者。 查看原文 ↗
Experiential
Experiential is an open source gateway and router for agent workflows:
- Use hosted, BYOK, and local models through one OpenAI-compatible API.
- Control which users and agents can use which models, for which use cases, and how much they can spend.
- Turn production traffic into a custom router or model optimized for quality, speed, and cost.

Getting Started
Start a local OpenAI-compatible gateway. On first run, the setup wizard uses the shared provider,
model, and reasoning-effort selectors, persists every selected provider connection, then shows
defaults for the public alias, identity, and $50.00 command budget before printing a one-time key:
pip install experiential
exp
Choose a public alias such as opus-5, capture the issued key, and send a request:
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"}]}'
Setup / get started with the hosted gateway
Prefer a managed gateway to running one locally? The hosted platform at
platform.experientiallabs.ai serves the same
OpenAI-compatible (and Anthropic Messages) API at https://api.experientiallabs.ai/v1.
See SETUP.md for copy-paste prompts you hand to your coding agent
(Claude Code, Cursor, Codex, and similar); the agent runs the setup for you. It
collects four prompts:
- Upload your LLM traces as telemetry: create an account instantly from your email, then pull or upload your existing LLM traces onto the platform as telemetry.
- Connect your inference provider keys (BYOK): create an account, then connect your own OpenAI, Anthropic, Gemini, Azure, Bedrock, Fireworks, or OpenRouter keys for free pass-through.
- Start calling models on the gateway: make your first
/v1call with the OpenAI and Anthropic SDKs using anxpl_key, and optionally repoint your existing coding agents. - Full onboarding: create an account instantly from your email, connect your keys, import your spend, then repoint every coding agent (Claude Code, Cursor, Codex, Aider, and similar) or Conductor at the gateway.
Using the API
Start the local gateway with exp (or exp run); the compiled native data plane
serves every route on loopback. From Python, load a fitted project router as an
official OpenAI client backed by its own private gateway:
import exp
with exp.load_router("my-project") as client:
response = client.chat.completions.create(
model="my-project",
messages=[{"role": "user", "content": "hello"}],
)
Capture Traffic
Capture is designed to collect supported traces from the Codex and Claude Code desktop apps using your existing ChatGPT or Claude subscription, while requests go directly to OpenAI or Anthropic. It requires macOS, Python 3.13 or newer, and approval for its extension and certificate:
exp capture
Capture is experimental; macOS network reliability is still under investigation.
Use Experiential's gateway as middleware to control costs, enforce guardrails, and optimize quality, costs, and speed. Leave the terminal open while you work. Press Ctrl+C to stop capture. View your capture telemetry.
Optimize from Traffic
First, collect OpenTelemetry traces from your current agent. If you just want to try it out, grab the public terminal-tasks OTLP dataset:
curl -L -o traces.otel.jsonl \
https://huggingface.co/datasets/experiential-labs/wmo-terminal-tasks-traces/resolve/540883e451dc13d34fb50fdd36b143cb0f1fb0db/traces.otel.jsonl
Then build a project. The build command walks you through providers, models, and budget, and asks for your trace file:
# Build simulation from your agent traces and optimize a router against it
exp build support-agent
After collecting traces from your router, fine-tune an open source model you own using Tinker.
exp optimize model support-agent
Telemetry
Anonymous aggregate PostHog product telemetry is enabled by default. It never includes prompts, traces, actions, observations, paths, model names, credentials, or raw customer content.
exp config telemetry status
exp config telemetry disable
exp config telemetry enable
The preference is stored locally in .exp/settings.toml.
Development
uv sync --extra dev
uv run ruff format --check .
uv run ruff check .
uv run ty check
uv run pytest -q
Repository and documentation conventions live in AGENTS.md.
03替代品与对比
并排对比 →04相关
版本历史 · 收录依据 · 给 AI 读
热度证据(第三方快照)
- GitHub 星数:9,000 · whatstrending.ai 2026-10-05
- 日增星:+216 · 2026-09-25 → 2026-10-05 · whatstrending.ai 2026-10-05
- GitHub 星数:9,281 · repos.ecosyste.ms 2026-10-10
- GitHub 星数:9,281 · repos.ecosyste.ms 2026-10-12
- GitHub 星数:9,281 · repos.ecosyste.ms 2026-10-13
- GitHub 星数:9,281 · repos.ecosyste.ms 2026-10-14
- GitHub 星数:9,899 · repos.ecosyste.ms 2026-10-20
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-21
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-22
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-23
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-23
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-24
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-24
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-24
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-24
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-24
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-25
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-25
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-25
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-26
- GitHub 星数:9,902 · repos.ecosyste.ms 2026-10-26
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-26
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-26
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-26
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-27
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-27
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-27
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-29
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-29
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-29
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-29
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-29
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-30
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-30
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-30
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-30
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-30
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-31
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-31
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-31
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-10-31
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-01
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-01
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-01
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-01
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-01
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-02
- GitHub 星数:12,812 · repos.ecosyste.ms 2026-11-02
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-02
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-02
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-03
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-05
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-05
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-05
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-06
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-06
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-07
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-07
- GitHub 星数:14,351 · repos.ecosyste.ms 2026-11-08
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-10
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-10
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-11
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-11
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-12
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-12
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-12
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-12
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-13
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-13
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-13
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-14
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-14
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-14
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-14
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-15
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-15
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-15
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-15
- GitHub 星数:15,290 · repos.ecosyste.ms 2026-11-16
- GitHub 星数:17,156 · repos.ecosyste.ms 2026-11-16
- GitHub 星数:17,156 · repos.ecosyste.ms 2026-11-16
- GitHub 星数:17,156 · repos.ecosyste.ms 2026-11-16
- GitHub 星数:17,156 · repos.ecosyste.ms 2026-11-17
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-17
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-17
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-17
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-17
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-18
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-18
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-18
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-18
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-19
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-19
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-19
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-19
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-19
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-20
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-20
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-20
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-20
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-21
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-21
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-21
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-21
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-21
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-22
- GitHub 星数:17,308 · repos.ecosyste.ms 2026-11-22
- GitHub 星数:18,265 · repos.ecosyste.ms 2026-11-22
- GitHub 星数:18,265 · repos.ecosyste.ms 2026-11-22
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-23
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-23
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-24
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-24
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-25
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-25
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-25
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-26
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-26
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-27
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-27
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-27
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-28
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-28
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-28
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-29
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-29
- GitHub 星数:18,383 · repos.ecosyste.ms 2026-11-29
- GitHub 星数:19,969 · repos.ecosyste.ms 2026-11-30
- GitHub 星数:19,969 · repos.ecosyste.ms 2026-11-30
- GitHub 星数:19,969 · repos.ecosyste.ms 2026-11-30
给 AI 读
- 调用方式:自身应用或网页
- 机器可读档案:/api/v1/software/experiential.json · llms.txt
- 收录于 2026-10-10 · 更新于 2026-11-30