2026-11-27 16:22 UTC

Yabanin Core launches developer-preview self-hosted AI gateway

state: expiredheat: lowuncertainty: mediumrelevance: mediumllm-gateway self-hosting audit-logsYabanin AI

What is this?

Yabanin Core is an Apache-2.0-licensed, self-hosted AI gateway from Yabanin AI, whose repository credits Dmitry Lakhvich. Its GitHub repository describes a developer preview that lets applications use OpenAI- or Anthropic-compatible APIs to route requests across model providers, with access and budget controls, logging, caching, configurable guardrails, and agent policies. It also offers optional Ed25519-signed request records. The repository provides a Docker Compose quickstart using a mock provider, so users can try the stack without paid inference; it cautions against production deployment without reviewing release notes. Evidence is primarily the project’s own repository, surfaced through a Hacker News post and a GitHub listing; independent adoption or performance evidence is not provided.

Why it matters

A self-hosted gateway could give teams a single control point for model choice, provider fallback, access, and spend while keeping the gateway infrastructure under their own control. Yabanin also bundles agent-specific controls and optional signed records, potentially useful as AI traffic grows. These are preview-stage capabilities, not independently validated results; the signed records establish record integrity, not where inference occurred.

Current assessment

The new development is the availability of Yabanin Core as a developer preview, according to its GitHub repository. The project says it supports provider routing through OpenAI- and Anthropic-compatible APIs, BYOK, routing and fallback, request logging, budgets and roles, configurable policies, agent identities and limits, and offline usage audits. It also describes optional Ed25519-signed request lineage; the project explicitly limits this claim to tamper-evident record integrity and says signatures do not verify the physical location of inference. The repository says its Apache-2.0 license permits commercial use, modification, and redistribution. A mock-provider Docker Compose quickstart enables local exploration without paid provider calls, but production use warrants caution: this is a developer preview. Cost reports depend on operator-configured prices, which may have limited coverage or be outdated; CO₂e figures require operator-supplied factors and are estimates, not hardware measurements. The supplied evidence is mainly first-party repository material, with no independent benchmark, adoption evidence, or corroborating reporting. The broader implication is potential: a self-hosted control layer could help organizations manage multi-provider and agent workloads while retaining local operational control, but the evidence does not establish production readiness or demonstrated savings.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p25momentum: steady2 platformsage 336h
points/hour across evidence · reading as of 2026-11-25 08:26:22.782533+11:00 · deterministic, not a model opinion

How the heat travelled

11-10 21:22 (minted)⭐ origin echo-reconstructedThe repository describes a developer-preview gateway with compatible APIs, model routing, access and budget controls, usage reporting, and o
Yabanin AI on github (echo) · attributed from hn.story.50446436 · published time unknown
—
11-10 21:19first on hacker news · published · lag ?Yabanin, a self-hosted gateway for model access, routing and a signed record
frostball
—
11-10 21:19amplified on hacker news 👑hn.story.50446436
frostball
peak 1 · 0 comments · 104% of case engagement
11-10 21:20our radar first saw it · lag ?discovery anchor: hn.story.50446436—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnYabanin, a self-hosted gateway for model access, routing and a signed record
Retrieved article excerpt

Open article · Retrieved 2026-11-10T21:21:23.041938+00:00

# Yabanin Core

Yabanin Core is a self-hosted AI gateway. Connect applications through
OpenAI-compatible or Anthropic-compatible APIs, route requests to model
providers, manage access and budgets, and inspect request logs and usage.

This is a **Developer Preview**. Read the release notes before deploying it
with production traffic.

## Feature highlights

- **One API for multiple providers.** OpenAI-compatible and Anthropic-compatible
  endpoints, streaming, and tool calling; bring your own provider keys with
  [BYOK](https://github.com/yabaninai/yabanin-core/blob/main/docs/byok.md). See [client compatibility](https://github.com/yabaninai/yabanin-core/blob/main/docs/compatibility.md) for
  endpoint coverage.
- **Automatic model routing.** Match prompt complexity to cheap, mid, or premium
  model pools, balance requests across pool members, and override routing per
  organization. Inspect the final model choice and routing reasons through
  `X-Yabanin-Decision`. [Task classifier](https://github.com/yabaninai/yabanin-core/blob/main/docs/classifier.md)
- **Retries and fallback.** Retry eligible failures, switch to configured fallback
  models, and use circuit breakers for failing upstreams.
  [Request path](https://github.com/yabaninai/yabanin-core/blob/main/docs/architecture.md)
- **Exact and semantic caching.** Reuse cached responses with streaming replay;
  optional semantic matching uses an embedder and pgvector.
  [Caching](https://github.com/yabaninai/yabanin-core/blob/main/docs/cache.md)
- **Access and spend controls.** Organization roles, API keys, rate limits,
  credits, and budget caps keep shared model access manageable.
  [Organization setup](https://github.com/yabaninai/yabanin-core/blob/main/docs/organization-setup.md)
- **Usage beyond dollars.** View recorded USD cost, wallet credits, tokens and
  factor-based CO₂e estimates in one organization-scoped report. Keep scenario
  costs separate from recorded spend, with data-quality labels and coverage
  notices. [Usage and impact accounting](https://github.com/yabaninai/yabanin-core/blob/main/docs/usage-and-impact.md)
- **Versioned pricing with provenance.** Inspect the active price catalog,
  preview a replacement and promote a reviewed pricing pack. Catalog versions,
  digests and source dates make cost calculations traceable.
  [Pricing and accounting](https://github.com/yabaninai/yabanin-core/blob/main/docs/usage-and-impact.md#prices-and-data-quality)
- **Programmable guardrails.** Compose YAML policies for PII, secrets, and prompt
  injection checks, masking, external scanners, and LLM judges. Preview decisions
  in shadow mode before enforcement; the pipeline is opt-in.
  [Policy pipeline](https://github.com/yabaninai/yabanin-core/blob/main/docs/pipeline.md)
- **Agent governance.** Give agents separate identities, daily budgets, task token
  limits, and delegated keys; control supported tool and MCP calls with
  [tool policies](https://github.com/yabaninai/yabanin-core/blob/main/docs/tool-policies.md).
  [Agent governance](https://github.com/yabaninai/yabanin-core/blob/main/docs/agent-governance.md)
- **Usage visibility and offline audits.** Inspect request history and usage in
  the React dashboard, manage the gateway through the admin API and `yb` CLI,
  and simulate cache reuse and cheaper routing from local logs. Export Markdown,
  JSON or a standalone HTML report without a running gateway or provider calls.
  [Offline spend audit](https://github.com/yabaninai/yabanin-core/blob/main/docs/audit.md)
- **Signed request records.** Optional Ed25519-signed lineage preserves model
  and region-related claims in a tamper-evident ledger. Signatures verify record
  integrity, not the physical location of inference. [Lineage](https://github.com/yabaninai/yabanin-core/blob/main/docs/lineage.md)

Costs depend on configured prices and recorded usage. The bundled reference
prices have limited coverage and may be outdated. Configure current prices
before relying on cost reports. The mock quickstart makes no paid provider calls.

### Cost, resources and environmental estimates

The dashboard's **Budgets → Units & spend** view keeps five quantities separate:

| Quantity | What it represents |
| --- | --- |
| Recorded cost · USD | Recorded request cost under the configured pricing data |
| What-if cost · USD | A counterfactual scenario, not another charge or guaranteed savings |
| Credits spent | Wallet usage settlements; one credit equals USD 0.01 |
| Tokens used | Recorded input and output tokens, with estimated or missing usage identified |
| Estimated CO₂e · grams | Token usage multiplied by configured model carbon factors |

Carbon factors must be supplied by the operator; the quickstart does not include
a populated emissions catalog. CO₂e is a model-based estimate, not a hardware
measurement. Carbon-cap status is informational, and this view does not measure
water or electricity consumption. Monetary accounting remains USD-based; credits
and tokens are separate units, not foreign-exchange conversion. See the
[calculation and coverage details](https://github.com/yabaninai/yabanin-core/blob/main/docs/usage-and-impact.md).

## Quickstart with Docker Compose

Start the whole local stand — gateway, PostgreSQL, Redis, a mock model
provider, and the dashboard UI — with one Compose stack. No provider account
or paid inference is needed. The mock returns sample responses so you can try
the API, request logging, and the dashboard. Nothing listens on `0.0.0.0`.

You need Docker with Compose v2, Git, Bash, OpenSSL, curl, and Python 3.
On Windows, use WSL2 with Docker integration. Keep localhost ports **3000**
(dashboard), **8082** (gateway), and **8086** (admin API) and Docker subnet
**10.207.0.0/24** available. The first build downloads Go modules and
container images; you do not need Go or Node.js installed on your computer
(see [First-start timing](https://github.com/yabaninai/yabanin-core#first-start-timing)).

### One command

`bash scripts/quickstart/demo.sh` runs the steps below for you: configure,
build, start, seed, then a summary pointing at the dashboard and where the
API key and admin password were printed. Rerunning it is safe; `--fresh`
wipes the demo database and issues new credentials (destructive). The
numbered steps are the manual path that explains each command.

### 1. Download, configure, and start

```
git clone https://github.com/yabaninai/yabanin-core.git
cd yabanin-core

bash scripts/quickstart/init-env.sh

docker compose -f deploy/quickstart/docker-compose.yml \
  --profile mock --profile ui build \
  --build-arg SOURCE_DATE_EPOCH="$(git log -1 --format=%ct)"

docker compose -f deploy/quickstart/docker-compose.yml \
  --profile mock --profile ui up -d --no-build --wait
```

The `mock` profile adds the mock provider; the `ui` profile adds the
containerized dashboard on **<http://127.0.0.1:3000>**. Omit `--profile ui` for
a leaner stack without the dashboard. Configuration is saved in
`deploy/quickstart/.env`; keep this file with your database between restarts.

### 2. Create your organization and credentials

```
bash scripts/quickstart/seed.sh
```

Save the **gateway API key** and **admin password** printed by the command.
They are shown once. The default admin email is `admin@localhost`.

### 3. Send a request

Paste the gateway API key when prompted:

```
read -r -s -p "Gateway API key: " YABANIN_API_KEY
printf '\n'

curl --fail-with-body --silent --show-error \
  http://127.0.0.1:8082/v1/chat/completions \
  -H "Authorization: Bearer $YABANIN_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"model":"mock-model","stream":false,"messages":[{"role":"user","content":"Hello from Yabanin"}]}'
```

You should receive a chat response with `choices[0].message.content`.
Check model discovery, chat responses, and request logging together:

```
bash scripts/quickstart/smoke.sh "$YABANIN_API_KEY"
```

### 4. Open the dashboard

Open **<http://127.0.0.1:3000>** and sign in with the admin credentials from
step 2 (default email `admin@localhost`). The dashboard container serves the
built UI and proxies `/api` and `/auth` to the admin API on the same origin,
so no local Node.js and no CORS configuration are needed. Port 8086 serves
the admin API itself; it does not serve the dashboard.

The [full quickstart](https://github.com/yabaninai/yabanin-core/blob/main/docs/quickstart.md) covers organization membership,
request history, real providers, and troubleshooting. To iterate on the
dashboard source with hot reload, install Node.js 22 and npm and run in
another terminal:

```
npm ci --prefix web/dashboard
npm --prefix web/dashboard run dev -- --host 127.0.0.1
```

Then open **<http://127.0.0.1:5173>**.

To stop the stack while keeping its database:

```
docker compose -f deploy/quickstart/docker-compose.yml \
  --profile mock --profile ui down
```

### First-start timing

With images built once, `up -d --wait` finishes in about ten seconds, and the
`mock-openai` container itself starts in under a second (its health check
polls every two seconds). If the stand appears to hang on the mock, it is
waiting on image transfer or build, not on the service. The first start is
dominated by three things:

- **Image pulls — the largest cost, network-bound.** The builds download the
  pinned `golang` builder image and Alpine, Node, and nginx base images, and
  `up` pulls the pinned PostgreSQL and Redis images; together roughly a
  gigabyte unpacked. On a slow or throttled link to Docker Hub this takes
  minutes and the progress lines sit on `mock-openai` for most of it, which
  is why the mock *looks* like the slow part. Configuring a registry mirror
  is the effective fix.
- **Compilation.** The gateway image downloads all Go modules and compiles
  the whole monorepo (about a minute on a fast machine); the mock image
  compiles its binary. BuildKit layer cache plus the mock's persistent Go
  build cache make later rebuilds take seconds.
- **The dashboard build** runs `npm ci` and the Vite production build (tens
  of seconds).

Restarting later reuses the layer cache and the named database volume, so
`up` returns in seconds.

## Documentation

| Task | Guide |
| --- | --- |
| Understand the request path | [Introduction](https://github.com/yabaninai/yabanin-core/blob/main/docs/intro.md) · [Architecture](https://github.com/yabaninai/yabanin-core/blob/main/docs/architecture.md) |
| Connect an application | [Compatibility](https://github.com/yabaninai/yabanin-core/blob/main/docs/compatibility.md) · [SDKs](https://github.com/yabaninai/yabanin-core/blob/main/docs/clients/sdk-versions.md) |
| Set up access and provider keys | [Organizations](https://github.com/yabaninai/yabanin-core/blob/main/docs/organization-setup.md) · [BYOK](https://github.com/yabaninai/yabanin-core/blob/main/docs/byok.md) |
| Configure routing and policies | [Providers](https://github.com/yabaninai/yabanin-core/blob/main/docs/providers.md) · [Pipeline](https://github.com/yabaninai/yabanin-core/blob/main/docs/pipeline.md) |
| Understand cost, credits, tokens and CO₂e | [Usage and impact accounting](https://github.com/yabaninai/yabanin-core/blob/main/docs/usage-and-impact.md) |
| Inspect a local request log | [Spend audit](https://github.com/yabaninai/yabanin-core/blob/main/docs/audit.md) · [CLI](https://github.com/yabaninai/yabanin-core/blob/main/docs/cli.md) |
| Deploy and operate | [Deployment](https://github.com/yabaninai/yabanin-core/blob/main/docs/deployment-options.md) · [Production runbook](https://github.com/yabaninai/yabanin-core/blob/main/docs/runbooks/production.md) |
| Build and contribute | [Development](https://github.com/yabaninai/yabanin-core/blob/main/docs/DEVELOPMENT.md) · [Contributing](https://github.com/yabaninai/yabanin-core/blob/main/CONTRIBUTING.md) |

## Build from source

Use the Go version declared in `go.mod`, Git, and make:

```
make unified yb
./yb --help
```

`yabanin` runs the server components, migrations, and bootstrap
frostball10
🟧 echo.github ⭐The repository describes a developer-preview gateway with compatible APIs, model routing, access and budget controls, usage reporting, and oYabanin AI——

Interpretation history

Decision trace