Skip to content

gateway

Self-hosted proxy that filters prompts and responses between your app and LLM APIs

Source available · BUSL-1.1 AI-native

Listed by , founder & editor

18

Health

Dormant

Overview

Stars

181

Last commit

17 months ago

Jun 2025

Repository age

1 year

since Jun 2025

Latest version

–

Contributors

–

Releases

0

last 12 months

Language

Python

Trylon Gateway is a FastAPI proxy that sits between your application and models from OpenAI, Google Gemini and Anthropic Claude. It checks requests and responses against policies you define, then validates, sanitizes or blocks them.

The guardrails target prompt injection, PII leakage, and toxic or off-brand output. You define them in a policies.yaml file. The default policy blocks any request containing an email address. Because the proxy exposes a chat completions endpoint, you can point an application at it and keep the same safety rules when you switch models.

You deploy it with Docker Compose. The first launch downloads machine learning models of roughly 1.5GB or more, which are cached in a persistent Docker volume. It runs on your own infrastructure, so data is filtered before it leaves your network.

The code is under BUSL-1.1, which is source-available rather than open source. It is a self-hosted option for teams comparing hosted LLM guardrail services.

Who it's for

Teams running public-facing chatbots on hosted LLMs

It can block sensitive input and toxic output before they reach users or the model provider.

Skip if: You need a project with ongoing maintenance, since there has been no recent activity.

Developers in regulated fields such as healthcare or finance

It redacts PII locally and supports logging policies as a base for compliance work.

Skip if: Your legal team requires an OSI-approved open source license.

Engineers using several LLM providers

One policy file applies the same rules across OpenAI, Gemini and Claude.

Skip if: You rely on providers beyond those three.

The problem it solves

Apps that call hosted LLMs can leak personal data, accept prompt injections or return toxic text. This gateway puts a policy layer in front of the model on your own infrastructure.

Strengths

  • Works with OpenAI, Google Gemini and Anthropic Claude
  • Policies are defined in a policies.yaml file
  • PII redaction runs before data leaves your network
  • Starts with Docker Compose and an example config

Trade-offs

  • BUSL-1.1 is source-available, not OSI open source
  • No commits since June 2025 and no releases
  • First launch downloads about 1.5GB of models
  • Limited to three named providers

Self-host gateway

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

git clone https://github.com/trylonai/gateway.git
cd gateway

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it open source?

The code is under the Business Source License 1.1, which is source-available. Check its terms before commercial use.

Can I self-host it?

Yes. Deploy it with Docker and Docker Compose on your own infrastructure.

Which LLM providers does it support?

OpenAI, Google Gemini and Anthropic Claude.

What happens on first launch?

It downloads machine learning models of about 1.5GB or more into a persistent Docker volume, so later starts are faster.

Is it actively maintained?

No. The last commit was in June 2025 and there are no recent contributors.

Similar tools in AI security and guardrails

shellward

AI security and guardrails

Scanner and runtime guard that checks AI projects against Chinese compliance rules

140 23 2 months ago Active Apache-2.0

jev-as-a-judge

AI security and guardrails

115 18 2 months ago Dormant Unknown

localmod

AI security and guardrails

Offline moderation API that flags toxicity, PII, spam and prompt injection in text and

116 22 32 days ago Slowing MIT

Claw-Hunter

AI security and guardrails

Script that finds OpenClaw AI agent installs on endpoints for IT security teams

89 8 9 months ago Dormant MIT

skill-audit

AI security and guardrails

63 3 10 months ago Dormant Unknown

clawsecure-openclaw-security

AI security and guardrails

Security scanner for OpenClaw agent skills, checked against the OWASP ASI Top 10

41 4 2 months ago Slowing MIT