.env.example
file in the root directory and rename it to .env.
.env
file and save it. npm install
npm run dev
It is very unsafe to run an app like this and your OpenAI key becomes more or less accessible to the public. While this is very generous to other people, you might consider writing a proxy server to conceal your API key in production environments.