Fueled by their high third-order nonlinearity and nonlinear saturable absorption, carbon nanotubes (CNT) are expected to become an integral part of next-generation photonic devices such as all-optical switches and passive mode-locked lasers. However, in order to fulfill this expectation it is necessary to identify a suitable platform that allows the efficient use of the optical properties of CNT. In this paper, we propose and implement a novel device consisting of an optofluidic device filled with a dispersion of CNT. By fabricating a microchannel through the core of a conventional fiber and filling it with a homogeneous solution of CNTs on Dimethylformamide (DMF), a compact, all-fiber saturable absorber is realized. The fabrication of the micro-fluidic channel is a two-step process that involves femtosecond laser micro-fabrication and chemical etching of the laser-modified regions. All-fiber high-energy, passive mode-locked lasing is demonstrated with an output power of 13.5 dBm. The key characteristics of the device are compactness and robustness against optical, mechanical and thermal damage.