# Self-hosted alternatives to Portkey AI Gateway

> 1 self-hostable, open-source alternative to Portkey AI Gateway, ranked by score.

- [aisecuritygateway](https://selfhost.directory/project/aisecuritygateway)

## Also in Security

Not listed as Portkey AI Gateway alternatives, but from the same category:

- [Adrian](https://selfhost.directory/project/adrian): Adrian is an open-source runtime security tool that monitors AI agent reasoning and actions, spotting injected prompts and unsafe tool calls before they execute.
- [DarkMoon](https://selfhost.directory/project/dark-moon): DarkMoon is an autonomous AI penetration testing platform with 50 specialist agents that runs on your infrastructure using local LLMs behind a Privacy Gateway.
- [LLMPID-AS](https://selfhost.directory/project/llmpid-as): Self-hosted, open-source API service that detects prompt injections in LLM inputs using a fine-tuned BERT model, with JWT authentication and classification logging.
- [Krawl](https://selfhost.directory/project/krawl): Krawl is a self-hosted web honeypot with AI-generated deception pages to detect and track malicious crawlers. Features a real-time dashboard and firewall integration.
- [ohmycaptcha](https://selfhost.directory/project/ohmycaptcha): Self-hosted open-source captcha solver with a YesCaptcha-style createTask API covering reCAPTCHA, hCaptcha, Turnstile and image tasks via Playwright and vision models.
- [pentagi](https://selfhost.directory/project/pentagi): Self-hosted, open-source multi-agent platform that runs autonomous penetration tests with professional security tools in Docker sandboxes and produces reports.

All 244 Security projects: https://selfhost.directory/security

---
Source: https://selfhost.directory/alternative-to/portkey-ai-gateway