The utilization of lithium (Li) metal as an anode has attracted significant attention for high-energy Li batteries. Unfortunately, uncontrollable Li dendrite cannot be avoided during Li plating and stripping. Much intensive research has been conducted to suppress the dendritic growth by confinement of metallic Li in host architectures. Recently, zeolitic imidazolate frameworks (ZIFs) with a porous features have been used to explore a new approach to storing the Li metal with the advantages of their structural and chemical stability, large surface areas, and large pore cavities. Herein, we investigate the storage capability of metallic Li in a porous carbon framework derived from ZIFs as a function of carbonization temperature. Diversities in pore volumes and channels, the degree of crystallinity, the amount of residual zinc (Zn) metal, and the electrical conductivity can all be controlled by temperature. We demonstrate that well-connected pore channels and adequate electrical conductivity secure the Li-ion pathways and that well-distributed Zn clusters in porous carbon trigger the outward growth of metallic Li from inside the frameworks, resulting in a relatively low overpotential and long-lasting cyclability. Our findings can provide practical insight into advanced electrode design for next-generation Li metal batteries.