In hybrid energy storage systems of fuel cell unmanned aerial vehicles (UAVs), achieving energy management while minimizing hydrogen consumption is the main goal for economic aspects and endurance enhancement. The external energy maximization strategy (EEMS) and the equivalent consumption minimization strategy (ECMS) are commonly used energy management strategies. However, they use a gradient descent approach, which converges slowly and does not guarantee the optimal solution. Thus, this paper proposes an optimization method based on a direction prediction optimal foraging algorithm (OFA/DP), which has the advantages of high optimization capability and simple parameter definition. In this study, the hybrid energy storage system comprises fuel cells and lithium‐ion batteries for powering UAVs. To verify the validity of the proposed strategy, it is compared with rule‐based and optimized methods of state machine control, fuzzy logic control based on frequency separation, ECMS, EEMS, and genetic algorithm. The obtained results confirm the superiority of the proposed OFA/DP‐based EEMS method with an efficiency of 88.65% and a minimum hydrogen consumption of 19.06 g. Furthermore, it achieves optimal power distribution and leads to 38.62% minimization in hydrogen consumption.