🛡️ Portarus: the gateway for AI agents Discover more →

Filters

Rate limiting, deduplication and token budget — on by default, fully tunable.

Last updated October 1, 2026

Three mechanical filters run on every message. All are enabled by default. You can tune or disable each one from the gateway edit page.

Gateway edit page showing the filters section — rate limit, dedup and token budget
The filters section of the gateway edit page.

Rate limiting

Limits how many messages a single user_id can send in a time window.

ParameterDefaultRange
Max messages1010–30
Window10s10–60 seconds

Deduplication

Catches identical messages (same user_id + message hash) within a time window.

ParameterDefaultRange
Window1 min1–3 minutes

Token budget

Blocks messages that exceed a token count. Prevents token-stuffed payloads from reaching your agent.

ParameterDefaultRange
Max tokens4,09650–10,000

Above 4,096 tokens a warning is shown — most LLM context windows cap well below 10K per message.