Intravenously injected renal-clearable optical agents (RCOAs) are rapidly cleared by the kidneys, allowing disease diagnosis and treatment by optical imaging, while avoiding unwanted tissue accumulation and adverse effects. This Review discusses the design of RCOAs for kidney imaging, kidney injury detection, cancer theranostics, intraoperative image-guided surgery and optical urinalysis.