Skip to content

Installation Guide ​

This guide will help you install elsai LLM Gateway and check that it works.

Prerequisites ​

  • Python 3.10 or higher
  • pip package manager
  • Credentials for at least one model provider (Azure OpenAI, AWS Bedrock, OpenAI, ...)

Installation ​

bash
pip install --extra-index-url https://core-packages.elsai.ai/root/elsai-llm-gateway/ elsai-llm-gateway

Verify the installation ​

python
import elsai_llm_gateway

print(elsai_llm_gateway.__version__)

Required environment variables ​

The server needs two secrets. It refuses to start without them.

VariablePurpose
LITELLM_MASTER_KEYMaster key of the underlying LiteLLM proxy.
GATEWAY_ADMIN_KEYKey that protects the /admin/v1 API.
bash
export LITELLM_MASTER_KEY="sk-<choose-a-long-random-value>"
export GATEWAY_ADMIN_KEY="<choose-a-long-random-value>"

The in-process Python SDK does not need a database or a running server.

Optional services ​

ServiceWhen you need it
PostgreSQL (DATABASE_URL)Virtual keys, teams, organisations and database-backed policy overrides on the server.
RedisSpend counters and cache shared between several gateway instances.
AWS Secrets ManagerLoading provider keys and other secrets at start-up. See Environment Variables.

Next steps ​

Copyright © 2026 elsai foundry.