@adarsh-lm Environment variables are available on Self-hosted Enterprise and Pro Cloud plans; with only instance owners and admins being able to create variables. For more information, see Custom variables | n8n Docs
If you do not have access to custom variables, you can manually create them using an Edit Fields node at the start of your workflow.
Since you are using Docker / k8s, the best way to keep your environment secure is to avoid opening global access and instead only expose the specific variables you need.
add this configuration to your deployment:
Variable:N8N_EXPRESSIONS_ALLOWED_ENV_VARS
Value:BROWSERLESS_TOKEN
Once this is set and the container is restarted, your expression will work perfectly.
Set N8N_BLOCK_ENV_ACCESS_IN_NODE=false in your docker/k8s env and restart, that’ll let $env work in expression fields. One gotcha though — the editor preview will still show “access denied” even when it’s configured correctly, the values only resolve during actual execution so don’t let that throw you off.