> ## Documentation Index
> Fetch the complete documentation index at: https://silmaril.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI gateways

> Protect model traffic routed through LiteLLM or Vercel AI Gateway.

Connect Silmaril where your application routes model requests. Choose the integration that matches your gateway.

<CardGroup cols={2}>
  <Card title="LiteLLM" href="/docs/integrations/litellm" icon="https://mintcdn.com/silmarilsecurity/-o1oGeQ7clCTZkbl/assets/litellm.svg?fit=max&auto=format&n=-o1oGeQ7clCTZkbl&q=85&s=e6c0a1df964e993562c6ed42abc3db02" arrow={true} className="docs-path-card" width="16" height="16" data-path="assets/litellm.svg">
    Configure pre-call and post-call guardrails in your LiteLLM proxy.
  </Card>

  <Card title="Vercel AI Gateway" href="/docs/gateways/vercel" icon="https://mintcdn.com/silmarilsecurity/-o1oGeQ7clCTZkbl/assets/vercel.svg?fit=max&auto=format&n=-o1oGeQ7clCTZkbl&q=85&s=d9011f21f5baf8066ed6c4c849d0c1de" arrow={true} className="docs-path-card" width="24" height="24" data-path="assets/vercel.svg">
    Wrap gateway models with Silmaril middleware in your application.
  </Card>
</CardGroup>

## Choose the right connection

| Gateway | Where Silmaril runs | Silmaril endpoint |
| - | - | - |
| LiteLLM | The proxy calls Silmaril before and after model requests. | Guardrail endpoint |
| Vercel AI Gateway | Your application wraps the gateway model with the TypeScript SDK. | Classify endpoint |

Silmaril provides your API key and endpoint through [deployment access](/docs/start/quickstart#get-access). Gateway credentials are configured separately.

## Verify coverage

Start with observation, confirm requests appear in Silmaril, then configure blocking for the boundaries you intend to protect. LiteLLM coverage depends on proxy guardrail configuration. Vercel coverage applies to calls made through the wrapped model. Other callers of the gateway are not automatically protected.

For direct model and orchestration integrations, see [Framework SDKs](/docs/integrations/frameworks).
