Use the Straiker plugin (straiker) to protect LLM traffic flowing through Kong Gateway. The plugin scans prompts before they reach the upstream model and scans model responses before they return to the client.
This plugin can protect chat applications and coding agents. It speaks Anthropic Messages and OpenAI chat, so it also protects agents such as Claude Code.
Straiker evaluates each turn against the policies configured in the Straiker Console, and Kong Gateway forwards the traffic or replaces it with a policy message based on the verdict.
Note: This plugin is built for AI Gateway running on Kong Gateway. It has not been validated against AI Gateway 2.0.
With Straiker, you can:
- Block unsafe traffic at the gateway: Detect prompt injection, jailbreaks, sensitive data exposure, and unsafe model output.
- Inspect indirect prompt injection: Catch poisoned tool results arriving from a coding agent’s local tool run.
- Stop a tool call before it runs: Prevent a model’s tool call from reaching the agent, on routes configured for it.
- Centralize AI security enforcement: Apply one policy across applications, models, and providers.
- Hold the upstream credential at the gateway: Clients never carry a platform key.
- Inspect streaming and multimodal traffic: Evaluate AI traffic without adding an application SDK.