Are you using the npm version of n8n locally? To avoid having to manually set environment variables every time you start n8n, you can create a script or modify your system’s startup configuration which will depend on your OS. In windows, I think you can create a batch file that sets all the environment variables you want to set and then starts n8n. And instead of running n8n, you can run the batch file.