Terahertz gas sensing system based on time-domain spectroscopy (THz-TDS) using a hollow-optical fiber gas cell is proposed. A hollow optical fiber functions as a long-path and low-volume gas cell and loading a dielectric layer on the inside of the fiber reduces the transmission loss and the dielectric layer also protects the metal layer of the fiber from deterioration. In the fabrication process, a polyethylene tube with a thin wall is drawn from a thick preform and a metal layer is formed on the outside of the tube. By using a 34-cm long fiber gas cell, NH3 gas with a concentration of 8.5 % is detected with a good SN ratio. However, the absorption peaks of NH3 and water vapor appeared at around 1.2 THz are not separated. To improve the frequency resolution in Fourier transformation, the time scan width that is decided by the scanning length of linear stage giving a time delay in the probing THz beam is enlarged. As a result, the absorption peaks at around 1.2 THz are successfully separated. In addition, by introducing a longer fiber gas cell of 60-cm length, the measurement sensitivity is improved and an absorption spectrum of NH3 gas with a concentration of 0.5 % is successfully detected.