A terminal configured to perform communication with an in-vehicle device to control a vehicle, the terminal comprising: a controller configured to switch and set a plurality of operation modes of the terminal; and a vibration detection unit configured to detect vibration of the terminal, wherein: the operation modes of the terminal include a first mode, a second mode different from the first mode, and a third mode where communication with the in-vehicle device is more restricted than in the first mode and the second mode; and the controller is configured to when the first mode is executed, in a case where vibration is not detected in the vibration detection unit for a first time, switch the operation mode of the terminal to the third mode, and when the second mode is executed, in a case where vibration is not detected in the vibration detection unit for a second time, switch the operation mode of the terminal to the first mode, characterized in that the controller is configured to switch the operation mode of the terminal from the first mode to the second mode based on a getting-in determination in the in-vehicle device, indicating that an occupant gets in a vehicle, and to switch the operation mode of the terminal from the second mode to the first mode based on a getting-off determination in the in-vehicle device, indicating that an occupant gets off the vehicle, wherein the controller is configured to perform switching of the operation mode of the terminal between the first mode and the second mode based on the getting-in or getting-off determination in the in-vehicle device solely in a case where predetermined communication using a signal that is generated based on a random number generated by the terminal, or reception strength of a signal transmitted from the in-vehicle device, or the number of communications between the terminal and the in-vehicle device, is successful between the terminal and the in-vehicle device. a controller configured to switch and set a plurality of operation modes of the terminal; and a vibration detection unit configured to detect vibration of the terminal, wherein: the operation modes of the terminal include a first mode, a second mode different from the first mode, and a third mode where communication with the in-vehicle device is more restricted than in the first mode and the second mode; and the controller is configured to when the first mode is executed, in a case where vibration is not detected in the vibration detection unit for a first time, switch the operation mode of the terminal to the third mode, and when the second mode is executed, in a case where vibration is not detected in the vibration detection unit for a second time, switch the operation mode of the terminal to the first mode, characterized in that the operation modes of the terminal include a first mode, a second mode different from the first mode, and a third mode where communication with the in-vehicle device is more restricted than in the first mode and the second mode; and a first mode, a second mode different from the first mode, and a third mode where communication with the in-vehicle device is more restricted than in the first mode and the second mode; and the controller is configured to when the first mode is executed, in a case where vibration is not detected in the vibration detection unit for a first time, switch the operation mode of the terminal to the third mode, and when the second mode is executed, in a case where vibration is not detected in the vibration detection unit for a second time, switch the operation mode of the terminal to the first mode, when the first mode is executed, in a case where vibration is not detected in the vibration detection unit for a first time, switch the operation mode of the terminal to the third mode, and when the second mode is executed, in a case where vibration is not detected in the vibration detection unit for a second time, switch the operation mode of the terminal to the first mode, the controller is configured to switch the operation mode of the terminal from the first mode to the second mode based on a getting-in determination in the in-vehicle device, indicating that an occupant gets in a vehicle, and to switch the operation mode of the terminal from the second mode to the first mode based on a getting-off determination in the in-vehicle device, indicating that an occupant gets off the vehicle, wherein the controller is configured to perform switching of the operation mode of the terminal between the first mode and the second mode based on the getting-in or getting-off determination in the in-vehicle device solely in a case where predetermined communication using a signal that is generated based on a random number generated by the terminal, or reception strength of a signal transmitted from the in-vehicle device, or the number of communications between the terminal and the in-vehicle device,