Any user running a self-hosted instance can set environment variables - even on the Free tier - but the method for doing so depends a bit on how you've deployed Retool. In general, you'll need to define those variables in the configuration files - docker-compose.yml or values.yml depending on whether you deployed with Docker or Helm, respectively.
You can see some default environment variables being set in a Docker deployment below.