The study presents a novel integrated three-compartment electrochemical continuous electrodeionization reactor that was constructed in a laboratory environment. In order to extract large amounts of carbon dioxide from naturally occurring oceanwater in the form of bicarbonate and carbonate, it develops a innovative electrolytic cation exchange process. At the same time, it produces hydrogen gas for possible hydrocarbon synthesis. The study employs the Box-Behnken experimental design approach implemented through the Design Expert software to investigate and optimize the performance of electrochemical hydrogen extraction from Ocean water from an integrated reactor. The integrated electrochemical continuous-type electrodeionization reactor comprises two cation-permeable membranes that operate as boundaries between three compartments: a central compartment and electrode compartments that house the cathode and anode, each of which may reverse polarity. These membranes are made of gel polystyrene cross-linked with divinylbenzene, which has acidic properties that allow cation transport while inhibiting anions. The integrated reactor's electrode chambers are enclosed in plexiglass end plates and contain distinct Plexiglass electrode compartments. These compartments have mesh and solid steel anode and cathode electrodes, with an electrode active area of 176.71 cm2. The influence of various factors, such as voltage and electrolyte amount, on the production of hydrogen synthesis is examined. The study results demonstrate a maximum hydrogen production rate of 2.2 mg/min and a hydrogen production efficiency of 7.82%. The lab testing was carried out using experimental equipment to determine viability. The tests included 35-min runs that measured hydrogen generation under various parameters, such as applied voltage, electrolyte concentration, and pH levels. The ocean salt solutions of 0.5M, 1M, and 2M were initially prepared and evaluated for hydrogen generation. Each concentration is assessed at a voltage range of 4–15V, with matching solution pH values ranging from 2 to 7. Optimization studies were conducted to enhance the hydrogen production rate. The results indicate that hydrogen production rises proportionally with applied voltage and electrolyte concentration but falls with pH growth. Within the Design Expert software, the statistical methods for response surface analysis and optimization are utilized accordingly.