Enable Straikerv3.14+

Enable the Straiker plugin on a Route that carries LLM traffic, such as Anthropic Messages or OpenAI chat requests.

This configuration scores prompts and responses, and injects the upstream model credential at the gateway so clients never carry a platform key. Traffic passes uninspected, stamped degraded, if Straiker can’t be reached. Set fail_closed to true to reject it instead.

The delivery mode is controlled by the STRAIKER_KONG_MODE environment variable on the Kong Gateway node. See Delivery mode in the plugin documentation.

Prerequisites

  • The Straiker plugin is installed, with nginx_http_client_body_buffer_size raised to 32m.

  • A Straiker account and integration key.

  • A Service pointing at the model provider, for example https://api.anthropic.com. Set a generous read_timeout, for example 600000.

  • A Route with protocols set explicitly, for example http and https.

Environment variables

  • STRAIKER_API_KEY: Your Straiker integration key.

  • UPSTREAM_API_KEY: The model provider credential the gateway injects.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!