Peripheral nerve injury (PNI) remains a challenging area in regenerative medicine. Nerve guide conduit (NGC) transplantation is a common treatment for PNI, but the prognosis of NGC treatment is unsatisfactory due to 1) neuromechanical unmatching and 2) the intra-conduit inflammatory microenvironment (IME) resulting from Schwann cell pyroptosis and inflammatory-polarized macrophages. A neuromechanically matched NGC composed of regenerated silk fibroin (RSF) loaded with poly(3,4-ethylenedioxythiophene): poly(styrene sulfonate) (P:P) and dimethyl fumarate (DMF) are designed, which exhibits a matched elastic modulus (25.1±3.5MPa) for the peripheral nerve and the highest 80% elongation at break, better than most protein-based conduits. Moreover, the NGC can gradually regulate the intra-conduit IME by releasing DMF and monitoring sciatic nerve movements via piezoresistive sensing. The combination of NGC and electrical stimulation modulates the IME to support PNI regeneration by synergistically inhibiting Schwann cell pyroptosis and reducing inflammatory factor release, shifting macrophage polarization from the inflammatory M1 phenotype to the tissue regenerative M2 phenotype and resulting in functional recovery of neurons. In a rat sciatic nerve crush model, NGC promoted remyelination and functional and structural regeneration. Generally, the DMF/RSF/P:P conduit provides a new potential therapeutic approach to promote nerve repair in future clinical treatments.