Back to Tensorzero

README

examples/docs/guides/operations/centralize-auth-rate-limits-and-more/auth/README.md

2026.4.1500 B
Original Source
  1. Set the environment variable OPENAI_API_KEY with your OpenAI API key. (The relay gateway will use it.)

  2. Set up Postgres:

bash
docker compose run --rm relay-gateway --run-postgres-migrations
  1. Create a TensorZero API key:
bash
docker compose run --rm relay-gateway --create-api-key
  1. Set the environment variable TENSORZERO_RELAY_API_KEY with the key you just created. (The edge gateway will use it.)

  2. Spin up both gateways and Postgres:

bash
docker compose up