A pill packet dosage tracking and gating device is provided. The device includes a container, a gate, and a controller. The container includes a reservoir configured to hold a stream of pill packets and an extraction channel configured to guide the passage of the stream of pill packets from the reservoir out of the container. The gate is disposed in the extraction channel and is configured to vertically transition from a closed position blocking extraction of a pill packet of the stream of pill packets and an open position allowing extraction of a pill packet. The controller is configured to monitor the extraction of pill packets and control the transition of the gate from the closed position to the open position.