Total: 1
Tokamaks and stellarators are the leading magnetic-confinement concepts for fusion, but they rely on complementary design principles. Tokamaks use simple axisymmetric coils and plasma current, whereas stellarators use externally generated three-dimensional fields for steady-state operation. Here, we propose a programmable stellarator--tokamak hybrid that uses a fixed set of simple planar coils to access a broad magnetic-configuration space. The device adds 288 dipole-field coils to a tokamak-like coil set, with only six independent coil geometries required by symmetry. By programming coil currents, the same hardware generates more than 1.66 million optimized stellarator configurations spanning quasi-axisymmetry, quasi-helical symmetry, and quasi-isodynamicity, as well as tokamak-relevant three-dimensional perturbations. Representative configurations exhibit nested magnetic surfaces, low neoclassical transport, and favorable energetic-particle confinement. This approach enables rapid magnetic-configuration discovery without hardware redesign.