When you execute a flow on a local machine using Prefect, the flow is run by the user account that is currently logged into the system and executing the Prefect command. This means that the flow execution inherits the permissions and environment of that user.
For more details on running flows locally, you can refer to the official Prefect documentation
here.
If you have specific configurations or environments, make sure they are set up under the user account that will be executing the flows.