Trelo is in BETA. One line of code to stop agent loops, duplicates, and attacks. Join early access

Stop infinite loops, prevent attacks, and cut token waste by 40-70%. One line of code.

Trust middleware
for AI agents

Eight problems.
One proxy.

Infinite Loops

Agents hammer the same broken tool call hundreds of times while you watch the meter run.

Prompt Injection

Malicious user input tricks your agent into deleting data or calling unauthorized APIs.

Runaway Spend

You discover the $4,000 API bill on Monday morning with zero idea which agent caused it.

Duplicate Actions

The same agent charges a customer twice because it lost track of what it just did.

No Side effects safety

Emails send twice. Orders place twice. Database writes happen twice. Every retry is a disaster.

Black Box Audits

An agent makes a bad decision at 3 AM and you have zero logs to explain why.

Silent Failures

The agent stops responding mid-task. No error. No timeout. Just silence and a stuck customer.

Retry Storms

One failing API triggers a cascade of retries that burns your monthly budget in 20 minutes.

BY THE NUMBERS

What we're seeing in private beta.

0%
Token waste reduction
0%
Failure cost reduction
0+
Security signatures
0
Protection layers deployed

Two steps.
Zero config.

1

Install the guard

Setup once

One command. Python, FastAPI, SQLite. No external services, no config files, no infrastructure changes.

pip install trelo
2

Wrap your agent

Runtime

Add one line to your agent code. Circuit breakers, dedup, firewall, and audit trail activate immediately.

agent = Agent(guard="trelo")
shell
PRICING

Start free.
Scale when ready.

Requests / month10K/mo
Agents3
Log retention7 days
SSO
Cost policies
Testing sandbox
Compliance reports
DashboardBasic
Model routingBasic

Pro

$29/mo

Get started
Requests / month100K/mo
Agents10
Log retention30 days
SSO
Cost policies
Testing sandbox
Compliance reports
DashboardAdvanced
Model routingAdvanced

Team

$299/mo

Start trial
Requests / month500K/mo
AgentsUnlimited
Log retention90 days
SSO
Cost policies
Testing sandbox
Compliance reports
DashboardTeam
Model routingAdvanced
EnterpriseCustom

Dedicated support, SSO, compliance reports, unlimited everything.

Contact us

Open source? Self-host Trelo for free. MIT licensed. GitHub →

One line of code.
Eight layers of protection.

Your agents should ship fast, not burn your API budget at 3 AM.