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

  2. Set up Postgres:

docker compose run --rm relay-gateway --run-postgres-migrations
  1. Create a TensorZero API key:
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:

docker compose up