Environment variables in cursor agent

Hey , when cursor agent executes a command like “node foo.js”, and foo.js contains something like:

const token = process.env.SECRET_TOKEN

Is that environment variable coming from my terminal environment or cursors? Is there a way I can set secrets for cursor to use when it runs scripts that use environment variables?