Rule 29
Pilot Vessels
International
(a) A vessel engaged on pilotage duty shall exhibit: (i) at or near the masthead, two all-round lights in a vertical line, the upper being white and the lower red; (ii) when underway, in addition, sidelights and a sternlight; (iii) when at anchor, in addition to the lights prescribed in subparagraph (i), the light, lights or shape prescribed in Rule 30 for vessels at anchor.
(b) A pilot vessel when not engaged on pilotage duty shall exhibit the lights or shapes prescribed for a similar vessel of her length.
Inland
(a) A vessel engaged on pilotage duty shall exhibit: (i) at or near the masthead, two all-round lights in a vertical line, the upper being white and the lower red; (ii) when underway, in addition, sidelights and a sternlight; and (iii) when at anchor, in addition to the lights prescribed in subparagraph (i) of this Rule, the anchor light, lights, or shape prescribed in Rule 30 for vessels at anchor.
(b) A pilot vessel when not engaged on pilotage duty shall exhibit the lights or shapes prescribed for a vessel of her length.
Source: USCG Navigation Rules handbook