An intelligent insulin delivery system targeting intestinal absorption and glucose responsiveness can enhance the bioavailability through oral insulin therapy, offering promising diabetes treatment. In this paper, a glucose and pH dual-response polymer hydrogel using carboxymethyl agarose modified with 3-amino-phenylboronic acid and l-valine (CPL) was developed as an insulin delivery carrier, exhibiting excellent biocompatibility and effective insulin encapsulation. The insulin encapsulated in the hydrogel (Ins-CPL) was released in a controlled manner in response to the in vivo stimulation of blood glucose and pH levels with higher levels of intracellular uptake and utilization of insulin in the intestinal environment simultaneously. Notably, the Ins-CPL hydrogel effectively regulated blood sugar in diabetic rats over a long period by simulating endogenous insulin, responding to changes in plasma pH and glucose levels, and overcoming the intestinal epithelium barrier. This indicates a significant boost in oral insulin bioavailability and broadens its application prospects.