The majority of input energy would be solar, growing the plants. the machinery used to harvest and transport it wouild run on electriciy and fuel cells just like everything else. It is just a matter of A) generating enough plant matter, and B) getting the infrastructure to critical mass to become sel sustaining.
Sure, it sounds far fetched. But hey, you have to start some where some time. Right?