Skip to content
Herd Security

← All integrations

AI tools

Herd + LiteLLM

Send calls from your LiteLLM proxy to AI Insights.

What it is

Your self-hosted LiteLLM proxy pushes every call to Herd through LiteLLM’s generic API callback. Herd never connects to the proxy, which only needs outbound HTTPS.

Why it exists

Teams that route Cursor, Claude Code, and other tools through one proxy already have a single place where that traffic can be seen.

What it means for you

Every call is scored like any other AI use and matched to the engineer whose LiteLLM key made it. An optional guardrail can check a call before it’s sent.

Access
Inbound (your LiteLLM proxy pushes each call to Herd)
Connects with
Ingest token

How to connect LiteLLM

The short version. The setup guide has every screen and setting.

Before you start

  • Herd admin or Manage AI Governance permission
  • Access to edit the proxy’s config.yaml and environment, and to restart it
  • A LiteLLM virtual key per engineer, with their work email as key owner, so calls match to people
  1. Create the ingest token

    On the Connect LiteLLM card in AI Insights → Setup, click Create ingest token and copy the ready-to-paste config. The token is shown once.

  2. Add the callback to config.yaml

    Paste the block from the card into the proxy’s config.yaml. Keep turn_off_message_logging set to false.

  3. Set the batch size

    Set DEFAULT_BATCH_SIZE=20 in the proxy’s environment, because Herd accepts at most 100 records per batch, then restart the proxy.

  4. Confirm data arrives

    Send one request through the proxy. The card shows last received with a date once Herd accepts the first batch.

The full walkthrough is in the LiteLLM setup guide.

Join the Herd

See Herd working with LiteLLM.

Bring your stack to a demo. We’ll connect it and show you what Herd does with it.