← All guides

Self-hosting a BYOK LLM gateway: LiteLLM vs managed

You can run your own bring-your-own-key gateway with LiteLLM in minutes. Here's the setup, and when a managed BYOK gateway is the lower-effort path.

The LiteLLM route

LiteLLM is an open-source proxy that accepts an OpenAI-compatible request and routes it to the provider whose key you configured. You bring the keys; it handles normalization and fallbacks.