Carbon-based electrodes played a significant role toward the development of wearable and flexible photovoltaic energy devices in an efficient and affordable manners. Here, all-carbon-based electrodes composed of carbon nanotubes fiber (CNTF) have been used to fabricate a flexible wire shaped dye-sensitized solar cell (DSSC). A facile electrodeposited approach has been adopted to modify a CNTF with polyaniline (PANI) under acidic conditions. Both photoanode (TiO2@CNTs) and counter electrode (PANI@CNTs) twisted around each other, acted as electrons and hole collectors in the presence of redox couple (iodide/triiodide) as electrolyte. Scanning electron microscopy (SEM) images demonstrated the successful growth of TiO2 nanoparticles and conducting polyaniline (PANI) over the surface of CNTs fibers, as photoanode and counter electrode, respectively. Cyclic voltammetric (CV) measurements and electrochemical impedance spectroscopy (EIS), examined the reduction of triiodide and resistance of charge transfer. While the current-voltage measurements were carried out to check the performance of fabricated device when illuminated under simulated light source. With APNI modified counter electrode, device exhibited higher photoelectric conversion efficiency (3.57 %) under optimal conditions as compared to pristine CNTs fiber-based device with lower efficiency (2.26 %). The improved performance of modified counter electrode further confirmed by the lower peak separation (ΔEp= 0.42 V) and charge transfer resistance (RCE =19.28 Ω) in cyclic voltammetry and impedance spectroscopy, respectively. These fabricated electrodes could be promising alternate for metal-based electrodes in dye-sensitized solar cells due to its facile fabrication process, low cost, and higher chemical stability.