You'll want to have prefect available to whichever environment you'll end up running prefect flows in, as well as where the agent runs (whether or not that's the same machine is up to your choice of infrastructure
if you'd like to run the agent as a long-lived linux process you could follow this guide
or use the helm chart for the agent on k8s
otherwise you can always just open another tab on your terminal with the same venv and run
prefect agent start -q mynewqueue
to test things out locally!