This study provides a theoretical model and manufacturing strategy for bottom-up design of architected electrodes for use in electrochemical flow reactors, aiming to enhance the overall cell performance by minimizing the electrical and hydraulic power losses. In this research, we developed a high-performance densitybased topology optimization framework for two-and three-dimensional porous electrodes. The optimization algorithm employed multi-physics computational models of momentum and charge transport processes using the porous electrode theory developed using the finite element method, in which the electrode was considered as a macroscopic variable-porosity block. The constructed mathematical model was nondimensionalized to enable us to study different ranges of operating conditions and system properties. The macroscale topology optimization problem was formulated to maximize performance in terms of reducing electrochemical and pumping power losses in a half-cell redox flow cell.