Skip to main content
Yabane

Welcome back

Sign in to manage your Yabane gateway.

Yabane
A
Administrator
Admin console
Gateway online

Gateway overview

Live routing health, request demand, and the Provider network at a glance.

RuntimeOnline
Provider networkChecking
24h success—
Average latency—
Last 24 hours

Traffic pulse

Updating…
Requests0Completed gateway calls
Success rate—No errors
Total tokens00 input · 0 output
Input cache hit0%0 cached tokens

Request flow

Half-hour traffic intervals reveal changes in demand

Provider network

Your Provider network

Gateway API keys

Top client identities by request volume

LLM providers

Manage Providers, API Endpoints, and Provider credentials.

Providers

Each provider can contain multiple API endpoints

0 providers

Add your first provider

Connect an endpoint to start sending LLM requests through Yabane.

Model routing

Choose which Endpoint and identity handles a model. Models without a rule keep using their Endpoint’s own rotation.

1

Pick a nameClients send this name like any model, without a provider prefix.

2

Add destinationsOne or more Endpoints can receive matching requests; shares split the traffic, or priority groups wait in order until the group above them is cooling down.

3

Choose what to sendEach destination states the model ID Yabane sends to that Endpoint.

Routing rules

Exact matches win first; otherwise Yabane uses the longest matching prefix.

All models use the default traffic distribution

Add a rule only when a model must always use a particular Endpoint or credential—for example, a subscription with access to that model.

Public modelEndpoint · identity · model sentActions

Provider models

Models reported by providers are shown for reference, not managed by Yabane

Usage value

Model pricing

Maintain explicit rates centrally. Global rules apply across Providers; Provider and Endpoint rules override them field by field.

0Global rulesDefaults for every Provider
0Provider overridesCommercial differences
0Endpoint overridesConnection-specific rates

Configured prices

Outgoing rules price the model ID Yabane sends to the Provider; incoming rules price the model name the caller sends and apply wherever no outgoing price matches. No model receives an inferred or built-in price.

No model prices configured

Add a global rate once, then create Provider or Endpoint overrides only where prices differ.

Model patternScopeInput / MOutput / MCache read / MUpdatedActions
Add price
Explicit pricing rule

Add model price

Set a USD-equivalent rate without restricting which model IDs Yabane can proxy.

1

Which model name should this price match?

One request carries two names: what the caller sent, and what Yabane sends to the Provider after routing. Matching is the same for both — an exact name, or a prefix ending in one *; an exact match wins, then the longest prefix.

2

Application scope

Start with a Global rule and add a narrower override only where a Provider or Endpoint has different rates.

Incoming model prices are always Global: one caller name can reach several Providers, so the caller-side price lives in one place. Price the Outgoing model when a single connection needs a different rate.

3

USD-equivalent rates

Rates are per one million tokens. Input and output are both needed before requests can be estimated.

External reference

models.dev prices

Open models.dev

Public API prices can be copied into this rule. They are references only and are never applied automatically.

Enter at least two model characters to find references.
Source: models.dev API. Verify the selected provider and current contract before saving.
Request pipeline

Extensions

Trusted Rust request Hooks compiled into this Yabane binary.

Develop an Extension
Build with Extensions, control them at runtime

The default build includes bundled Extensions. Disable individual Extensions below, disable all of them for one process, or build Core alone.

Bundled Extensionscargo build --releaseDisable for one runyabane --no-extensionsCore onlycargo build --release --no-default-features

Disabling an Extension preserves its configuration. Extensions are trusted process code; Activity never stores prompt or response content.

Sensitive diagnostics

Traffic Capture

Temporarily inspect the exact credential-redacted exchange sent to and received from the Provider.

Captured bodies may contain prompts, files, tool calls, and model output.

Core-managed credentials are always redacted. Captures are stored separately from Activity and automatically expire.

Capture controls

Capture stopped

Recent captures

0 retained · 0 dropped

No captured exchanges

Start a scoped capture, then send a matching LLM request.

CaptureRouteStatusProvider time / size
Observability

Activity

Understand request volume, token usage, routing, and Provider performance.

FiltersMatch any selection within a group
Custom rangeLocal time

Requests00 streaming · No trend
Total tokens00 in · 0 out
Success rate—0 errors
Average latency—End-to-end response time
Input cache hit0%0 cached input tokens
Usage value—No cost data

Request pace

Traffic across the selected range

Waiting for activity
—

Hover, focus, or tap the chart to inspect an interval.

Model analysis

Usage efficiency and estimated or reported value grouped by the model name clients requested.

0 models
Incoming modelRequestsInputOutputInput cache hitSuccessAvg latencyUsage value

Provider mix

Traffic share and usage by Provider

Gateway API keys

Client traffic grouped by the authenticated key identity

Recent requests

Compare the model name received from the client with the one sent to the Provider.

TimeIncoming model / Outgoing modelRouteStatusLatencyTokens

Request explorer

0 requests

Compare the model name received from the client with the one sent to the Provider.

TimeIncoming model / Outgoing model / requestRouteAPIStatusLatencyInputOutputCachedCost
Page 1
Automation

Management API

Every console action is also available over HTTP. Authenticate requests with a Management API key.

Management API keys

Grants full control-plane access via Authorization: Bearer. The secret is shown once at creation.

Open live API docs

No Management API keys

Create a key to manage Yabane programmatically.

KeyNameCreatedLast usedExpires
Gateway connection

API access

Control authentication and connect clients to requests sent to Yabane.

Authentication

Require a Yabane API key on all /v1 endpoints

Quick check

List available models

Verify authentication and see the model IDs clients can request.

GET
GET /v1/modelsReturns only models allowed by the Gateway API key.
curl 'http://127.0.0.1:8080/v1/models' \
  -H 'Authorization: Bearer sk-your-yabane-key'

Use a returned id, such as provider/model-name, in your client configuration.

API keys

Keys authorize inference and model-listing requests

No API keys

Generate a key before making authenticated requests.

KeyNoteProvider accessExpiresActions
Request details

Why this request failed

Routing

What Yabane received and where it sent the request

Model

API format

Destination

Request metadata

Request timeline

Arrival to response completion

—

Usage

Activity records routing metadata and usage only. Prompt and response content are not retained.

Captured Provider exchange

Request

Sent to Provider · Headers

Sent to Provider · Body

Body was truncated at the configured limit.
Activity storage

Manage activity data

Review data before moving it, and control how long Yabane retains it.

Export retained activity

Choose a time range and review the resulting file before downloading it.

Import an activity file

Yabane validates the file and compares request identities before anything is written.

Retention policy

Activity contains routing metadata and usage only. Records older than this limit are automatically removed from memory and disk.

Open source LLM gateway

Yabane

A clear, reliable gateway to every LLM.

Build identity
Commit
Commit time
License
View license text
GitHubAPI reference
Getting started

Connect your Agent to Yabane

Use Yabane as the API Provider in your coding Agent, then select a Yabane model ID.

Pi reads custom providers from ~/.pi/agent/models.json. Save the generated config there, export the Gateway key, then run pi.

The model ID includes Yabane’s provider/model prefix. Pi uses yabane as the configured provider name and preserves the model ID for Yabane routing.

Save this as opencode.json, export the key, then run opencode.

Claude Code can use Yabane's Anthropic Messages surface. Yabane will use an Anthropic Endpoint when available, or explicitly convert the request to the selected compatible Endpoint. Claude Code appends /v1/messages to the base URL it is given and sends ANTHROPIC_API_KEY as x-api-key, while Yabane authenticates its Gateway keys with Authorization: Bearer, so this setup names the console origin, puts the key in ANTHROPIC_AUTH_TOKEN, and starts Claude Code on the selected Yabane model instead of Claude Code's own model names.

Codex CLI supports a custom Responses API provider in ~/.codex/config.toml. Yabane prefers an OpenAI Responses Endpoint and can explicitly convert the request to another configured protocol when required.

VS Code Copilot’s stable settings do not provide a generic custom OpenAI/Anthropic base URL. Its model picker is tied to Copilot or installed extensions, so Yabane cannot generate a reliable settings.json entry for it.

Use the Generic Agent values if you have a VS Code extension that supports custom providers, or use the dedicated Pi, OpenCode, Claude Code, or Codex configuration above.

Most Agents that accept an OpenAI-compatible custom Provider need these three values.

Base URL
API key
Model

Run a small Chat Completions request to verify network access, authentication, and model routing.

Yabane can route across its three supported API surfaces and convert between Chat Completions, Responses, and Anthropic Messages when the selected Endpoint requires it. Native protocol Endpoints are preferred first; check the Endpoint type when you need exact wire-level pass-through.

Open API reference

Generate API key

The generated secret can also be copied later from the API key list.

Provider access Optional

No selection means this key can access all providers.

Edit API key

Update this key's description, expiration, or Provider access. The secret does not change.

Provider access Optional

No selection means this key can access all providers.

API key generated

Copy and store this key securely.

Add provider

Choose the provider name and ID.

12
API type

Edit provider

Update how this Provider appears in the admin console.

Add API endpoint

Models discovered here remain accessible through the same provider prefix.

How long should an identity cool down?
Keep traffic movingIllustration · later requests
Rejoins Key A In rotation Other keys Taking traffic Requests Provider

Connect account

Sign in with the Provider to add this account to the Endpoint. Device code is the default; browser sign-in is available when the Provider disables it.

Open the sign-in page, enter this one-time code, then return here. Yabane will continue automatically.

Open sign-in page

Waiting for sign-in…

!
A localhost error page is expected

After the Provider approves access, your browser will open the registered callback address and may show “This site can’t be reached,” “Connection refused,” or a 404 page. This does not mean OAuth failed. Yabane intentionally waits for you to copy that page’s complete address instead.

  1. 1
    Sign in with the ProviderKeep this Yabane dialog open while you authorize the account.
  2. 2
    Expect the localhost errorWhen it appears, do not retry or navigate away. Copy the complete URL from the address bar.
  3. 3
    Return and paste oncePaste the URL below; Yabane securely completes the token exchange.
I understand — open sign-in page

Add credential

Add another identity to this Endpoint.

Rename credential

Update how this credential appears in the console.

Model endpoint preferences

Choose the default endpoint when the same model is available from multiple endpoints.

ModelAPIDefault endpoint

Distribute credential traffic

Set the order this Endpoint uses its credential groups in, and the share each credential takes inside its own group.

Allocation details

Add model route

Create a short alias for a Provider model.

Destination selection

More than one destination means one conversation can continue on a different Provider or Endpoint. If those do not accept the same conversation history — for example, a Provider that requires its own reasoning to be passed back — the conversation can be rejected. Confirm they are interchangeable before splitting traffic.

Traffic split

Shares are exact percentages and must total 100%. Setting a share to 0% turns that destination off.

Total traffic 100%
Destination Required
Provider
Endpoint
Identity
Pinned identity
Identity selection details

Create Management API key

The key can call every Yabane control endpoint except profile and key management.

Manage profile

Update the administrator identity used to sign in to Yabane.

Change password

Leave these fields empty to keep the current password.

Edit request defaults

Configure values added to every request sent by this provider.

Extra headers

Header names and values sent to the Provider. Endpoint values can override these.

No extra headers configured.

Extra request body

Add top-level JSON fields. Enter each value as JSON, such as true, "text", an array, or an object.

No extra body fields configured.

Apply to endpoints

Choose whether these Provider defaults apply everywhere or only to selected endpoints.

Request body previewValid configuration
{}