The olfactory system is one of the six basic sensory nervous systems. Developing artificial olfactory systems is challenging due to the complexity of chemical information decoding and memory. Conventional chemical sensors can convert chemical signals into electric signals to decode gas information but they lack memory functions. Additional storage and processing units would significantly increase the complexity and power consumption of the devices, especially for portable and wearable devices. Here, an olfactory-inspired in-sensor organic electrochemical transistor (OI-OECT) is proposed, with the integrated functions of chemical information decoding, tunable memory level, and selectivity of vapor sensing. The ion-gel electrolyte endows the OI-OECT with the function of tunable memory levels and a low operating voltage. Typical synaptic behaviors, including inhibitory postsynaptic current and paired-pulse facilitations, are successfully achieved. Importantly, the gas memory level can be effectively modulated by the gate voltages (0 and −1 V), which realized the transformation of volatile and nonvolatile memory. Furthermore, benefiting from the recognition of multiple gases and ability to detect cumulative damage caused by gases, the OI-OECT is demonstrated for early warning system targeting leakage detection of two gases (NH 3 and H 2 S). This work achieves the integrated functions of chemical gas information decode, tunable gas memory level, and selectivity of gas in a single device, which provides a promising pathway for the development of future artificial olfactory systems.