Routes

A route is the URL your clients call. Each route forwards traffic to a target, applies one policy to every request and response, and keeps its own incidences, limits and access rules.


Routes List

Open AI runtime → Routes. Routes are shared across all projects in the organization.

ByteHide AI Runtime Routes list showing an active MCP route with its URL, number of published tools and attached policyClick to expand

ColumnDescription
StatusServing state. A paused route turns traffic away; the tooltip explains the consequence
NameRoute name
TypeUser-Facing, Agent-to-Tool or MCP
URLFor LLM routes, /{path} under your gateway base URL. For MCP routes, /mcp/{orgId}/{slug}
TargetFor LLM routes, the provider and model. For MCP routes, how many tools it publishes
PolicyThe attached policy, or an Unprotected chip when there is none

The list hides internal routes: the Playground sandbox route and the routes that in-app mode manages for App runtime projects.


Route Types

TypeWho calls itWhat the gateway inspects
User-FacingYour application, on behalf of its end usersWhat people type and what the model answers
Agent-to-ToolYour own agent, calling its tools over HTTP through the gatewayEach tool call and result in transit
MCPAny MCP client (an IDE agent, a partner, your own agent)Every MCP request: tools/list, tools/call and their results. The gateway becomes the MCP server and publishes only the tools you grant

The route type decides which policies you can attach: User-Facing routes take User-Facing policies; Agent-to-Tool and MCP routes take Agent-to-Tool policies. MCP routes are covered in MCP Protection.


Create a Route

Click Create Route. The creation form opens as a drawer on the Routes list.

ByteHide AI Runtime Create Route drawer with route name, route type, path and the Target section with Proxy and In-process connection modesClick to expand

Basics

FieldDescription
Route nameA descriptive name
Route typeUser-Facing, Agent-to-Tool or MCP
PathThe path segment of the route URL. The final URL is shown below it and confirmed when the route is created

Target

Connection modeBehavior
Proxy (via gateway)Clients call the route URL and the gateway forwards to the target. Pick the Provider (an integration) and optionally a Model; otherwise the integration's default model is used. Credentials live in the integration, never in the client
In-process (SDK / agent)Your application keeps calling its own provider. The ByteHide SDK running inside it intercepts its model calls, input and output, and reports them to this route. No provider or model is configured here. See In-app Mode

Balancing decides what happens with more than one target:

OptionBehavior
Single targetAll traffic goes to one target
Load balancingTraffic is spread across the targets with a strategy: Round robin, Weighted or Least connections
FailoverExtra targets are tried in order when the primary fails

Security

Pick the Policy for this route. If you leave it on No policy, the drawer warns you: the route will forward traffic without inspecting it.

Advanced

FieldDescription
Timeout (ms)How long the gateway waits for the target
Rate (req/min)Requests per minute for the whole route
Consumer rate (req/min)Requests per minute for each consumer credential. Charged before the route rate, so one consumer retrying in a loop cannot use up the minute for everyone else
CacheOff, Exact match or Semantic: answer repeated prompts from a cache instead of the provider
Streaming output guardBuffered (default): the full answer is masked and checked before it is sent, with no real-time stream. Streaming: tokens flow in real time, and the stream is cut if a violation appears
On blockReject (403 + error) (default), or Reply as assistant message (200): the client receives the block as the assistant's answer. With the second option, choose the Block language and message

Privacy

Choose whether the actual content is stored in incidences. The verdict and the detections are always recorded; only the text is optional.

OptionStores
Store request contentThe prompt, or the tool call arguments
Store response contentThe model answer, or what the tool returned

Route Detail

Click a route to open it. The header shows its name, type and status, with Pause / Resume and Duplicate. LLM routes also have a Setup button with the route URL and ready-made code snippets.

The detail has two tabs:

  • Configuration: the same fields as the creation drawer. Edits save automatically shortly after you stop typing.
  • Incidences: the traffic of this route only, with its own KPIs.

ByteHide AI Runtime route detail Incidences tab with Total requests, Blocked, Avg latency and Errors cards, and the route's inspected requestsClick to expand

CardDescription
Total requestsRequests inspected on this route
BlockedBlocked requests and their share of the traffic
Avg latencyGuard plus upstream time
ErrorsResponses with a 5xx status

The table works like the main Incidences screen, pre-filtered to this route.

Danger Zone

Delete route removes the route and its URL. You confirm by typing the route name. This cannot be undone.

Renaming an MCP route changes its URL

The URL of an MCP route is derived from its name. Renaming it changes the published URL, and connected MCP clients stop working until they are updated.


Next Steps

Consumers & Authentication

Issue credentials scoped to this route

Gateway Mode

Point your SDK at the route URL

Previous
Policies