Skip to content
B2Metric × Snowflake at GITEX GLOBAL 2026
AI Gateway · Model · MCP · Agent (A2A)

One AI Gateway for every company in the group, running inside each company

Shahin puts LLM, MCP and agent traffic under one policy, one console and one audit trail. Each company runs its own copy, close to its own data and models.

Shahin falcon emblem
Model GatewayOne entry for every model
MCP GatewayTools scoped per team
Agent Gateway (A2A)Agent-to-agent, with approval
Inside each companyRestricted data never leaves it
In action

See Shahin and its AgentOS family at work.

Three short films from the B2Metric AgentOS family, with Shahin's own in the middle.

Mosaic Agentic BI by B2Metric AgentOSWhy Did My Sales Drop? Dashboards in Every Merchant's PocketWatch on YouTube: Mosaic Agentic BI by B2Metric AgentOS | Why Did My Sales Drop? Dashboards in Every Merchant's Pocket

The challenge

AI already runs in every company, and each use case is wired to its own provider.

Every model change is a code change

Provider keys sit inside applications. Switching a model means a release, and one provider outage reaches customer journeys.

Nobody sees spend or data flow in one place

Tokens and cost cannot be read by department, use case or company. PII handling and guardrails differ from team to team.

API gateways stop at the HTTP call

Agents call MCP tools and other agents. A classic API gateway cannot scope tools per agent or follow one task from start to end.

With Shahin, every model, tool and agent call goes through one gate in your own data centre. It classifies each request, stops what should not leave and records every call.

Shahin, one product

Three gateways on one core, plus optional modules behind the same keys and audit.

What each part does and where it stands today.

Gateways and core

  • Core

    Shahin Identity

    Sign-in in production

    Sign-in through Entra ID over OIDC or SAML runs in production. Built on top of it: one tenant per company with its own members, levels and product seats, every change with an audit number, and SCIM provisioning.

  • Core

    Shahin Guardrails

    Built

    Detectors for MSISDN, national IDs, IBAN and card numbers, templates in Arabic, English and Turkish, and an Arabic-dialect classifier. Confidential data is masked reversibly; responses are scanned too. Pattern-based prompt-injection and jailbreak screening in English, Arabic and Turkish, with the mode set per tenant; every finding is counted and audited. On by default.

  • Core

    Shahin Observability

    Built

    Request trace with each step (class, rule, model, cache, gateway time), latency views, chargeback by company and department with CSV export, and an audit trail chained with hashes and exported to your SIEM.

  • Core

    Shahin Model Serving

    In production

    Open-weight models on your own NVIDIA GPUs, in production today at a telecom operator's on-premises site. Restricted traffic goes only here.

Optional modules

  • Module

    ASKY

    Optional module

    Governed analytics. People ask in plain language and ASKY writes read-only SQL on approved metrics and shows it. Its model calls go through the same gateway, so class and cost rules apply.

  • Module

    Mosaic

    Optional module

    Embedded dashboards inside your own portals. We use it for usage, cost and chargeback reporting per company and department.

  • Module

    Delivery

    Optional module

    Agent jobs with a budget cap per run and a person approving the plan before any action. Today it runs inside B2Metric.

  • In production runs at a telecom operator's on-premises site today.
  • Built the code is finished and we can show it working.
Architecture

One Shahin instance per company. Restricted data never leaves it.

Every request passes the same six steps.

  1. 1 · Identity

    Who is calling

    The virtual key and the person's token are checked on every call, including which application the token was issued for. No provider credential lives in the app.

  2. 2 · Classify

    Which data class

    Rules and checksum-validated detectors set Public, Internal, Confidential or Restricted from the content itself. If classification fails or times out, the request is treated as Restricted.

  3. 3 · Protect

    Mask and screen

    Confidential values are masked before they leave and restored in the answer. Guardrails screen the prompt and the response.

  4. 4 · Authorise

    Is it allowed

    Allowed models, tools and agents for this key; token, request and budget limits. A full window returns 429.

  5. 5 · Route

    Where it goes

    Only models whose location allows the class are eligible. Restricted goes to on-premises models only. Fallback never crosses that line, and if no allowed model is up, the request fails rather than leaving the company.

  6. 6 · Audit

    What is kept

    Each step is written to an audit trail chained with hashes, inside the company, and exported to your SIEM. The Group plane receives usage and cost metadata only.

  • Prompts, traces, cache and audit stay in the company.
  • Keeps serving if the Group link drops.
  • The Group plane holds policies and the model catalogue, and receives usage and cost reports — metadata only.
  • Today each instance applies the same versioned configuration; a live push of signed policy bundles from the Group plane is still to build.
Request trace · example company
CallerRequestResult
careRefund note with a customer's phone numberRestricted · on-prem200
careSame request to a cloud modelRestricted · cloud403
salesSummarise the B2B contract renewalConfidential · masked200
biPrepaid churn per month in 2026Internal · cache hit0.01 s
mktgDraft a 5G launch postPublic · cloud200
careIgnore previous instructions and…Guardrail · injection pattern403
mktgRequest 7 this minuteQuota full429
agentPayments.transferWaiting for approvalheld
agentAnalyst → PaymentsNot allowed403

Every request gets a data class, a route and an audit record before it reaches a model. These rows are example traffic.

Security & sovereignty

One gate in your own data centre.

Shahin classifies each request, stops what should not leave and records every call — inside each company's own data centre or tenancy.

  • Restricted data stays on-premisesCloud is refused, including on fallback. If the classification check fails, the request is treated as Restricted.
  • No provider credential in application codeEach department, use case and app gets its own virtual key.
  • Confidential data masked reversiblyConfidential values are masked before they leave and restored in the answer. Responses are scanned too.
  • Audit chained with hashesEach step is written to an audit trail inside the company and exported to your SIEM.
  • Guardrails on by defaultPattern-based prompt-injection and jailbreak screening in English, Arabic and Turkish; every finding is counted and audited.
Data class, masking and routing

The class is set per request, from the content. Restricted data stays on-premises.

Shahin reads every request and assigns one of your four classes with rules and checksum-validated detectors. A model is only eligible if its location allows that class. Fallback never crosses the line, and if the check fails, the request is treated as Restricted.

Where each data class may go
ClassWhere it may go
RestrictedOn-premises models only. Cloud is refused, including on fallback.
ConfidentialOn-premises, or cloud after reversible masking.
InternalAny allowed model.
PublicAny allowed model.

Classification, masking, class routing and pattern-based injection screening are built. The Arabic-dialect classifier is built; its precision and recall are tuned and measured on your labelled sample.

Keys, quotas and budgets

Every model call has an owner, a limit and a record. The budget owner decides what happens at the limit.

Each department, use case and app gets its own virtual key, so no provider credential sits in application code. On each key we set the models it may call, token and request limits, and a USD budget.

What is set per key
Set per keyWhat happens
Allowed modelsA call to any other model is refused.
Token and request limitsRefused with 429 when the window is full.
USD budgetRefuse, keep serving, or fall back to a cheaper model.
TeamCost lands on that company and department in chargeback.

Keys, quotas, spend budgets and chargeback are all built.

Response cache

A repeated question should not be paid for twice. A different question must never get a cached answer.

The gateway first looks for an identical request, then, where an app has it switched on, for a question with the same meaning above a similarity threshold. We run a strict threshold of 0.95.

Response cache, measured on telco sample data
Measured on telco sample dataResult
First questionMiss, model answers in about 2.5 s
Same question againExact hit in 0.01 s
Same meaning, other wordsSemantic hit in 0.07–0.14 s
Different intentMiss, goes to the model

Restricted and personal data are never cached. Confidential answers are reused only inside the same company and application. The cache is off by default and switched on per application.

Agent Gateway (A2A)

When an agent hands work to another agent, a person can step in.

Agent calls go through the same gate. It decides who may call whom, how deep a chain may go, and which skills need a person's approval. Identity is carried across every hop and each step is audited under one run.

Example agent access policy
Caller ↓ · callee →AnalystPlannerPayments
Planneryes–yes
Analyst–yesno
Paymentsnono–

Payments has one skill, transfer, that always waits for a person. The Agent Gateway speaks A2A version 0.3; we have run it with agents built on Google's Agent Development Kit and Microsoft Agent Framework. Agent names here are examples.

Where we stand, November 2026

What runs, what is built, what is left.

In production

  • On-premises open-weight modelson local NVIDIA GPUs
  • Entra ID sign-inOIDC and SAML
  • Governed MCP tool server
  • Admin console

Built, shown today

  • Data-class routing and maskingwith an Arabic-dialect classifier
  • Pattern-based prompt-injection and jailbreak screeningEnglish, Arabic and Turkish; findings counted and audited
  • Keys, quotas, spend budgets, chargeback
  • Department self-service viewsown keys, traces, latency and agents, read-only
  • MCP proxy with tool approval
  • REST APIs turned into tools from OpenAPI
  • A2A Gateway with delegation limits
  • Response cache, exact and semanticmeasured: repeat 0.01 s, same meaning 0.07–0.14 s, against 2.5 s from the model

Still to build or prove

  • OpenShift and air-gapped install proofin your environment
  • Evaluation-based routing
  • Group policy plane with signed bundles
  • Shadow AI discovery

Built means the code is finished and we can show it working.

Getting started

From demo to rollout in four steps.

  1. Demo

    A 60-minute walkthrough on a live reference environment.

  2. Design

    Agree which companies, teams and roles take part, and the success criteria.

  3. Proof of concept

    One cloud and one on-premises company. We measure gateway overhead and throughput on your hardware.

  4. Roll out

    Extend the same versioned configuration across the group.

Talk to us

See Shahin running on a live environment.

Book a 60-minute demo with the B2Metric team. Bring your platform lead; we'll show how Shahin fits your AI roadmap.