The dramatically expanding COVID-19 needs multiple effective countermeasures. Neutralizing antibodies are a potential therapeutic strategy for treating COVID-19. A number of neutralizing nanobodies (Nbs) were reported for their in vitro activities. However, in vivo protection of these nanobodies was not reported in animal models. In the current report, we characterized several RBD-specific Nbs isolated from a screen of an Nb library derived from an alpaca immunized with SARS-CoV-2 spike glycoprotein (S); among them, three Nbs exhibited picomolar potency against SARS-CoV-2 live virus, pseudotyped viruses, and 15 circulating SARS-CoV-2 variants. To improve the efficacy, various configurations of Nbs were engineered. Nb15-NbH-Nb15, a novel trimer constituted of three Nbs, was constructed to be bispecific for human serum albumin (HSA) and RBD of SARS-CoV-2. Nb15-NbH-Nb15 exhibited sub-ng/ml neutralization potency against the wild-type and currently circulating variants of SARS-CoV-2 with a long half-life in vivo. In addition, we showed that intranasal administration of Nb15-NbH-Nb15 provided 100% protection for both prophylactic and therapeutic purposes against SARS-CoV-2 infection in transgenic hACE2 mice. Nb15-NbH-Nb15 is a potential candidate for both prevention and treatment of SARS-CoV-2 through respiratory administration.