Introducing LLM Gateway Telemetry in Beacon
Beacon, our open-source telemetry layer for AI agents, now integrates with LiteLLM, Envoy Gateway, Istio, and Portkey, normalizing gateway traffic into our unified agent telemetry schema.
From model requests to agent activity
LLM gateways already see much of what AI agents do, but their logs are structured around model requests rather than agent behavior. Extracting shell commands, file reads, and MCP calls from those logs requires custom parsing for each harness.
Beacon handles this normalization out of the box, without requiring teams to build and maintain their own parsers or detection infrastructure.
What this unlocks:
- Agentless visibility: Collect telemetry from contractor machines, CI runners, and hosted sandboxes without endpoint deployments.
- Unified telemetry: Bring gateway, endpoint, browser, and cloud agent activity into a single event schema.
- Built-in threat detection: Detect prompt injections, risky shell commands, and suspicious MCP activity from model traffic.
- Centralized enforcement: Block risky tool calls at the gateway with Asymptote’s enterprise platform.
| Capability | LLM gateway alone | LLM gateway + Beacon |
|---|---|---|
| Model requests and responses | ✓ | ✓ |
| Token usage and spend | ✓ | ✓ |
| Raw tool calls and results | ✓ | ✓ |
| Harness-aware event normalization | Varies | ✓ |
| Unified shell, file, and MCP event schema | Varies | ✓ |
| Shared schema with endpoint, browser, and cloud telemetry | Not supported natively | ✓ |
| Agent-specific threat detection library | Varies | ✓ |
| Cross-harness agent security policies | Varies | ✓Asymptote’s enterprise platform |
Collecting from the gateway
Enterprises already use gateways like LiteLLM, Envoy Gateway, Istio, and Portkey to route model traffic, manage access, and monitor usage. For teams running AI agents, these gateways also provide a central point for telemetry collection.
Beacon runs alongside your LLM gateway as an open-source sidecar, using existing gateway hooks to capture and normalize model traffic into Beacon’s unified event schema.
Setup requires just a few lines of configuration, with no changes to developers’ existing URLs, API keys, or workflows. Instructions for each supported gateway are available in the docs.
What goes to the model
Model requests contain conversation context, including system prompts, available tools, user messages, and tool results. This gives the gateway visibility into security-sensitive activity, such as credentials returned by a file read or a malicious instruction embedded in a web page.
Beacon extracts only new events from each request, avoiding duplicate telemetry as conversations grow.
Gateway visibility is limited to the context sent to the model. A file the agent opens without passing its contents to the model, or work done on the machine that never reaches a prompt, doesn’t cross the gateway.
Beacon also inspects tool results for indirect prompt injection, including malicious instructions embedded in web pages, files, and MCP responses.
Beacon attributes each event to a user and an agent harness. User identity comes from gateway metadata, such as a LiteLLM virtual key, while the harness is identified from the client making the request.
Detecting threats before execution
The model’s reply can contain the agent’s next requested action, and the gateway sees that reply on its way to the agent.
Beacon records the command the moment the model asks for it, before the agent runs it. Shell commands, file reads and MCP calls become the kinds of events the endpoint collector writes, so the same threat rules apply, even on machines without Beacon installed.
The sidecar is MIT-licensed. Asymptote’s enterprise platform adds inline policy enforcement, evaluating model responses before they reach the agent.
Policies are enforced centrally at the gateway, without requiring separate enforcement integrations for each supported harness.
Deployment and performance
The open-source sidecar runs entirely within your infrastructure. Telemetry is written locally for ingestion by your existing log shipper or SIEM, and no data is sent to Asymptote. Events go through the same secret redaction as Beacon’s endpoint collection, and a metadata-only mode records the person, the agent, the command and the file, without prompts, replies or tool output.
The open-source sidecar answers the gateway as soon as it admits a call and analyzes afterwards. Asymptote’s enterprise platform evaluates security policies inline before allowing model traffic to proceed. We measured both in load tests:
| Results | |
|---|---|
| Added latency, open source | About 1 ms (analysis runs after the gateway is answered) |
| Analysis time, enterprise | About 0.1 ms for a typical request, before answering |
| Throughput | About 5,800 model round trips a second (about 11,600 sidecar calls) |
| p99 latency | About 1.1 ms |
| Peak memory | 97 MB |
| Test setup | |
| Sidecar | 2 vCPUs and 512 MiB, in its own cgroup |
| Load generator | Beacon’s stress tool, sharing the sidecar’s network namespace, like a pod sidecar |
| Traffic | Mixed LiteLLM, Portkey and Envoy Gateway calls |
| Analysis | A no-op analyzer running inline, so every verdict waited for analysis |
| Round trip | Two sidecar calls: one for the request, one for the reply |
Gateway, endpoint, or both
The gateway covers every supported agent that routes its model traffic through it, without touching a laptop. The endpoint covers what happens on a managed machine: the approvals an agent was given, the hooks that ran, the files it wrote outside a tool call. A gateway sees a model ask for a command, and an endpoint sees the command run.
| Capability | Gateway | Endpoint |
|---|---|---|
| Software on each machine | None | Required |
| Agents with no endpoint integration | Yes | No |
| Model requests and responses | Yes | Per agent |
| Requested tool actions | Yes | Yes |
| Commands confirmed to run | Limited | Yes |
| Local file changes and approvals | Limited | Yes |
| Visibility outside the LLM gateway | No | Yes |
Gateway and endpoint collectors can run independently or together. Both use the same event schema, detection rules, and SIEM integrations, and Beacon can correlate model calls observed by both collectors.
One schema, wherever agents run
Beacon now collects telemetry from coding agents, browsers, agent SDKs, CI pipelines, cloud environments, and LLM gateways.
All integrations use the same open event schema, so teams can expand their coverage without rebuilding their detection rules, SIEM integrations, or security workflows.
- 01Collect
- 02Normalize
- 03Redact
- 04Detect
Deploy Beacon at the gateway, on endpoints, or both. Use Asymptote’s enterprise platform to enforce security policies across supported agents in real time.