is it possible to run an agent in the cloud and no...
# prefect-community
d
is it possible to run an agent in the cloud and not in my local machine?
r
You can start an agent on a machine in the Cloud the same way you’re doing in local! It should then pick flows for execution.
Or ou can spin up a Docker with the agent. Ref: https://hub.docker.com/r/prefecthq/prefect
d
@Raphaël Riel I don't understand. At the moment I close my VScode the prefect cloud agent is closed too. So the only way to keep my code running is to run the agent somehow in the cloud isn't it? if you agree with me. can you share a link on how to do it? the idea is to run some flows while my computer is turned off
d
Hi @Dor Menachem! You can install a long-running agent as a Kubernetes Deployment or an ECS pod. See https://docs.prefect.io/orchestration/agents/kubernetes.html#installation for more details
If you need to install a LocalAgent as a long-lived process you can check out https://docs.prefect.io/orchestration/agents/local.html#useful-supervisor-commands