Developer Releases AegisLLM, Open-Source Python Proxy for LLM Security and Cost Control
Aman Kumar built AegisLLM, an MIT-licensed, self-hosted proxy written in Python, to address data leakage, prompt injection, and unbounded spending in production LLM applications. The tool is OpenAI-compatible, so teams can adopt it by changing a single base URL in their existing SDK code. Each request passes through a per-tenant budget gate, a prompt-injection firewall with deterministic rules, and a PII and secret redactor before reaching the upstream provider. Spending is tracked in a thread-safe SQLite ledger, and requests exceeding a tenant's budget receive an HTTP 429 response. The author chose a self-hosted design because routing unredacted sensitive prompts through a third-party gateway would undermine the security goals of many teams.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in