Aripiprazole (sold as Abilify) is a second-generation antipsychotic. It tends to have a milder metabolic side-effect profile than older antipsychotics, which is part of why it's prescribed broadly across diagnoses.
It's FDA-approved for schizophrenia, bipolar I (acute mania and mixed episodes), augmentation of antidepressants in major depressive disorder, and irritability in autism. The breadth of indications is unusual for an antipsychotic and is one reason it shows up across both inpatient and outpatient settings.
Aripiprazole acts as a partial agonist at dopamine D₂ and serotonin 5-HT₁A receptors and as an antagonist at 5-HT₂A. The mixed activity is the basis for its effect on mood and psychotic symptoms; it's also why the drug behaves differently from older antipsychotics that pure-block dopamine.