Charge density waves (CDWs), as a hallmark of strongly correlated electronic systems in low-dimensional materials, exhibit collective quantum phenomena that enable phase-coherent electronic manipulation. In this work, we demonstrate a reconfigurable logic system based on CDW-driven phase transitions, tailored for terahertz optoelectronic applications. By precisely modulating metastable macroscopic quantum states through cooperative thermal, electrical, and optical stimuli, the device achieves deterministic switching between resistive and dissipationless states. Experimental results reveal exceptional performance, including a high current responsivity of 6.79 A/W, a noise equivalent power of 2.64 nW/Hz1/2, and an ultra-fast response time of 2.5 μs at 0.3 THz. The thermally mediated CDW transitions allow fine-tuning of device functionalities, integrating sensing, logic, and memory within a single architecture. This approach offers a paradigm shift by breaking away from conventional von Neumann architectures, addressing energy efficiency and latency bottlenecks through localized, in-sensor computation. Furthermore, our findings provide deep insights into the interplay of symmetry-breaking mechanisms, quantum coherence, and non-equilibrium dynamics in CDW systems, elucidating the underlying physical principles driving the device performance. The long-term retention of resistance states and robust phase stability under multi-field control demonstrate the feasibility of CDW-based devices for secure communication, cryptographic processing, and programmable optoelectronic logic. These results underscore the transformative potential of CDW-driven thermoelectric logic systems in advancing terahertz optoelectronic networks, while simultaneously broadening the understanding of correlated quantum phenomena in condensed matter physics.