Skip to content

PromptGate Documentation

The self-hosted AI gateway that sits between your applications and AI providers. Secure credentials, route requests, control budgets — all from one platform.

Secure credential storage

Store provider API keys with AES-256-GCM encryption. Keys are shown once at creation and never exposed again. Your applications never touch raw provider keys.

Provider routing

Define provider templates that bind a provider, model, and settings into reusable configurations. Switch models across all endpoints by updating a single template.

Project isolation

Organize resources into projects with four types: AI Gateway, AI Wrapper, API Gateway, and MCP Gateway. Each project has its own credentials, templates, and access controls.

Self-hosted

Run PromptGate on your own infrastructure with Docker and FrankenPHP. Your data, your keys, your control. Community Edition under BSL 1.1 license.

Terminal window
git clone https://github.com/promptgate-dev/promptgate.git
cd promptgate
docker compose up -d

Open http://localhost:8000 and log in with admin@promptgate.dev / admin.

Read the full Installation guide or jump to the Quick Start.