AI Runtime

ByteHide AI Runtime inspects every request between your application and the language models it calls, and between your agents and the tools they use. It blocks attacks, masks sensitive data and records the full verdict of every check, before anything reaches the model or the tool.

Limited access

AI Runtime is available to select customers. Contact sales to request access. Organizations without access are redirected to the dashboard when they open AI Runtime in the console.


What AI Runtime Protects

AI Runtime sits in the path of your AI traffic and applies the detectors of a policy to it. It covers two kinds of traffic:

TrafficWhat it inspectsTypical threats
LLM prompts and responsesWhat end users send to a model and what the model answersPrompt injection and jailbreaks (direct and indirect, such as poisoned RAG content), toxic language, off-topic requests, PII and secrets leaving in prompts or responses
Agents, tools and MCPTool definitions, the tool calls a model emits and the results tools returnTool poisoning, calls to tools the agent should not use, SQL, shell, file path and network (SSRF) abuse, injection hidden in tool results, runaway tool loops

Every inspected request produces an incidence: the verdict (Allowed, Blocked, Masked or Flagged), which detectors fired and why, the route and policy involved, and who sent it.


Two Ways to Connect

AI Runtime works in two modes. Both use the same policies, and their traffic lands in the same Incidences screen.

ModeHow it worksUse it when
Gateway modeYour application points its LLM SDK or MCP client at a ByteHide route URL. The gateway inspects the request, forwards it to the provider or MCP server, and inspects the response.You want protection without changing application code, or you need to front a third-party MCP server
In-app modeThe ByteHide App runtime SDK runs inside your application and validates LLM traffic in-process. Enabling AI Security on a App runtime project creates its route in AI Runtime automatically.Your application already uses ByteHide App runtime, or traffic must keep going straight to the provider

See Gateway Mode and In-app Mode for setup.


Organization Scope

AI Runtime is configured per organization, not per project. Routes, policies, integrations and consumers are shared across all projects in the organization, which is why the console marks these screens as Shared across projects.

Projects come into play in two places:

  • In-app mode: each App runtime project that enables AI Security gets its own route in AI Runtime.
  • Agentic Runtime: the agent installed on developer devices registers with a project token.

Building Blocks

ConceptWhat it is
IntegrationA connection to a model provider (OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, Google Vertex AI and others). Credentials are stored encrypted and never shown again.
PolicyA reusable set of detectors. A User-Facing policy inspects user-to-model traffic; an Agent-to-Tool policy inspects agent and MCP tool traffic.
RouteA URL your clients call. Each route forwards to a target (an integration or MCP tools) and applies one policy.
ConsumerA credential issued to one client, scoped to the routes you grant it.
ToolAn MCP tool, either imported from an MCP server you connect or backed by your own endpoint.

A route without a policy is unprotected

The gateway starts from an all-off configuration: the policy is the only thing that turns detectors on. A route with no policy forwards traffic without inspecting it, and the console marks it as Unprotected.


The Console

AI Runtime lives under AI runtime in the ByteHide console. The sidebar groups its screens by what you do with them:

GroupScreensPurpose
—Overview, AnalyticsGateway status, traffic snapshot and quickstart
TrafficIncidences, AttackersInvestigate every inspected request and the origins behind attacks
ConfigurationRoutes, Policies, Integrations, Tools, Connections, Consumers, FirewallDefine what is protected and how
AutomationPlaybooks, AlertsAct on incidence patterns and notify your team
AdministrationAudit log, SettingsChange history, gateway key and identity provider

Screens marked MCP in the sidebar (Tools, Connections) only apply to MCP traffic.


Overview Screen

The Overview is the first screen you see when you open AI Runtime.

ByteHide AI Runtime Overview showing gateway status, traffic snapshot cards, the MCP quickstart and recent incidencesClick to expand

Gateway Status

The top card shows whether the gateway is reachable and your organization's base URL. Every route you create is served under this URL.

Traffic Snapshot

CardDescription
RequestsRequests inspected in the current window
BlockedRequests blocked, with their percentage of all requests
MaskedRequests where PII or secrets were redacted
Avg latencyGuard plus upstream time, in milliseconds
Guard overheadTime spent in the gateway itself, in milliseconds

To investigate a number, open Incidences with the equivalent filter. The Overview does not filter.

Quickstart

A ready-to-paste curl command or client configuration for one of your routes. Pick the route in the selector; for MCP routes the command calls tools/list, the first request any MCP client makes. Your gateway key is hidden on screen but copied in full.

Recent Incidences

The latest checks on your traffic, with the detectors that fired and the route. View all opens Incidences.


Next Steps

Quickstart

Protect your first LLM route in a few minutes

Policies

Choose which detectors run on your traffic

MCP Protection

Put a policy in front of the MCP servers your agents use

Incidences

Investigate every request the gateway inspected

Previous
ByteHide AI