Skip to content
agentgateway has joined the Agentic AI Foundation — Learn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

DeepKeep

Page as Markdown

Use the DeepKeep AI Firewall as an external guardrail through the Guardrail Webhook API.

You can use DeepKeep as an external guardrail provider by running the DeepKeep agentgateway webhook adapter. The adapter exposes the default Guardrail Webhook API paths that agentgateway calls and forwards checks to DeepKeep’s pre-model and post-model moderation endpoints.

Run the adapter

Run the adapter with the DeepKeep connection settings for your environment.

docker run --rm -p 8000:8000 \
  -e DEEPKEEP_BASE_URL=https://deepkeep.example \
  -e DEEPKEEP_API_KEY=dk_... \
  -e DEEPKEEP_MODEL=your-firewall-id \
  ghcr.io/deepkeepai/agentgateway-deepkeep-webhook:latest

Configure agentgateway

Configure agentgateway to send request and response guardrail checks to the adapter.

llm:
  models:
  - name: "*"
    provider: openAI
    params:
      model: gpt-3.5-turbo
      apiKey: "$OPENAI_API_KEY"
    guardrails:
      request:
      - webhook:
          target:
            host: localhost:8000
      response:
      - webhook:
          target:
            host: localhost:8000

The adapter maps DeepKeep block, redact, modify, and alert actions to the Guardrail Webhook API actions that agentgateway understands.

More information

  • Custom webhooks for the webhook contract, the timeout, and the failureMode setting.
  • Prompt guards for the built-in guards that you can run alongside a webhook.
Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate ↵ select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.