I was wondering to build the same thing but someone already built it. I just need some agent that open/close super fast and don't eat half a gb of memory.