Skip to content

    Type a page, a command such as keryn scan, or a rule id.

    Cloudflare AI Gateway

    Describes Keryn 0.5.2 and keryn-rules 0.8.0. Changelog

    View as Markdown

    The gateway is a second party between you and the provider. Findings and your key go to Cloudflare, which forwards them to the provider named in the model (provider/model). The key you enter is the upstream provider’s, and the gateway’s own logging and caching settings, which you control in your Cloudflare account, decide what Cloudflare keeps.

    Endpoint and protocol

    Endpointhttps://gateway.ai.cloudflare.com/v1/{account}/{gateway}/compat, with {account} taken from Account ID and {gateway} taken from Gateway
    ProtocolChat Completions
    KeyAuthorization: Bearer
    Reply formatJSON mode; the instruction asks for the verdict shape and Keryn checks it
    Suggested modelsanthropic/claude-opus-5-5, openai/gpt-5 (the first is the default; any model your account can use works)
    Page can reach ityes, https://gateway.ai.cloudflare.com is in Keryn Web's content security policy

    Fields

    FieldKindDefaultNotes
    Account IDtext
    Gatewaytextdefault
    Provider keysecretThe upstream provider's key; the model is provider/model, e.g. anthropic/claude-opus-5-5
    Modeltext

    How keys and values are stored is on the connectors overview.

    What leaves your machine

    Test sends no finding. It asks the endpoint for its model list with your key, which checks the address and key without spending tokens.

    Generated from the product's connector catalog (monorepo 27434c1bb57f) by tools/extract-product-facts.mjs.