In this paper, we present the geometric Hardy inequalities on the starshaped sets in the Carnot groups. Also, we obtain the geometric Hardy inequalities on half-spaces for general vector fields. Sec. 1: We give a brief overview of the sub-Riemannian manifolds, Grushin plane, Carnot groups, Heisenberg groups, and Engel groups. Sec. 2: We obtain the geometric Hardy inequalities on the starshaped sets in the Carnot groups and provide some examples. Sec. 3: We obtain the geometric Hardy inequalities on the half-spaces for general vector fields and provide some examples. Sec. 4: We give the proofs of main results. 1991 Mathematics Subject Classification. 35A23, 35H20, 35R03.