Kapālins for Hugging Face
Models served through Hugging Face inference endpoints. Your applications call Kapālins instead of Hugging Face: the prompt is checked on the way out, the reply on the way back, and Hugging Face’s key never leaves the vault.
Stop it before it leaves
A prompt carrying a customer record, a secret or an injection attempt is redacted or blocked before Hugging Face sees it. The reply is checked on the way back.
One key no app ever holds
Each application gets its own virtual key. Hugging Face’s key is sealed in Kapālins, rotates without a redeploy, and can be cut off per app in one click.
Every model, judged
Hugging Face’s models are tested through your own key — the Alignment Lab’s alignment tests — and approved, held or blocked one by one, before anyone builds on them.
One endpoint, one key, every provider.
Point the application at your gateway host with a virtual key. Kapālins routes to Hugging Face with the key it holds, fails over when Hugging Face is down, and meters every call to the team that made it.
- Your app speaks OpenAI API format
- Spend metered to the team that made the call
- Block the provider domains at your firewall and this becomes the only way out


Agents calling Hugging Face, fingerprinted.
Every agent and service key that calls Hugging Face through the gateway gets a behaviour baseline: calls, active hours, models, prompt repetition, injection rate. When one drifts it is flagged with the reasons, and one click drafts a guardrail or quarantines the key.
- The tools and MCP servers each agent actually invoked
- Detect only by default; quarantine is one click and reversible






Every Hugging Face model, approved or not.
The Probe Runner tests Hugging Face models through your own key with the Alignment Lab’s alignment tests. A model is approved, conditional or blocked from its results. On Growth and Fortress, Policy Shield acts on the verdict at the gateway; on Foundation it records what it would have refused.
- Alignment families: what a model does when misbehaving would pay
- Scheduled tests and Alignment Core come with Model Threat Simulation at Protect (Growth and Fortress), tests on demand and Alignment Full at Prove (Fortress); Model Threat Simulation is also sold as an add-on. At See, you see the results of tests already run.


Four steps.
- Add the providerIntegrations › Hugging Face › paste the key. Kapālins checks it with a live call, then seals it.
- Issue virtual keysOne per application or agent, each with its own policy, models and budget.
- Change the base URLPoint the application at the gateway. Request and reply formats stay as they are.
- Detect, then enforceEvery shield starts in detect, so nobody is blocked on day one. Enforcing needs the AI gateway at Protect; below it, the gateway records what it would have blocked.
See Hugging Face governed in thirty minutes.
Bring the person who holds the credential. We connect it live and watch the first events land.
Questions buyers ask.
Does the gateway add latency to Hugging Face calls?
Policy Shield runs in the request path. Each family can be set to detect only, and the gateway reports its own added time per call in the timeline.
Do my applications need code changes?
A base URL and a key. The gateway accepts the OpenAI and Anthropic formats, so request and response handling stay as they are.
Can Hugging Face be governed without the gateway?
Routing is what makes inline control possible. AI that cannot be routed, such as hosted copilots, is governed from its audit logs, identity grants and the device sensor instead.