PromptGate Docs
The self-hosted AI gateway as a single binary, between your apps, your coding agents and every AI provider. Start with the installation, the configuration and the guardrails.
POPULAR DESTINATIONS
New to PromptGate? Start here
Install one binary, answer six questions, point your agents at it.
Guardrails
Secrets, personal data and prompt injection — masked, redacted or refused.
Routing and keys
Model aliases, provider prefixes, pg_ keys and fallbacks.
End users
Name the user per request; limits and budgets per user.
AI Gateway endpoints
Named prompts in YAML with typed variables, sessions and a cache.
MCP gateway
Every MCP server behind one endpoint, every tool call checked.
API Gateway
Plain HTTP APIs behind pg_ keys, credentials stay in PromptGate.
Command line
Every promptgate command and its flags.