Skip to content

AI Gateway

The Brutor AI Gateway forwards, secures and governs all routable AI traffic (LLM calls, MCP tool calls, agent skills and agent-to-agent delegations) as the enforcement engine of the Brutor AI control plane. Every call is checked on the way through and recorded on the way out. That record is what lets you say, for each AI System, what it did, what it cost, and whether it stayed inside the contract it was approved under.

  • One enforcement point for every AI traffic type: models, MCP servers, skills, knowledge bases and peer agents.
  • A Rust proxy with no detectable latency cost at tested concurrency (performance).
  • Native MCP, native A2A v1.0, OpenAI-compatible, plus the native Anthropic Messages API.
  • Drop-in: on-premises, private cloud, or Brutor SaaS.

The Brutor AI Gateway, highlighted, and where it sits in the Brutor AI control plane. AI agents, workflows and applications, and chat clients such as the Brutor User Portal and Goose used by end users, send every call through the gateway. Each request passes identity, policy, guardrails and limits before it is routed to models, MCP servers, A2A agents or skills; each response passes output guardrails and cost metering and is recorded. The gateway reads its configuration from PostgreSQL, state you own, and never writes it; the runs and evidence it records flow to the control plane below, which admins use through the Admin Console to define that configuration and assure each AI System. Non-routable vendor chat apps such as ChatGPT, Claude Desktop and Microsoft Copilot are observed only, through imported usage, and shadow AI is found by discovery agents.

Clients don’t change to get this. Point an existing OpenAI or Anthropic SDK at the gateway’s base URL and every request is authenticated, policy-checked, metered and logged; the client sees a normal response until a control fires. The gateway reads its configuration from the database the Control Plane writes, and never writes configuration itself.

The gateway is a set of focused services, each written in Rust for speed, predictable latency and memory safety, around three data stores you run. The gateway core keeps no state of its own, so it scales out as replicas in a cluster such as Kubernetes.

Brutor AI Gateway components in a Kubernetes cluster. AI Systems and chat clients call into the gateway core, a stateless Rust service that scales out as replicas. The core holds the LLM proxy for any model provider, the MCP proxy for tools and virtual MCP servers, the OAuth proxy with vaulted SaaS tokens, the A2A proxy with signed agent cards, and the skill orchestrator, which discovers, loads and runs skills with each level governed; every call passes identity, policy, guardrails, limits, metering and a record. The core fronts model providers, MCP servers, A2A agents and SaaS apps reached through the OAuth proxy. Beside it run three Rust workers: the skill executor, sandboxed with no network; the KB uploader, which extracts, chunks and embeds content through the gateway; and KB connector sync, which pulls incrementally from eight kinds of content source such as Confluence, Slack and Jira. PostgreSQL (configuration, runs, audit), Redis (counters, cache) and Qdrant (vectors for knowledge bases and the cache) hold the shared state.

Every runtime call enters the gateway core and passes the same pipeline whatever its protocol: identity, policy, guardrails and limits on the way in, metering and a record on the way out.

Component What it fronts Entry point
LLM proxy Every model provider, behind the OpenAI-compatible API and the native Anthropic Messages API /v1/proxy/llm/chat/completions, /v1/proxy/llm/responses, /v1/proxy/llm/embeddings, /v1/messages, /v1/messages/count_tokens
MCP proxy Tool servers, governed tool by tool, and virtual MCP servers that aggregate several /v1/proxy/mcp/{server_id}, /v1/proxy/vmcp/{virtual_server_id}
OAuth proxy Consent for SaaS-backed tools; their tokens stay in the gateway /v1/proxy/oauth/...
A2A proxy Agent-to-agent calls with signed agent cards and depth-capped delegation /a2a/{tenant_id}/{card_name}/message:send, card at /.well-known/agent-card/{tenant_id}/{card_name}.json
Skill orchestrator Discover, load and run Agent Skills, one governed level at a time /v1/proxy/skills/catalog, /v1/proxy/skills/execute

The same core also serves the end-user Portal API (/v1/portal/*) that backs the User Portal. Full request and response shapes are in the LLM proxy API and MCP & A2A API references.

Heavy work runs in its own Rust services, so it never shares a thread with a governed call:

  • The skill executor runs skill scripts in an isolated sandbox with no network, a read-only root file system and a hard timeout.
  • KB connector sync pulls Confluence, Notion, Google Drive, Slack, GitHub, Jira, SharePoint and websites incrementally and keeps each source’s permissions.
  • The KB uploader extracts, chunks and embeds that content through the gateway into per-tenant collections, so embedding calls are governed and metered like any other.
  • PostgreSQL holds configuration, the run ledger and the audit trail. A configuration change reaches every gateway replica through LISTEN/NOTIFY.
  • Redis holds the rate-limit, quota and budget counters every replica shares, so a limit holds however many replicas are running.
  • Qdrant holds the vectors for knowledge bases and the semantic cache, in per-tenant collections reached only with short-lived tokens.

Run them in the cluster or as managed services. Ports and service names are listed in ports and services.

Rust gives the gateway speed without garbage-collector pauses, and memory safety in the service that holds your provider keys. Because the core is stateless, it scales out as replicas; the Helm chart runs it as non-root on a read-only root file system and autoscales it (production on AWS).

Every AI call, whether a chat completion, an MCP tool call, a skill or an agent-to-agent delegation, takes the same path. Six checks run in order on the way out and one more on the way back, and whatever happens, the outcome is written down.

What happens to a single AI call as it passes through the Brutor AI Gateway. On the way out, the call moves left to right through six gates: identity and RBAC, input guardrails, policies, limits and budgets, cache lookup, and routing, before reaching the provider. Each gate can stop the call rather than pass it on: identity returns 401 or 403 when there is no valid principal; input guardrails block the call or redact the content; policies refuse the call or hold it for human approval; limits return 429 when a budget or rate cap is hit; and a cache hit answers immediately without ever calling the provider. On the way back, the response passes through output guardrails, which can block or redact mid-stream, and is then recorded (the run ledger, the usage record and the audit log) before returning to the caller. Every outcome, including every refusal, is recorded.

Identity and RBAC establishes who is asking (a user, an application or an agent) and denies anything not granted. Input guardrails inspect the prompt or tool input for PII, secrets, prompt injection and toxic content. Policies judge what the call would actually do: its semantic intent, and the arguments of the tools it calls. Limits and budgets check tokens, requests, concurrency and spend before any money is spent. The cache looks for an exact or semantically similar answer, and routing picks the provider, with a fallback chain and a circuit breaker for when the first choice fails.

Every gate can end the call instead of passing it on, with an answer the caller can act on. This is what a client sees on the LLM surface:

Gate Outcome Status What the client gets
Identity Missing, invalid or revoked credential 401 WWW-Authenticate header on Bearer routes
Identity and RBAC Valid principal, not granted (for example resource_group_not_member, agent_not_authorized) 403 Error naming the reason
Input guardrails Blocked 403 error.code: "guardrail_blocked" with guardrail, check and direction: "input"
Input guardrails Redacted 200 The call proceeds with the matched content redacted
Policies Argument policy at deny 403 Error naming the policy and the rule
Policies Semantic policy enforcing 403 semantic_policy_blocked: <reason>
Policies Approval required (MCP, A2A, skills) 202 for API keys and agents, 428 for interactive portal users approval_request_id, poll_url, expires_at; retry with X-Approval-Token once approved
Limits and budgets Rate, quota or budget cap reached 429 Retry-After header, plus the group, limit type, current usage and limit
Cache Hit 200 The stored answer, X-Cache-Hit: exact, semantic or shared; no provider call
Any gate Governance state cannot be read 503 Refused: the gateway fails closed rather than allowing an unchecked call
403 — input guardrail block (OpenAI-compatible surface)
{
"error": {
"code": "guardrail_blocked",
"message": "Request blocked: PII detected",
"guardrail": "default-security-profile",
"check": "pii",
"direction": "input"
}
}

The native Anthropic surface (/v1/messages) returns the same decisions in Anthropic’s error envelope ("type": "error"), and the MCP proxy returns them as JSON-RPC errors whose error.data.code carries the same value, such as guardrail_blocked. An approval_required argument rule on the inference surface itself fails safe to a deny: human approval applies to actions (MCP tools, A2A calls, skills), where the approval queue exists.

The response passes through output guardrails while it streams, so a leak is blocked or redacted before the caller sees it, not after the whole answer has arrived. Streaming is guarded either by buffered release, where nothing reaches the caller until it has been checked, or by live interruption, which cuts the stream mid-token. A non-streaming block returns 403 with direction: "output".

Every call is written to the run ledger, the usage and cost record and the audit log, including every call that was refused. A refused call never reaches the provider, but it is never invisible. Records are written by background writers, so logging never slows the call itself. Allowed, cached, redacted, denied, held for approval: each outcome is evidence, which is what makes assurance possible without instrumenting your application.

Fourteen capabilities sit behind that one hop, in four layers. Assurance comes first, because it is the reason for the rest: the AI services the gateway routes, the governance it enforces and the operations that keep it running exist so that the assurance layer has something true to say about each AI System.

Assurance layer

01 AI Systems assurance

AI layer

02 Model management · 03 Model routing · 04 MCP server governance · 05 Skills · 06 Agent identity and A2A · 07 Knowledge bases

Governance layer

08 Guardrails · 09 Governance policies · 10 Usage limits and resource groups · 11 Audit and compliance

Operations layer

12 Caches · 13 Cost control and FinOps · 14 Analytics and observability

Deployed is not done. Traditional monitoring watches individual calls; an AI System changes in the behaviour between them. This layer answers the question a per-request dashboard cannot: is this AI System still doing what it was approved to do, on day 201 as on day one?

The assurance lifecycle. Outside Brutor, you develop your agent with any framework and point it at Brutor with one base URL. Every governed call (LLM, MCP, skill and A2A) is grouped by task into the run ledger, where each run gets an honest terminal state. Baselines learn what normal looks like per system, and a version-hashed contract records what the system declared at sign-off. Runs, baselines and the contract feed seven continuously scored signals: liveness, behaviour, reliability, cost, conformance, oversight and review. The seven combine worst-of, never averaged, into one health verdict reading healthy, degraded, drifting, silent or unknown. The verdict drives the fleet board, findings and automatic response, and the assurance report, which ends by stating what it does not cover. Recorded runs are also replayable offline.

  • Every task becomes a run. The gateway groups the calls of one task, across models, tools, skills and delegated agents, into a single run with an honest outcome: completed, errored or abandoned.
  • The contract is enforced on every call. Per-run ceilings on cost, model calls, tokens, delegation depth and wall-clock are checked before each call, and every run is stamped with the contract it ran under.
  • Normal is learned, not guessed. Cost per processed outcome, run length, tool errors and outcomes, all recorded at the gateway, build each system’s own baseline, so drift is flagged with its likely cause.
  • Silence is a signal. When a system stops running, liveness raises an alert, even though nothing errored and uptime stayed green.
  • Drift gets a response. Tighten a limit, require approval or suspend the system through its autonomy level, and the gateway enforces it on the very next call. A single misbehaving run can be stopped on its own.

The contract, the signals and the health verdict and report live in the control plane; the gateway is where they are enforced and where their evidence is recorded. Before a change ships, replay rehearses it against recorded traffic offline, dispatching nothing upstream.

The AI services the gateway routes. Every resource below is bound to a resource group, and every call to it carries the same identity, limits, policy and audit.

One API for every model and every modality, with the price list, the failure handling and the keys already in place (LLM API, reference).

How an agent reaches a model through the Brutor AI Gateway: a POST to /v1/chat/completions passes six checks in order (authenticate, resolve model, access check, quotas and ceilings, governance, input guardrails), then a cache lookup, the provider call made with a vaulted key, and output guardrails on the way back. Every call becomes one log row; log rows sharing a task id become one run in the run ledger, which is what baselines, drift and assurance are computed from.

  • One API, every model. A preconfigured catalog across the major providers, plus self-hosted Ollama, vLLM and KServe. Text, embeddings, images, voice, transcription and video through the same surface.
  • Anthropic Messages API, natively. /v1/messages and /v1/messages/count_tokens are served directly, so Claude-native SDKs and agent frameworks point at Brutor unchanged.
  • Batch API. Large jobs submitted asynchronously at provider batch rates through /v1/proxy/batch/jobs (batch API).
  • The catalog ships with the price list: per-token, per-image, per-minute and per-second rates on every model, so budgets, caps and cost-based routing work on real numbers.
  • Import from Hugging Face: search the Hub from the Admin Console and pull a model’s configuration into your catalog.
  • Central model defaults for temperature, top-p and max tokens per model.
  • Resilience built in: per-model circuit breakers, connect timeouts, retries and fallback chains.
  • Model lifecycle management: provider retirement dates tracked per model, with advance operator alerts.
  • Provider keys never leave the gateway: encrypted at rest, resolved server-side, and never exposed to clients (users and API keys).
Terminal window
curl http://localhost:8100/v1/proxy/llm/chat/completions \
-H "Authorization: Bearer $BRUTOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}]}'

The model name must be one your API key’s resource group is granted; the first governed LLM call walks through creating the key.

One name your clients keep calling while the fleet changes underneath, and no way for routing to hand out access you never granted.

Brutor AI Gateway model routing: one model name enters a governed hop where identity, RBAC, budget and input guardrails are checked; eligibility filters for access, cooldown and health, rate limits and context window decide which models may serve it; one of five strategies picks from the survivors; failures fall back down the chain into cooldown or a bigger-context model; and the response leaves through output guardrails with spend recorded against the calling group.

  • A routing group is just a model name. Clients call one name; the group picks the real model. Mix OpenAI, Anthropic and self-hosted models in one group.
  • Five selection strategies: weighted random, least busy, lowest usage, lowest latency or lowest cost, set per group and changed without a redeploy.
  • Failure is a fallback, not an error. A 429, 5xx or timeout retries the same request down the chain, and the failed model goes into cooldown until it recovers.
  • Context-window fallback: a prompt too long for the chosen model is re-routed to one that fits.
  • Rate limits are part of the decision: per-model RPM, TPM and concurrency are checked while selecting, and health checks exclude unhealthy models until they recover.
  • Routing can never widen access. Every model in a group must be granted to the calling resource group in its own right, and the log names the model that actually served the call.

Govern every tool your AI connects to: what exists, what a call is allowed to do, and who has to say yes (register a server, MCP clients).

What happens when an agent calls a tool through the Brutor AI Gateway: a tools/call request settles access and cost first (authenticate, server access, quotas, rate limits, data residency), then five independent policy controls decide what the call may do: capability filter, guardrails, semantic policy, argument policy and human approval. Only then does the OAuth proxy attach a vaulted token, the MCP server run the tool, and output guardrails scan the result. Every call becomes one log row feeding the run ledger.

  • A catalog of ready-to-enable servers, with images mirrored to Brutor’s own registry so production never depends on an external one.
  • Bring your own: any container image, repository or remote MCP URL, containerized and remote servers in one governed catalog.
  • Virtual MCP aggregation combines tools from many servers behind one endpoint, with per-group filtering and tool renaming.
  • Enterprise MCP Registry on the official registry spec: federate public servers, publish your own, attach governance metadata.
  • OAuth proxy: authentication handled for every OAuth-protected server; access tokens stay encrypted in the gateway, never exposed to clients.
  • Capability filtering: enable individual tools, resources, prompts and resource templates per resource group. A capability that isn’t enabled doesn’t exist for that group.
  • Three-state tool approval: each tool is enabled, approval-required (held for human review) or disabled.
  • Guardrails on both sides: arguments scanned on the way in, results on the way back, including mid-call elicitation prompts.
  • Argument and semantic policies warn or deny on what a call would do. Shadow first, then enforce.
  • Limits at group, server and tool scope: token bucket, fixed-window quota and cooldown per tool, on top of daily call and budget caps merged up the group’s ancestors.
  • Data residency per server: a server’s region is checked against the tenant’s residency profile before it is reached, and a refusal is audited with its reason.
  • Every tool call recorded: one log row naming who called, which server, which tool and the decision.

Encode how your organization actually does things, and let an agent follow it, one governed step at a time (agent skills).

Progressive disclosure for Agent Skills across three governed levels: L1 discover returns only the skills the caller’s groups allow, roughly 50 to 100 tokens each; L2 load returns the full SKILL.md instructions and a manifest of what the skill may read, run and render, with nothing executing and the load written to the audit trail; L3 act runs read_resource, run_script and render_template one step at a time, each step re-governed with guardrails, argument policy, per-skill quota, approval and audit. The bundle never leaves the platform: scripts run sandboxed with no network, a read-only filesystem and a hard timeout.

  • Your process as a unit: a skill packages instructions (SKILL.md), scripts, reference files and templates into one versioned, governed bundle.
  • Progressive disclosure over MCP: agents discover the catalog, load full instructions only when needed, then act step by step. A skill costs roughly 50 to 100 tokens of context until it is used.
  • Works from any MCP client, with the same three levels and no Brutor SDK to adopt.
  • The bundle never leaves the platform. Agents receive instructions, reference content and script output, never the code. Scripts run in the sandboxed skill executor.
  • Every step governed independently: guardrails on skill input and output, argument policies, per-skill quotas and approval gates on each action.
  • Access by resource group. A skill the caller’s groups don’t allow never appears in their catalog.
  • Versioned and immutable: draft, validated, published, deprecated, archived. A published version never changes.
  • Author in the UI or sync from GitHub.

An agent is a principal you can name, permission, time-box and revoke, before it ever calls a model, a tool or another agent (agent identity).

An agent identity is a principal with its own agent-ULID, a named human owner, an IdP anchor, a time-to-live and one-click revocation. Every agent is default-deny. Grants are written per action type (LLM_CALL, MCP_TOOL, A2A_CALL, SKILL_EXEC), each scoped by a target glob and carrying an effect of allow, approval-required or deny, plus constraints for time window, max delegation depth, rate and expiry. At call time the decision is allowed, approval required, or denied; dry-run mode records what would have been blocked without blocking it.

Agent identity and policy

  • A principal, not a shared key: every agent gets its own agent-<ULID>, a named human owner, and an optional anchor to your IdP.
  • Default-deny: a new agent can call nothing until a grant says otherwise.
  • Grants per action, per target: written against llm_call, mcp_tool, a2a_call or skill_exec, each scoped by a glob over the model, tool, agent card or skill.
  • Allow, deny, or ask a human: the third effect routes into the same approval queue your people already answer.
  • Constrained and time-boxed: time window, maximum delegation depth, rate and expiry per grant; identities carry a TTL and revoke in one click.
  • Dry-run before you enforce: Brutor records what would have been blocked, without blocking it.

Agent-to-agent (A2A)

An A2A client discovers an agent card through the Brutor AI Gateway, then sends a task. The gateway holds the A2A card catalog (caching, rate limits, routing policies, RBAC, audit and per-tenant cost caps) plus proxy, usage and logging telemetry where every hop is logged, costed and audit-trailed. An orchestrator acts as server to the client and as A2A client to a second specialist server, and the delegated task is forwarded through the same governed hop.

  • Native A2A v1.0, inbound and outbound, both governed (A2A agents).
  • Signed agent cards at /.well-known/agent-card/{tenant_id}/{card_name}.json, Ed25519-signed so a third party can verify them, and RBAC-filtered per caller.
  • Signed delegation chains: every multi-hop call carries HMAC provenance, and depth is capped per group and per card, with a hard ceiling above that.
  • Full task lifecycle: SSE streaming, the task state machine, and per-task push notification configs.
  • Per-card rate limits per resource group and tenant-wide per agent card.
  • The same rails as every other call: RBAC, budgets, guardrails and audit, with A2A spend attributed back to the calling team.

Extend the model’s knowledge with your own content, governed by the same rules as every other call (knowledge bases).

Write path: content from Confluence, Notion, Drive, Slack, GitHub, Jira, SharePoint and a web crawler, or files uploaded directly, reaches the platform via KB Connector Sync or direct upload; the KB Uploader extracts, chunks, embeds as a dense vector plus BM25 tokens, and writes one point per chunk into Qdrant with its source and permissions. Read path: a question arrives, the gateway core embeds it with the same model, runs a hybrid dense-plus-BM25 search fused with RRF, filters to chunks the asker could have opened at source, and injects the top passages so the model answers with citations.

  • The retrieval pipeline, already built: chunking, embedding, hybrid search, permission filtering and citation.
  • Qdrant, deployed and owned by you; Brutor manages what lives inside it, including the per-tenant collection and short-lived scoped tokens.
  • Eight connectors (Confluence, Notion, Google Drive, Slack, GitHub, Jira, SharePoint and a web crawler) sync on a schedule, only what changed.
  • Or upload the file: PDF, Word, Excel, PowerPoint, Markdown, HTML and CSV, from the Portal or the Admin Console.
  • Hybrid retrieval: dense vectors and BM25, fused with reciprocal rank fusion.
  • Source permissions still apply: retrieval filters to what the asker could have opened at the source.
  • Per-resource-group knowledge bases, citations on every answer, and every retrieval on the same audit trail as the call it grounded.

The controls and policies the gateway enforces, from real-time guardrails to versioned policy bundles.

Content checks on every surface the gateway carries, run in-process or handed to a provider you already trust (guardrails).

Guardrails run on every surface the gateway carries: LLM input and output, streaming, embeddings, image, audio, batch, MCP tool calls, Skills and A2A. Six checks are available (PII, secrets, prompt injection, jailbreak, toxic content and banned words) and each can be run by the built-in in-process detector or delegated to Microsoft Presidio, AWS Bedrock, Lakera Guard, OpenAI moderation or your own endpoint. Where several run, the most restrictive action wins. If a provider is slow or down, Brutor retries, trips a circuit breaker, falls back to the built-in detector, and finally fails closed.

  • Six checks: PII, secrets, prompt injection, jailbreak, toxic content and your own banned words. PII, injection and jailbreak are on by default.
  • Bring your own detector, per check: built-in, Microsoft Presidio, AWS Bedrock Guardrails, Lakera Guard, OpenAI moderation, or your own endpoint.
  • Built-in means in-process: no second network hop, and nothing about the request leaves your deployment to be scanned.
  • Most restrictive action wins: a provider can tighten a decision, never loosen it.
  • Every surface, not just chat: LLM input and output, streaming, embeddings, image, audio, batch, MCP tool calls, skills and A2A.
  • Streaming guarded two ways: buffered release or live interruption.
  • It fails closed: retry, then circuit breaker, then the built-in detector, then refuse.
  • Break-glass, and it expires: explicit, time-limited and on the record.
  • Global, or per resource group, merged the same most-restrictive way as every other control.

Guardrails read the content. Policies decide what a call is allowed to do, and every one of them can be measured before it blocks anything (policies).

Three policy types, each answering a different question. Argument policies ask what this call would actually do, using deterministic SQL, URL, shell, path and JSON analyzers on the model’s own tool calls, MCP input and skill input, rolling out from warn to deny. Semantic policies ask what it actually means, using a plain-English constraint judged by a model, rolling out from shadow to enforce. Agent policies ask whether this agent may do this at all, using grants per action and target against a default-deny identity, rolling out from dry-run to enforce. All of it is policy-as-code: export, validate, dry-run, apply, then diff and roll back.

Policy type Question it answers How it decides Rollout
Argument What would this call do? Deterministic SQL, URL, shell, path and JSON analyzers, on the model’s own tool calls, MCP input and skill input warn → deny
Semantic What does it mean? A plain-English constraint judged by a model shadow → enforce
Agent May this agent do this at all? Grants per action and target against a default-deny identity (above) dry-run → enforce

Policy-as-code, not a wiki page. Export a resource group’s entire configuration as versioned YAML, validate it against the published schema, dry-run to see exactly what would change, apply it as a versioned bundle, then diff any two versions and roll back.

One tree that mirrors your organization, where a team can always tighten a limit and can never widen one (resource groups, limits).

A resource group tree runs Organization Nordica at one thousand dollars a day, Department Claims at four hundred, Team Claims Triage at five hundred, and the Triage Agent with no cap of its own. Resources compose additively, gated so a parent can withhold. Limits compose restrictively: the effective daily cap is four hundred dollars, set at the department. The team asking for five hundred does not raise the four hundred it sits under. The same most-restrictive rule covers tenant-wide limits set directly on a model, MCP server or skill.

  • A tree shaped like your org chart: organization, department, team, app or agent. Every model, MCP server, skill, guardrail, member, API key and limit is scoped to a node.
  • Resources compose additively, and each inheritance is gated, so a parent can withhold.
  • Limits compose restrictively: the effective value is the most restrictive across the node and every ancestor. A $500 cap under a $400 department is still $400, which is what makes delegation safe.
  • Caps on what actually costs money: daily dollar, token and request limits for LLM and MCP traffic, enforced in real time. The next call over the line gets a 429.
  • Run-level ceilings for agents: cost, tokens, LLM calls, delegation depth and wall-clock per run.
  • Tenant-wide controls per resource: a limit set on one model, server or skill applies across every group, merged into the same calculation.
  • Agents are members like anyone else, and RBAC roles (built-in or custom) cover two authentication paths: portal users, and API keys for apps and agents.

Two separate trails: what the AI did, and who changed what it was allowed to do. Both are written as it happens, so the evidence exists before anyone asks for it (compliance, audit row reference).

Two sources feed two trails. AI traffic (model calls, MCP tool calls, skill runs, agent delegations) writes the proxy log: who called, which model or tool answered, the decision, tokens and cost, the guardrail or policy that fired, plus compliance tags for declared frameworks. Admin and operator action writes the change trail: every resource carrying its author, editor and version, plus a dedicated operations log for destructive console actions. The proxy log is tamper-evident: each row hashes onto the previous and the writer Ed25519-signs each flushed batch head into a checkpoint. Both trails roll up into the AI Asset Registry, ISO/IEC 42001 coverage, EU AI Act risk classification and GDPR, SOC 2 and HIPAA views, and export as an ISO 42001 evidence pack or to S3, Splunk HEC or a JSONL webhook.

The record

  • Proxy logs: one row per call with who called, which model or tool answered, the decision, tokens and cost, and which guardrail or policy fired, including refusals.
  • Tamper-evident by construction: each row hashes onto the previous, and the writer Ed25519-signs the head of each flushed batch into a checkpoint that stores the public key that signed it, so key rotation never invalidates history.
  • Full bodies, filterable by user, group, model, server and date range (logs).
  • The change trail: every resource carries its author, editor and version, and destructive operator actions get their own rows.
  • Sealed action records: with an evidence key configured, every governed verdict, refusals included, is also sealed as a signed action record into a per-tenant log that independent witnesses countersign.

What compliance is derived from it

  • Compliance tagging is opt-in: declare your frameworks and tags are written as calls happen; declare none and the engine never runs.
  • Framework catalogs such as ISO/IEC 42001 and the EU AI Act read the same records as dated obligations (framework registry).
  • AI Asset Registry: one inventory of every model, tool, skill and agent, each with a live fact sheet and append-only snapshots.
  • Export where you keep evidence: S3 or S3-compatible storage, Splunk HEC, or a JSONL webhook.

Cost rails, caches and observability: what IT and FinOps need to keep AI traffic fast, cheap and visible.

Two caches doing two different jobs: one avoids the provider call entirely, the other makes the calls you can’t avoid cost less (tokenomics).

The response cache tries two layers before the provider is called: an exact SHA-256 hash lookup in Redis at about 0.1 ms, then a semantic cosine-similarity match in Qdrant at about 5 to 50 ms. Either is a hit and returns straight to the client with no tokens spent, still writing an audit row. On a miss the call goes upstream, where the prompt cache applies: Brutor injects the provider’s own cache markers so the model keeps computed state for a stable prompt prefix and repeated calls skip prefill, with a cache read costing about 10 percent of input tokens and a write about 125 percent, so break-even is two reads. The answer is stored back into Redis and Qdrant. The two caches treat tools oppositely: the response cache skips tool-using requests, the prompt cache wants them.

Response cache Prompt cache
Saves The provider call itself Prefill on a stable prompt prefix
How Layer 1: SHA-256 exact match in Redis (~0.1 ms). Layer 2: semantic match in Qdrant (~5–50 ms) above a threshold you set Brutor injects each provider’s own cache markers (Anthropic, OpenAI, Bedrock Claude, Vertex Claude, Azure OpenAI, Gemini)
Cost A hit spends no tokens, and still writes an audit row Read ≈ 10% of input tokens, write ≈ 125%; break-even is two reads
Tool-using requests Skipped by default: the answer depended on what a tool returned at that moment Wanted: tool definitions are a large, stable prefix
Isolation Per tenant and per group, with an optional shared pool; time bucketing so “this month” doesn’t return last month’s answer Provider-side

A response-cache hit is marked with the X-Cache-Hit response header (exact, semantic or shared). Hit rates, spend avoided and latency saved for both caches are in Mission Control.

Know what it costs, who spent it, and what you saved, measured rather than estimated by a vendor (Mission Control).

The Cost tab of Brutor Analytics: total spend split into governed inline traffic and observed imported vendor spend, a budget burn-down panel, and cost attribution broken out by provider, by model, by team resource group and by individual user, with a cost-composition-over-time chart bucketed weekly by provider.

  • Attribution four ways: by provider, model, team and individual user, with agent and unattributed spend shown as its own line rather than spread across users.
  • Governed and observed, side by side in the same total, so bought AI sits next to built AI (traffic data import).
  • Budget burn-down against the caps enforced in usage limits and resource groups, with alerts and an acknowledgement workflow before the invoice.

The LLM Economics tab of Brutor Analytics: cost per 1,000 requests and requests per month as charts, then token usage, estimated cost, average cost per request and average tokens per request, and a Cost Avoided panel splitting total avoided into an estimated gateway-cache figure and a measured provider-prompt-cache figure, alongside the cache hit rate.

  • Unit economics, not just totals: cost per 1,000 requests, average cost per request and average tokens per request, so a rising bill reads as either more work or more expensive work.
  • Cost avoided is measured, not assumed: the gateway cache’s estimate and the provider prompt cache’s measured discount are reported as two different numbers.
  • Levers: cost-based routing, batch submission at provider batch rates, and the two caches.

The Usage tab of a Brutor resource group: total requests, cost, LLM tokens, MCP calls, agent calls, skill calls, unique users and error rate for the period, with an option to include descendant groups; weekly activity charts for LLM, MCP and agent requests and weekly cost; and breakdowns of LLM usage by model, MCP usage by tool and agent usage by card and capability.

  • The same view at every node of the resource group tree, with descendants rolled in or excluded, broken down by model, MCP tool and agent card, across LLM, MCP, agent and skill traffic.

Seven views over the same traffic (traffic, cost, LLM economics, governance, caching, agents and reliability), and one of them tells you about the AI that never came through the gateway at all (metrics, logs).

The Traffic tab of Brutor Analytics: request volume over time with failures overlaid, requests broken down by surface into LLM, MCP, A2A and Portal, error rate over time, MCP operations with per-method call counts and success rates, A2A operations with per-capability figures and top agent cards, an hour-of-day by day-of-week request volume heatmap, error distribution and user type distribution.

  • Broken down by surface (LLM, MCP, A2A, Portal), with first-class MCP and A2A views: per-method counts, duration and success rate, and per-capability figures per agent card.
  • Volume, failures and error rate over time, plus an hour-of-day by day-of-week heatmap that makes a runaway schedule obvious.
  • Who is actually calling: API keys, portal users and anonymous callers.
  • Slice it any way you need: by AI System, by governed or observed plane, and by time range. Every panel exports.

The Governance tab of Brutor Analytics: enforcement outcomes for governed traffic, with 643 guardrail blocks (0.52% of requests), 0 policy denials, 1,771 requests flagged for PII and 122,704 inspected requests.

  • Enforcement outcomes as numbers: guardrail blocks as a count and a share, policy denials, PII detections, and how many requests were inspected at all, the difference between “nothing fired” and “nothing was checked”.
  • Discovery coverage as a fraction: governed assets over discovered assets, with shadow AI named, typed and actionable (shadow AI discovery).
  • Un-approved model spend surfaced with what it cost, and per-framework compliance coverage that says plainly when a framework is not enabled.
  • Bring your own stack: native OpenTelemetry feeds Prometheus, Grafana, Loki or any OTLP backend, and live reachability for every model and MCP server turns a failing dependency into a red component.

Every request passes auth, RBAC, routing, governance, cost tracking, quota enforcement, guardrails and the semantic cache lookup, with no opt-out. Measured against the same models called directly (Brutor in-house lab, June 2026):

≈ 0 ms median overhead

Proxy ≤ direct on the native pipelines: statistically indistinguishable at tested concurrency.

< 5 ms proxy-internal CPU

Total per request, from Criterion microbenchmarks.

0 proxy-introduced errors

100% pass-through reliability.

All governance on

Every request, every gate.

The benchmarking tool ships with the proxy (brutor-gateway-core/src/bin/benchmark.rs), so you can reproduce the measurement against your own providers and concurrency.

Brutor speaks the protocols your stack already uses, and leaving is a configuration change rather than a migration.

OpenAI-compatible API

Same SDKs, same wire format: point the base URL at /v1/proxy/llm. The native Anthropic Messages API is served at /v1/messages.

Native MCP

Tools, resources, prompts, sessions, and multi-server aggregation through Virtual MCP. Works with any MCP-compliant client (MCP clients, coding agents).

Native A2A v1.0

Signed agent cards, HMAC delegation chains and the full task lifecycle, with the same governance as LLM traffic.

Deploy anywhere

On-premises, private cloud or Brutor SaaS. Configuration exports as YAML for Git, and audit evidence exports in standard formats.

Not all AI traffic can route through a gateway, and Brutor does not pretend otherwise. Two mechanisms bring the rest into the same picture: observed, costed and attributed, but never enforced.

  • Traffic Data Import calls provider enterprise APIs (usage and spend exports for the ChatGPT, Claude and Copilot seats you buy) and lands them in the same usage ledger as routed traffic. FinOps sees one number per team and provider, whether the tokens went through the gateway or not.
  • Shadow AI Discovery collects non-routable and unregistered usage: discovery agents and adapters send signed events about AI found on the network, in repositories or in expense data, such as agents nobody registered and MCP servers nobody governs.