An electrical energy storage device (20) includes a silicon substrate (22), which is formed so as to define a multiplicity of micro-containers (24, 26) having porous silicon walls (28), which are configured to serve as an anode layer. A cathode layer (34) overlies the micro-containers, with a separator layer (32) intermediate the anode layer and the cathode layer.