So, where does lithium come from? It comes from the Earth, of course, but it doesn't require strip mining or blowing the tops off mountains like other resources do...most often, lithium is found in briny underground ponds. The liquid is pumped out and left to dry in the sun. TANSTAAFL https://duckduckgo.com/?q=lithium+pond+photos&iax=1&ia=image... Mining is mining. There isn't a "green" form. Tearing holes in the ear…
You can get energy out of a lithium battery several times, which puts it well ahead of tearing holes in the earth to mine coal. No, it's not permanently "off the grid" as it depends utterly on the whole industrial infrastructure, but it not continually tied to the grid like a power line running to a coal-fired power station.
You can't get any energy out of a battery until you put energy in ... alas more in than out per the laws of thermodynamics.