For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
DeepKeep
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:latestConfigure 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:8000The 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
failureModesetting. - Prompt guards for the built-in guards that you can run alongside a webhook.